CN110012162B - A method for collecting ambient light data and electronic equipment - Google Patents

A method for collecting ambient light data and electronic equipment Download PDF

Info

Publication number
CN110012162B
CN110012162B CN201910229473.1A CN201910229473A CN110012162B CN 110012162 B CN110012162 B CN 110012162B CN 201910229473 A CN201910229473 A CN 201910229473A CN 110012162 B CN110012162 B CN 110012162B
Authority
CN
China
Prior art keywords
ambient light
light sensor
moment
time
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910229473.1A
Other languages
Chinese (zh)
Other versions
CN110012162A (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

Images

Classifications

    • G—PHYSICS
    • G01—MEASURING; TESTING
    • G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00—Photometry, e.g. photographic exposure meter
    • G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204—Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16—Constructional details or arrangements
    • G06F1/1613—Constructional details or arrangements for portable computers
    • G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1656—Details 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/1658—Details 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
    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16—Constructional details or arrangements
    • G06F1/1613—Constructional details or arrangements for portable computers
    • G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G—PHYSICS
    • G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04M—TELEPHONIC COMMUNICATION
    • H04M1/00—Substation equipment, e.g. for use by subscribers
    • H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724—User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454—User 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
    • G—PHYSICS
    • G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00—Control of display operating conditions
    • G09G2320/06—Adjustment of display parameters
    • G09G2320/0626—Adjustment of display parameters for control of overall brightness
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04M—TELEPHONIC COMMUNICATION
    • H04M2250/00—Details of telephonic subscriber devices
    • H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • Y—GENERAL 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
    • Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
    • Y02D30/70—Reducing 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)
  • Spectroscopy & Molecular Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (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在第一时刻和第二时刻之间保持关闭状态;开启环境光传感器,环境光传感器的开启时刻不早于第一时刻;关闭环境光传感器,环境光传感器的关闭时刻不晚于第二时刻。

Figure 201910229473

The present application provides a method for collecting ambient light data and electronic equipment, which relate to the technical field of electronic equipment and are used to reduce the amount of collected ambient light data. The method is applied to an electronic device in which an OLED display screen is covered above an ambient light sensor, and includes: detecting a display synchronous signal; in response to detecting the display synchronous signal, determining a first moment and a second moment, the first moment being the corresponding time of the ambient light sensor the LED in the display area corresponding to the ambient light sensor is turned off at the second time, 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 Keep the closed state between the second moment and the second moment; turn on the ambient light sensor, and the turn-on time of the ambient light sensor is no earlier than the first moment; turn off the ambient light sensor, and the turn-off time of the ambient light sensor is no later than the second moment.

Figure 201910229473

Description

一种环境光数据采集方法及电子设备A method for collecting ambient light data and electronic equipment

技术领域technical field

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

背景技术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 based on the detected light intensity Adjusts the automatic backlight brightness of OLED displays in electronic devices.

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

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

发明内容Contents of the invention

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

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

第一方面,提供一种环境光数据采集方法,应用于包括OLED显示屏和环境光传感器的电子设备中,比如该电子设备可以是手机、摄像机等,OLED显示屏覆盖在环境光传感器上方,该方法包括:检测显示同步信号,该显示同步信号可以为显示内容刷新时的同步信号,比如TE信号;响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器对应的显示屏区域的LED的开启时刻,第二时刻为环境光传感器对应的显示屏区域的LED的关闭时刻,第一时刻早于第二时刻,环境光传感器对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态;开启环境光传感器,以使环境光传感器开始采集环境光数据,环境光传感器的开启时刻不早于第一时刻;关闭环境光传感器,以使环境光传感器结束采集环境光数据,环境光传感器的关闭时刻不晚于第二时刻。In the first aspect, a method for collecting ambient light data is provided, which is applied to an electronic device including an OLED display and an ambient light sensor. For example, the electronic device can be a mobile phone, a video camera, etc., and the OLED display is covered above the ambient light sensor. The method includes: detecting a display synchronous signal, the display synchronous signal may be a synchronous signal when the display content is refreshed, such as a TE signal; in response to detecting the display synchronous signal, determining the first moment and the second moment, the first moment is the ambient light sensor The turn-on time of the LED in the corresponding display area, the second time is the turn-off time of the LED in the display area corresponding to the ambient light sensor, the first time is earlier than the second time, the LED in the display area corresponding to the ambient light sensor Keep the off state between the first moment and the second moment; turn on the ambient light sensor so that the ambient light sensor starts to collect ambient light data, and the turn-on 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 shutdown time of the ambient light sensor is no later than the second moment.

上述技术方案中,通过检测到显示同步信号,确定环境光传感器对应的显示屏区域的LED保持关闭状态时对应的第一时刻和第二时刻,从而仅在环境光传感器对应的显示屏区域的LED保持关闭状态时采集环境光数据,从而避免了OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比;此外,该方法无需高性能的环境光传感器,且能够减少采集到的环境光数据的数据量,降低对电子设备的数据处理能力要求。In the above technical solution, by detecting the display synchronous signal, the first and second moments corresponding to when the LEDs in the display area corresponding to the ambient light sensor remain off are determined, so that only the LEDs in the display area corresponding to the ambient light sensor Ambient light data is collected when the state is kept closed, thereby avoiding the influence of the light emission 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 amount of collected ambient light data can be reduced, and the requirement on the data processing capability 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 manners, since the second moment is related to the display synchronization signal and the position of the ambient light sensor on the OLED display screen, a simple and effective 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; wherein, the third moment is when the display synchronization signal is detected The moment of delay is the moment of the first duration. The first duration is related to the single refresh duration of the OLED display and the turn-off duration of the LED in the display area corresponding to the ambient light sensor. The single refresh duration 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 way of determining the first moment is provided.

在第一方面的一种可能的实现方式中,第一时长为OLED显示屏的单次刷新时长与环境光传感器对应的显示屏区域的LED的关闭时长之间的差值。上述可能的实现方式,提供了一种简单有效地确定第一时长的方式。In a possible implementation manner of the first aspect, the first duration is a difference between a single refresh duration of the OLED display and an off duration of the LEDs in the display area corresponding to the ambient light sensor. The foregoing 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 LED in the display area corresponding to the ambient light sensor is used to refresh the next frame image of the OLED display; and/or, turning off the LED in the display area corresponding to the ambient light sensor The turning off of the LED is used 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 image of the OLED display screen, and/or the LEDs in the display area that are turned off when adjusting the brightness of the OLED display screen to collect environmental data. Light data, thereby improving the flexibility and diversity of collecting ambient light data, and at the same time improving the stability of the collected ambient light data.

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

在第一方面的一种可能的实现方式中,开启时刻与关闭时刻之间的时长为调节OLED显示屏的亮度时环境光传感器对应的显示屏区域的LED关闭的时长。上述可能的实现方式中,该电子设备能够控制环境光传感器在OLED显示屏的亮度调节过程中,利用亮度调节时关闭的显示屏区域的LED的时长采集环境光数据,从而避免OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比。In a possible implementation manner of the first aspect, the duration between the turn-on moment and the turn-off moment is the turn-off duration of the LED in the display area corresponding to the ambient light sensor when the brightness of the OLED display is adjusted. In the above possible implementation manner, the electronic device can control the ambient light sensor to collect ambient light data by using the duration of the LEDs in the display area that are turned off during brightness adjustment during the brightness adjustment process of the OLED display screen, thereby avoiding the OLED display itself. The influence of luminescence on the collected ambient light data improves the signal-to-noise ratio of the ambient light data.

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

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

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

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

在第二方面的一种可能的实现方式中,处理器还具体用于:多次开启和关闭环境光传感器,以使环境光传感器处于开启状态的总时长满足预设采集时长。In a possible implementation manner of the second aspect, the processor is further specifically configured to: turn on and off the ambient light sensor multiple times, so that the total duration of the ambient light sensor being in the turned-on state meets 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 it can achieve can refer to the beneficial effect in the corresponding method provided above, here I won't repeat them here.

附图说明Description of drawings

图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided in 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为本申请实施例提供的第一种环境光数据采集方法的流程示意图;FIG. 3 is a schematic flow chart of the first ambient light data collection method provided by the embodiment of the present application;

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

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

图6为本申请实施例提供的第二种环境光数据采集方法的流程示意图;FIG. 6 is a schematic flow diagram of a second ambient light data collection method provided in the embodiment of the present application;

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

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

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

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

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

具体实施方式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 "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (unit) of a, b or c can represent: a, b, c, a-b, a-c, b-c or a-b-c, wherein a, b and c can be single or multiple. The character "/" generally indicates that the contextual 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 as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "for example" is not to 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 related concepts in a concrete manner.

图1为本申请实施例提供的一种电子设备的结构示意图,该电子设备可以是手机、平板电脑、计算机、可穿戴设备、车载设备、电子终端以及便携式终端等,为便于描述,本申请实施例中统称为电子设备。下面以该电子设备是手机为例,对该电子设备的结构进行举例说明。Figure 1 is a schematic structural diagram of an electronic device provided by the embodiment of the present application. The electronic device can be a mobile phone, a tablet computer, a computer, a wearable device, a vehicle-mounted device, an electronic terminal, a portable terminal, etc. For the convenience of description, this application implements collectively referred to as electronic equipment. Taking the electronic device as a mobile phone as an example, the structure of the electronic device will be illustrated below.

参见图1,该手机可以包括:RF(radio frequency,射频)电路110、存储器120、其他输入设备130、显示屏140、传感器组件150、音频电路160、输入/输出(input/output,I/O)子系统170、处理器180、以及电源190等部件。其中,处理器180分别与RF电路110、存储器120、音频电路160、以及电源190均连接。I/O子系统170分别与其他输入设备130、有机发光二极管(organic light-emitting diode,OLED)显示屏140、传感器组件150均连接。Referring to Fig. 1, the mobile phone may include: RF (radio frequency, radio frequency) circuit 110, memory 120, other input devices 130, display screen 140, sensor assembly 150, audio circuit 160, input/output (input/output, I/O ) subsystem 170, processor 180, and power supply 190 and other components. Wherein, the processor 180 is respectively connected to the RF circuit 110 , the memory 120 , the audio circuit 160 , and the power supply 190 . The I/O subsystem 170 is respectively connected to other input devices 130 , an organic light-emitting diode (OLED) display 140 , and a sensor component 150 .

其中,RF电路110可用于收发信息或通话过程中信号的接收和发送。通常,RF电路110包括但不限于天线、放大器、收发信机、耦合器、LNA(low noise amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信,比如通过WiFi网络与接入网设备通信。Wherein, the RF circuit 110 can be used for sending and receiving information or receiving and sending 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 can also communicate with the network and other devices through wireless communication, such as communicating 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 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one function-required application program, etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, image data, phone book, etc.) etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

其他输入设备130可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。其中,其他输入设备130可包括但不限于物理键盘、功能键(比如音量控制按键、电源开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Other input devices 130 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Wherein, other input devices 130 may include but 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 or 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 the 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 OLEDs in multiple rows and columns.

传感器组件150包括一个或多个传感器,用于为该手机提供各个方面的状态评估。在本申请实施例中,传感器组件150可以包括环境光传感器,用于采集环境光照度等数据,以对OLED显示屏140的自动背光亮度进行调整。进一步的,传感器组件150还可以包括温度传感器、加速度传感器,陀螺仪传感器,磁传感器或压力传感器,通过传感器组件150可以检测到该手机的温度变化、该手机的加速/减速、方位、打开/关闭状态,或者组件的相对定位等。此外,传感器组件150还可以包括CMOS或CCD图像传感器等用于在成像应用中使用。Sensor assembly 150 includes one or more sensors for providing various aspects of status assessment for the handset. In the embodiment of the present application, the sensor component 150 may include an ambient light sensor for collecting data such as ambient light intensity to adjust the automatic backlight brightness of the OLED display 140 . Further, the sensor component 150 can 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, orientation, opening/closing of the mobile phone state, or the 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 can provide 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 an audio signal for output; on the other hand, the microphone converts the collected audio signal into an electrical signal, which is received by the audio circuit converted into audio data, and then output the audio data to the RF circuit 110 for sending to another mobile phone, or output the audio data to the memory 120 for further processing.

I/O子系统170用来控制输入输出的外部设备,外部设备可以包括其他设备输入控制器、传感器控制器、显示控制器等。The I/O subsystem 170 is used to control input and output 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, and uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, Execute various functions of the mobile phone and process data, so as 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 applications, etc., the modem processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 180 .

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

在本申请实施例中,该手机包括的OLED显示屏140和环境光传感器151的位置关系可以如图2所示,即OLED显示屏140可以覆盖在环境光传感器151的上方。其中,环境光传感器151可以被OLED显示屏140的顶部覆盖,或者被OLED显示屏140的中间部分覆盖,又或者被OLED显示屏140的底部覆盖,图2中以环境光传感器151被OLED显示屏140的顶部覆盖为例进行举例说明。另外,该手机可以是全面屏手机,也可以不是全面屏手机,本申请实施例对此不作具体限定。In the embodiment of the present application, the positional relationship between the OLED display screen 140 and the ambient light sensor 151 included in the mobile phone can be shown in FIG. 2 , that is, the OLED display screen 140 can cover the top of the ambient light sensor 151 . Wherein, the ambient light sensor 151 can be covered by the top of the OLED display 140, or by the middle part of the OLED display 140, or by the bottom of the OLED display 140. In FIG. 2, the ambient light sensor 151 is covered by the OLED display. 140 top cover as an example for illustration. In addition, the mobile phone may 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 to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

图3为本申请实施例提供的第一种环境光数据采集方法的流程示意图,该方法可应用于上文所述的电子设备中,该电子设备中的OLED显示屏覆盖在环境光传感器的上方,该方法具体可以由该电子设备中的处理器执行,参见图3,该方法包括以下几个步骤。Fig. 3 is a schematic flow chart of the first ambient light data collection method provided by the embodiment of the present application. This method can be applied to the above-mentioned electronic device, and the OLED display screen in the electronic device is covered above the ambient light sensor. , the method may specifically be executed by a processor in the electronic device, referring to FIG. 3 , the method includes the following steps.

S301:检测显示同步信号,该显示同步信号为显示内容刷新时的同步信号。S301: Detecting a display synchronous signal, the display synchronous signal being a synchronous signal when display content is refreshed.

其中,OLED显示屏在显示图像、视频等显示内容时是以一帧(frame)一帧的形式进行刷新显示的,且每一帧的刷新显示可以是按照从上而下的顺序逐行刷新的,从而一帧的显示内容需要通过多次刷新来完成。在一帧的刷新过程中,每次刷新的显示屏区域的LED由开启转为关闭,即:对应区域变成黑色,然后再在该显示屏区域显示刷新后的内容。当OLED显示屏完成一整帧的显示内容的刷新时,则会输出一个显示同步信号,该显示同步信号可用于指示该帧的显示内容刷新完成。Among them, when displaying images, videos, etc., the OLED display is refreshed and displayed frame by frame, and the refresh display of each frame can be refreshed line by line in 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 LEDs of the display area refreshed each time are turned from on to off, that is, the corresponding area becomes black, and then the refreshed content is displayed on the display area. When the OLED display screen finishes refreshing the display content of a whole frame, it will output a display synchronous signal, which 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 the display synchronization signal output by the OLED display screen, and the display synchronization signal can specifically be a tearing effect (tearing effect, TE) signal, or other Signals that are synchronized with display content refresh, etc.

S302:响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器对应的显示屏区域的LED的开启时刻,第二时刻为环境光传感器对应的显示屏区域的LED的关闭时刻,第一时刻早于第二时刻,环境光传感器对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态。S302: In response to the detection of the display synchronization signal, determine the first moment and the second moment, the first moment is the turn-on moment of the LED in the display area corresponding to the ambient light sensor, and the second moment is the turn-on time of the display area corresponding to the ambient light sensor When the LED is turned off, the first moment is earlier than the second moment, and the LED in the display area corresponding to the ambient light sensor remains in the off state between the first moment and the second moment.

其中,环境光传感器对应的显示屏区域的LED具体可以是指OLED显示屏中覆盖在环境光传感器上方的显示屏区域的LED。该显示屏区域的LED的状态与环境光传感器采集的环境光数据的准确度有关。具体的,当环境光传感器对应的显示屏区域的LED处于开启状态(也可称为点亮状态),则环境光传感器采集到的环境光数据会因为该显示屏区域的LED处于开启状态而受到影响,即采集到的环境光数据中会同时包括周围环境的光数据和该显示屏区域的LED的光数据;当环境光传感器对应的显示屏区域的LED处于关闭状态时,环境光传感器采集到的环境光数据不会受到影响,即采集到的环境光数据中仅包括周围环境的光数据。因此,为了保证后续环境光传感器采集到的环境光数据不会受到影响,该电子设备可以确定环境光传感器对应的显示屏区域的LED处于关闭状态时的时间段,即确定第一时刻和第二时刻。Wherein, the LEDs in the display screen area corresponding to the ambient light sensor may specifically refer to the LEDs in the display screen area above the ambient light sensor in the OLED display screen. The status 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 LED in the display area corresponding to the ambient light sensor is in the on state (also referred to as the on state), the ambient light data collected by the ambient light sensor will be affected by the LED in the display area because it is in the on state. Influence, that is, the collected ambient light data will include the light data of the surrounding environment and the light data of the LED in the display area at the same time; when the LED in the display area corresponding to the ambient light sensor is off, the ambient light sensor collects The ambient light data will not be affected, that is, the collected ambient light data only includes the light data of the surrounding environment. Therefore, in order to ensure that the ambient light data collected by the subsequent ambient light sensor will not be affected, the electronic device can determine the time period when the LED in the display area corresponding to the ambient light sensor is 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 displayed content and the brightness adjustment process of the OLED display. This situation will be described.

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

其中,上述S301中提到,在一帧的刷新过程中,每次刷新的显示屏区域会先变成黑色,然后再在该刷新的显示屏区域显示刷新后的内容,该刷新的显示屏区域会先变成黑色具体是通过关闭该刷新的显示屏区域的LED来实现的,即此时该刷新的显示屏区域的LED处于关闭状态,后续称为刷新关闭的显示屏区域。当该刷新关闭的显示屏区域移动至环境光传感器对应的显示屏区域(即环境光传感器对应的显示屏区域的LED的关闭用于刷新OLED显示屏的下一帧图像,具体可以如图4所示)时,确定第一时刻和第二时刻,第一时刻和第二时刻之间即为确定该刷新关闭的显示屏区域的LED处于关闭状态的时间段。Among them, as mentioned in S301 above, during the refresh process of one frame, the display area refreshed each time will first turn black, and then display the refreshed content in the refreshed display area, and the refreshed display area It will first turn black, specifically by turning off the LEDs in the refreshed display area, that is, the LEDs in the refreshed display area are in the off state at this time, and subsequently called the refresh-off display area. When the display area where the refresh is turned off moves to the display area corresponding to the ambient light sensor (that is, the closing of the LED in the display area corresponding to the ambient light sensor is used to refresh the next frame image of the OLED display screen, specifically as shown in Figure 4 display), determine the first moment and the second moment, and the period between the first moment and the second moment is the time period in which it is determined that the LED in the display area where the refresh is turned off is in an 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 entire frame is completed, and the time when the LEDs in the display area where the refresh is turned off is also completed The moment when the display content of the entire frame is refreshed, that is, for the same frame, the display synchronous signal corresponding to the frame is synchronized with the turn-off moment of the LED in the refresh-off display area. Therefore, based on this synchronization relationship, it is possible to determine the turn-off moment of the LEDs in the refresh-off display area.

在一种可能的实现方式中,当该刷新关闭的显示屏区域的LED为环境光传感器对应的显示屏区域的LED时,确定第二时刻,可以包括:根据检测到该显示同步信号的时刻和环境光传感器在OLED显示屏的位置,确定第二时刻。具体的,该电子设备可以根据检测到该显示同步信号的时刻、OLED显示屏的单次刷新时长和环境光传感器在OLED显示屏的位置,确定第二时刻。这里的检测到该显示同步信号的时刻可以是指检测到第一帧完成刷新时的显示同步信号的时刻,第二时刻可以是指第二帧刷新过程中该刷新关闭的显示屏区域的LED的关闭时刻,第二帧为与第一帧相邻的下一帧。In a possible implementation manner, when the LED in the display area where the refresh is turned off is the LED 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 position of the ambient light sensor on the OLED display screen determines the second moment. Specifically, the electronic device may determine the second moment according to the moment when the display synchronization signal is detected, the single refresh duration of the OLED display and the position of the ambient light sensor on the OLED display. The moment when the display synchronous signal is detected here may refer to the moment when the display synchronous signal is detected when the first frame is refreshed, and the second moment may refer to the LED in the display area where the refresh is turned off during the second frame refresh process. 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 time of the OLED display is related to the refresh frequency of the OLED display. The refresh frequency of the OLED display is constant. For example, the refresh frequency of the OLED display is 60Hz, so the single refresh time is approximately equal to 16.667 milliseconds (ms). The position of the ambient light sensor on the OLED display can be used to determine the time required for the refresh-off display area to move from the top of the OLED display to the display area corresponding to the ambient light sensor, which is subsequently referred to as the first moving duration , for example, the first moving duration can be equal to L/V1, L represents the distance from the ambient light sensor to the top of the OLED display, V1 represents the moving speed of the display area where the refresh is turned off, and the moving speed V1 can be equal to the OLED display 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 moving duration is T S1 and the single refresh duration is T f , the electronic device may delay the moment when the display synchronization signal is detected by the single refresh duration T f , if the first moving duration T S1 If it is zero, the second moment can be obtained directly. If the first moving duration T S1 is not zero, the second moment can be obtained by delaying the moment after the single refresh duration T f by T S1 . Further, after determining the second moment, the first moment may be determined according to the off-time length of the LEDs in the refresh-off display area, and the off-time T b1 of the LEDs in the refresh-off display area is controlled by the electronic device, namely 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处于关闭状态的时间段。Wherein, the brightness adjustment of the OLED display screen may include two working modes, that is, a pulse-width modulation (Pulse-width modulation, PWM) mode and a non-PWM mode, and a duty cycle adjustment signal is required in the PWM mode (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. PWM mode can mean that when the brightness of the OLED display is low, the lighting time of the LED in the OLED display is controlled by PWM, so as to realize the brightness adjustment of the OLED display. In the off state for a period of time, the LEDs in this display area will be referred to as the LEDs in the display area where the brightness adjustment is turned off. Non-PWM mode can mean that when the brightness of the OLED display is high, it is no longer possible to adjust the brightness of the OLED display through the PWM mode, and the brightness of the OLED display can only be adjusted by increasing the power supply current and other methods. There are LEDs in the display area that are 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 LED in the display area corresponding to the ambient light sensor is used to adjust the brightness of the OLED display screen), determine the first moment and the second moment is the time period during which the LED in the display area where the brightness adjustment is turned off is 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, there will be one or more display screen areas with brightness adjustment turned off evenly distributed in the above PWM mode, 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 where the brightness adjustment is turned off is related to the frequency of the duty cycle adjustment signal and the refresh rate of the OLED display screen. The value of N can be specifically equal to the ratio of the two. The frequency of the duty ratio adjustment signal is 240 Hz, then the number of display screen areas where the brightness adjustment is turned off can be 4 (N=240/60=4), which can be specifically shown in Figure 5, which are respectively represented as the first The closed area, the second closed area, the third closed area and the fourth closed area, three closed areas are only used for brightness adjustment, and the other closed area is used for both refreshing display content and brightness adjustment.

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

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

其中,OLED显示屏的单次刷新时长是已知的。环境光传感器在OLED显示屏的位置具体可用于确定该亮度调节关闭的显示屏区域从OLED显示屏的最上方移动至环境光传感器对应的显示屏区域时所需要的时长,后续称为第二移动时长。Wherein, the duration of a single refresh of the OLED display is known. The position of the ambient light sensor on the OLED display screen can be 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, which is subsequently 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 moving duration is T S2 and the single refresh duration is T f , the electronic device may delay the moment when the display synchronization signal is detected by N/N of the single refresh duration T f (ie T f *i/N, the value of i can be 1 to N respectively), if the second moving duration T S2 is zero, then can directly obtain multiple second moments, if the second moving duration T S2 is not zero, Then, the times delayed by T f *i/N can be further delayed by T S2 , so as to obtain multiple second times. Further, after determining the plurality of second moments, the corresponding plurality of first moments can be determined according to the turn-off duration T b2 of the LEDs in the closed display area according to the brightness adjustment. The duration T b2 is determined by the brightness of the OLED display, and the brightness of the OLED display is controlled by the electronic device, that is, the electronic device can directly determine the shutdown duration T b2 through the brightness, and the electronic device advances the multiple first moments respectively by the The closing duration T b2 can determine the corresponding multiple first moments.

示例性的,以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-Tb2。Exemplarily, assuming that the refresh frequency is 60 Hz and the frequency of the duty ratio adjustment signal is 240 Hz, the four display areas where the brightness adjustment is turned off are respectively the first closed area, the second closed area, and the third closed area in FIG. 5 . For the closed area and the fourth closed area, the second moving duration T4 is zero as an example, when the first closed area, the second closed area, the third closed area and the fourth closed area respectively move to the display screen area corresponding to the ambient light sensor The first times of 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 moment, and the turn-off time of the ambient light sensor is not later than the second moment.

当确定第一时刻和第二时刻之后,该电子设备可以根据第一时刻开启环境光传感器,在环境光传感器采集一段时间的环境光数据之后,根据第二时刻关闭环境光传感器。比如,该电子设备的处理器在不早于第一时刻的某一时刻向环境光传感器发送一个开启信号,以使环境光传感器在接收到该开启信号时开始采集环境光数据,以及在不晚于第二时刻的某一时刻向环境光传感器发送结束信号,以使环境光传感器在接收到该结束信号时停止采集环境光数据。之后,该电子设备的处理器还可以将环境光传感器采集到的环境光数据进行缓存,并根据采集到的环境光数据对OLED显示屏的背光亮度进行调节。After determining the first moment and the second moment, the electronic device may turn on the ambient light sensor according to the first moment, and 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 an enabling signal to the ambient light sensor at a certain moment no earlier than the first moment, so that the ambient light sensor starts to collect ambient light data when receiving the enabling signal, and An end signal is sent to the ambient light sensor at a certain point in the second moment, so that the ambient light sensor stops collecting ambient light data when receiving the end signal. Afterwards, the processor of the electronic device can also cache the ambient light data collected by the ambient light sensor, and adjust the brightness of the backlight of the OLED display according to the collected ambient light data.

具体的,该电子设备可以在第一时刻与第二时刻之间的指定时长内控制环境光开启和关闭,该指定时长为环境光传感器的开启时刻至关闭时刻的时长(即环境光传感器采集环境光数据的时长),该指定时长可以小于第一时刻至第二时刻的时长,也可以等于第一时刻至第二时刻的时长。示例性的,该电子设备可以在第一时刻开启环境光传感器,以及在第二时刻关闭环境光传感器,此时该指定时长等于第一时刻至第二时刻的时长;或者,该电子设备在第一时刻之后的某一时刻开启环境光传感器,以及在第二时刻或者第二时刻之前的某一时刻关闭环境光传感器,此时该指定时长小于第一时刻至第二时刻的时长;或者,该电子设备在第一时刻或者第一时刻之后的某一时刻开启环境光传感器,以及在第二时刻之前的某一时刻关闭环境光传感器,此时该指定时长也小于第一时刻至第二时刻的时长。Specifically, the electronic device can control the ambient light to be turned on and off within a specified time period between the first moment and the second moment, and the specified period is the time period from the moment when the ambient light sensor is turned on to the moment when the ambient light sensor is turned off (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 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, at this time, the specified duration is equal to the duration from the first moment to the second moment; or, the electronic device may turn on the ambient light sensor at the second moment; Turn on the ambient light sensor at a certain moment after the first moment, and turn off the ambient light sensor at a certain moment before the second moment or the second moment, at this time, the specified duration is shorter 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 moment or at a certain moment after the first moment, and turns off the ambient light sensor at a certain moment before the second moment. 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 may 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 time period is the off time period of the LED in the display area corresponding to the ambient light sensor when refreshing the next frame of image of the OLED display screen. That is, in the first case of S302 above, the LED in the display area where the refresh is turned off is the LED in the display area corresponding to the ambient light sensor. At this time, the turn-off time of the LED in the display area corresponding to the ambient light sensor is It is the off time of the LED in the display area where the refresh is turned off, so the specified time can be specifically the off time of the LED in the display area where the refresh is off, for example, the specified time can be the refresh off shown in Figure 4 above The duration that the LEDs in the display area are turned off.

或者,该指定时长为调节OLED显示屏的亮度时环境光传感器对应的显示屏区域的LED的关闭时长。也即是,在上述S302的第二种情况下,该亮度调节关闭的显示屏区域的LED为环境光传感器对应的显示屏区域的LED,此时环境光传感器对应的显示屏区域的LED的关闭时长就是该亮度调节关闭的显示屏区域的LED的关闭时长,从而该指定时长具体可以为该亮度调节关闭的显示屏区域的LED的关闭时长,比如,该指定时长可以为上述图5所示的四个关闭区域中每个关闭区域LED的关闭时长。Alternatively, the designated time period is a time period for turning off the LEDs in the display area corresponding to the ambient light sensor when adjusting the brightness of the OLED display screen. That is, in the second case of S302 above, the LED in the display area where the brightness adjustment is turned off is the LED in the display area corresponding to the ambient light sensor. At this time, the LED in the display area corresponding to the ambient light sensor is turned off The duration is the off duration of the LEDs in the display area where the brightness adjustment is turned off, so that the specified duration can specifically be the turn-off duration of the LEDs in the display area where the brightness adjustment 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 time the ambient light sensor is in the on state (that is, the total collection time) meets the preset collection time, that is, control the ambient light sensor to collect the ambient light data. The total duration is the preset acquisition duration, and the preset acquisition duration may include multiple specified durations within a single refresh duration of one frame or multiple frames, and each frame may correspond to one or more specified durations. By turning on and off the ambient light sensor multiple times so that 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. stability, and at the same time have lower requirements on the performance of the ambient light sensor, such as sensitivity and sampling rate.

为便于理解,下面以显示同步信号为TE信号,环境光传感器位于OLED显示屏的最上方(即上述第一移动时长TS1和第二移动时长TS2为零),该OLED显示屏的刷新频率为60Hz、占空比调节信号可以为频率为240Hz下,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度为例,对本申请实施例提供的方法进行举例说明。较低亮度和中等亮度为OLED显示屏工作在PWM模式下的两种亮度举例,较高亮度为OLED显示屏工作在非PWM模式下的一种亮度举例。For ease of understanding, the display synchronization signal is used as the TE signal below, and the ambient light sensor is located at the top of the OLED display (that is, the first moving duration T S1 and the second moving duration T S2 are zero), and the refresh rate of the OLED display is When the duty ratio adjustment signal is 60 Hz and the frequency is 240 Hz, the brightness of the OLED display screen is respectively low brightness, medium brightness and high brightness as an example to illustrate the method provided in the embodiment of the present application. Low brightness and medium brightness are examples of two kinds of brightness of OLED display working in PWM mode, and high brightness is an example of brightness of OLED display working in 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 the TE signal; S402. Responding to the detection of the TE signal, delaying the moment when the TE signal is detected by T f -T 0 , where T f represents a single Refresh duration, T0 represents the first specified duration; S403. Turn on the ambient light sensor, and after the first specified duration T0 , turn off the ambient light sensor, that is, control the ambient light sensor to collect ambient light data within the first specified duration T0 ; S404. Obtain the 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, it will end. The preset acquisition time length returns to S401 to continue execution.

基于上述图6所提供的方法,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度下的工作时序图可以如图7所示。在图7中,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为上述图4所示的情况,此时环境光传感器在单次刷新时长Tf内仅采集一个第一指定时长T0的环境光数据,第一指定时长T0可以被配置为固定数值。其中,在该OLED显示屏的亮度为较低亮度和中等亮度时,第一指定时长T0小于环境光传感器对应的显示屏区域的LED的关闭时长;在该OLED显示屏的亮度为较高亮度时,该指定时长等于环境光传感器对应的显示屏区域的LED的关闭时长。Based on the method provided in FIG. 6 above, the working timing diagrams of the OLED display screen at low brightness, medium brightness and high brightness respectively can be 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 specifically the situation shown in FIG . 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 T0 is less than the shutdown duration of the LED in the display area corresponding to the ambient light sensor; when the brightness of the OLED display screen is higher brightness , the specified duration is equal to the off duration of the LED in the display area corresponding to the ambient light sensor.

或者,如图8所示,该方法可以包括:S501.检测TE信号;S502.判断OLED显示屏是否工作在PWM模式,若否则按照图6所提供的S402-S403执行(即较高亮度下按照图6所提供的方法执行),若是则执行下述S503a和S503b;S503a.响应于检测到TE信号,将检测到该TE信号的时刻分别延迟(1/4)*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继续执行。Or, as shown in Figure 8, the method may include: S501. Detecting the TE signal; S502. Judging whether the OLED display is working in PWM mode, if not, execute according to S402-S403 provided in Figure 6 (that is, under higher brightness, follow The method provided in FIG. 6 is executed), if so, the following S503a and S503b are executed; S503a. In response to detecting the TE signal, delay (1/4)*T f −T 0 , ( 1/2)*T f -T 0 , (3/4)*T f -T 0 and T f -T 0 ; S503b. Control the ambient light sensor to delay (1/4)*T f -T 0 , (1/2)*T f -T 0 , (3/4)*T f -T 0 and T f -T 0 collect ambient light data within the first specified time period 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, it will 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 above method provided in FIG. 8 , the working timing diagrams of the OLED display screen at low brightness, medium brightness and high brightness respectively can 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 area corresponding to the ambient light sensor is in the off state, which specifically refers to the situation shown in Fig. 5 above. The light sensor collects ambient light data within four first specified durations T0 within a single refresh duration Tf ; when the brightness of the OLED display is relatively high, the LED in the display area corresponding to the ambient light sensor is turned off The state may specifically be the situation shown in FIG. 4 above. In addition, when the brightness of the OLED display screen is low brightness and medium brightness, the first specified duration T0 is shorter than the off duration of the LED in the display area corresponding to the ambient light sensor; when the brightness of the OLED display screen is higher brightness , the first designated duration T 0 designated duration is equal to the off duration of the LED in the display screen 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继续执行。Or, as shown in FIG. 10, the method may include: S601. Detecting the TE signal; S602. Judging whether the OLED display is working in PWM mode, if not, perform according to S402-S403 provided in FIG. The method provided in FIG. 6 is executed), if so, execute 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 duration of a single refresh, T 1 represents the second specified duration; S603b. Control ambient light Second designation of sensors after delays of (1/4)*T f -T 1 , (1/2)*T f -T 1 , (3/4)*T f -T 1 and T f -T 1 respectively Collect ambient light data within the duration T1 ; S604. Acquire ambient light data and total collection time; S605. Cache ambient light data; S606. Determine whether the total collection time reaches the preset collection time, if the total collection time reaches the preset collection time, then End, if the total collection time does not reach the preset collection time, return to S601 to continue execution.

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

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

本申请实施例还提供一种电子设备,该电子设备的结构可以如上述图1所示,该电子设备包括的OLED显示屏140覆盖在环境光传感器151上方,比如OLED显示屏140和环境光传感器151的位置关系可以如上述图2所示。The embodiment of the present application also provides an electronic device. The structure of the electronic device may be as shown in FIG. 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 the embodiment of the present application, the processor 180 in the electronic device can be used to perform the following steps: detect the display synchronization signal; and determine the first moment and the second moment in response to the detection of the display synchronization signal. The first moment is the ambient light sensor 151 corresponds to the turn-off time of the LED in the display area, the second time is the turn-on time of the LED in the display area corresponding to the ambient light sensor 151, the first time is earlier than the second time, the The LED remains off between the first moment and the second moment; when the ambient light sensor 151 is turned on, the turn-on moment of the ambient light sensor 151 is not earlier than the first moment; when the ambient light sensor 151 is turned off, the turn-off moment of the ambient light sensor 151 is not later 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 140 . In addition, the processor 180 is also specifically configured to: determine the first moment according to the third moment and the position of the ambient light sensor 151 on the OLED display screen 140; wherein, the third moment is the time when the display synchronization signal is detected and delayed by the first time. The first duration is related to a single refresh duration of the OLED display 140 and an off duration of the LEDs in the display area corresponding to the ambient light sensor 151 . Wherein, the first duration may be a difference between a single refresh duration of the OLED display 140 and an off duration of 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 turning off of the LED in the display area corresponding to the ambient light sensor 151 is used to refresh the next frame image of the OLED display 140; The turning off of the LED is used to adjust the brightness of the OLED display 140 .

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

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

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

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

Claims (9)

1. An ambient light data collection method, characterized by being applied to an electronic device comprising an OLED display screen and an ambient light sensor, wherein the OLED display screen is covered above the ambient light sensor, the method comprising:
detecting a display synchronization signal;
in response to detecting the display synchronization signal, determining a first moment and a second moment, wherein the first moment is the closing moment of the OLED of the display screen area corresponding to the ambient light sensor, the second moment is the opening moment of the OLED of the display screen area corresponding to the ambient light sensor, the first moment is earlier than the second moment, and the OLED of the display screen area corresponding to the ambient light sensor is kept in a closing state between the first moment and the second moment;
opening the ambient light sensor, wherein the moment of opening the ambient light sensor is not earlier than the first moment;
Turning off the ambient light sensor, wherein the time of turning off the ambient light sensor is not later than the second time;
determining the second time comprises: the moment when the display synchronization signal is detected delays the single refreshing time of the OLED display screen and then delays the moving time to obtain the second moment, wherein the moving time is the time required by the closed display screen area when the display screen area moves from the uppermost part of the OLED display screen to the display screen area corresponding to the ambient light sensor;
determining the first time includes: and advancing the second time to obtain the first time by the closing time of the OLED of the display screen area corresponding to the ambient light sensor.
2. The method of claim 1, wherein between the first time and the second time, the image of the OLED display screen is refreshed.
3. The method of claim 1, wherein the brightness of the OLED display screen is adjusted between the first time and the second time.
4. A method according to any one of claims 1-3, wherein the method further comprises:
and opening the ambient light sensor for a plurality of times, so that the total time length of the ambient light sensor in the opening state is longer than the preset time length.
5. An electronic device, comprising: a processor, an OLED display screen and an ambient light sensor, the OLED display screen overlying the ambient light sensor, the processor for performing the steps of:
detecting a display synchronization signal;
in response to detecting the display synchronization signal, determining a first moment and a second moment, wherein the first moment is the on moment of the OLED of the display screen area corresponding to the ambient light sensor, the second moment is the off moment of the OLED of the display screen area corresponding to the ambient light sensor, the first moment is earlier than the second moment, and the OLED of the display screen area corresponding to the ambient light sensor is kept in an off state between the first moment and the second moment;
starting the ambient light sensor, wherein the starting time of the ambient light sensor is not earlier than the first time;
closing the ambient light sensor, wherein the closing time of the ambient light sensor is not later than the second time;
the processor is specifically configured to: the moment when the display synchronization signal is detected delays the single refreshing time of the OLED display screen and then delays the moving time to obtain the second moment, wherein the moving time is the time required by the closed display screen area when the display screen area moves from the uppermost part of the OLED display screen to the display screen area corresponding to the ambient light sensor;
The processor is further specifically configured to: and advancing the second time to obtain the first time by the closing time of the OLED of the display screen area corresponding to the ambient light sensor.
6. The electronic device of claim 5, wherein turning off the OLED of the display screen area corresponding to the ambient light sensor is used to refresh a next frame of image of the OLED display screen;
and/or the closing of the OLED of the display screen area corresponding to the ambient light sensor is used for adjusting the brightness of the OLED display screen.
7. The electronic device of claim 5 or 6, wherein the duration between the on time and the off time is an off duration of an OLED of a display screen area corresponding to the ambient light sensor when a next frame of image of the OLED display screen is refreshed.
8. The electronic device of claim 5 or 6, wherein the duration between the on time and the off time is a duration of OLED off of a display screen area corresponding to the ambient light sensor when adjusting the brightness of the OLED display screen.
9. The electronic device according to claim 5 or 6, wherein the processor is further specifically configured to:
And opening and closing the ambient light sensor for a plurality of times, so that the total time length of the ambient light sensor in the opening state meets the preset acquisition time length.
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 CN110012162A (en) 2019-07-12
CN110012162B true 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)

Families Citing this family (19)

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

Family Cites Families (8)

* 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, device, storage medium and electronic device
CN107990978A (en) * 2017-11-22 2018-05-04 广东欧珀移动通信有限公司 Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus
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
CN109410833B (en) * 2018-08-29 2021-01-15 北京小米移动软件有限公司 Ambient light detection method, ambient light detection device, terminal and storage medium
CN110012162B (en) * 2019-03-25 2023-05-19 华为技术有限公司 A method for collecting ambient light data and electronic equipment

Also Published As

Publication number Publication date
WO2020192455A1 (en) 2020-10-01
CN110012162A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN110012162A (en) A kind of ambient light data acquisition method and electronic equipment
US12626628B2 (en) Ambient light and proximity detection method, photographing method, and terminal
US11307733B2 (en) Always on display method and electronic device
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
US11843715B2 (en) Photographing method and terminal
CN113632441A (en) A light sensor state control method and electronic device
CN107979698A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
US20110090161A1 (en) Information input device, information input method, information input/output device, information program and electronic device
CN108173993A (en) Camera module, control method and mobile terminal
CN109558046A (en) A kind of information display method and terminal device
WO2021185115A1 (en) Exposure data acquisition method and electronic device
WO2022143152A1 (en) Display method and electronic device
CN107957293A (en) Ambient light intensity detection method and device, storage medium and electronic equipment
CN107948418A (en) Display state control method, device, storage medium and terminal
US20130009920A1 (en) Image display method and apparatus
US11017706B2 (en) Display screen and electronic device
CN110286420B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
CN113571007B (en) Sub-pixel driving circuit and pixel driving circuit
US20240355255A1 (en) Adjustment of display panel
KR20210016041A (en) PH calculation method and terminal
CN113571027B (en) Control method and device for display screen of electronic equipment, electronic equipment and storage medium
CN114384467A (en) Information sampling method and related device
CN116133209A (en) Lighting control method, device and storage medium
HK40001191A (en) Display screen and electronic device having the same

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