CN112017615B - Ambient light brightness calibration method of electronic equipment and electronic equipment - Google Patents

Ambient light brightness calibration method of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN112017615B
CN112017615B CN201910479172.4A CN201910479172A CN112017615B CN 112017615 B CN112017615 B CN 112017615B CN 201910479172 A CN201910479172 A CN 201910479172A CN 112017615 B CN112017615 B CN 112017615B
Authority
CN
China
Prior art keywords
ambient light
brightness
screen
electronic device
backlight
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
CN201910479172.4A
Other languages
Chinese (zh)
Other versions
CN112017615A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN201910479172.4A priority Critical patent/CN112017615B/en
Publication of CN112017615A publication Critical patent/CN112017615A/en
Application granted granted Critical
Publication of CN112017615B publication Critical patent/CN112017615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness

Abstract

According to the method for calibrating the ambient light brightness, the brightness of light leakage generated by the screen to the ambient light sensor is subtracted from the brightness measured by the ambient light sensor, so that the calibrated ambient light brightness can be obtained. The brightness of the light leakage generated by the screen to the ambient light sensor and the brightness of the screen have a linear positive correlation, and the linear positive correlation can be represented by a calibration slope (which may also be called as a calibration weight, a calibration factor, etc.). Under the condition of known calibration slope and known screen brightness, the brightness of the screen to light leakage generated by the ambient light sensor can be determined. Therefore, the method can calibrate the ambient light brightness of the electronic equipment (such as a mobile phone) with the problem of screen light leakage, greatly reduces or eliminates the influence of the screen light leakage on the ambient light sensor, and improves the reliability of the ambient light sensor in detecting the brightness of the external environment.

Description

Ambient light brightness calibration method of electronic equipment and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an ambient light brightness calibration method applied to an electronic device and an electronic device.
Background
In order to bring more comfortable visual feeling to users, comprehensive screen Industry Design (ID) has become a design trend of portable electronic devices such as mobile phones. Comprehensive screen means a very large screen duty cycle (typically above 90%). The width of the frame of the full screen is greatly reduced, and internal devices of the mobile phone, such as an ambient light sensor (ambient light sensor, ALS), a front camera, a receiver and the like, need to be rearranged.
Especially for the ambient light sensor, the design space of the ambient light sensor is reduced, and the design position of the ambient light sensor is closer to the screen, so that the brightness data collected by the ambient light sensor is easily influenced by light leakage of the screen, the brightness of the external environment cannot be accurately reflected, and the detected brightness data is unreliable.
Disclosure of Invention
The application provides an ambient light brightness calibration method of electronic equipment, which can calibrate the ambient light brightness of the electronic equipment (such as a mobile phone) with the problem of screen light leakage, greatly reduce or eliminate the influence of the screen light leakage on an ambient light sensor, and improve the reliability of the ambient light sensor in detecting the brightness of external environment.
In a first aspect, the present application provides an ambient light level calibration method, applied to an electronic device (such as a mobile phone), where the electronic device may have a screen and an ambient light sensor. The method may include: the electronic device may collect the first ambient light level l_m through the ambient light sensor, and may obtain the first backlight adjustment value B of the current screen. The electronic device may then obtain the calibration slope K. Finally, the electronic device may determine the calibrated ambient light level l_c, l_c=l_m-k×b according to the first ambient light level l_m, the calibration slope K, and the first backlight adjustment value B.
Wherein, k×b can be used to represent the brightness of the light leakage generated by the screen to the ambient light sensor. The brightness of the light leakage generated by the screen to the ambient light sensor and the brightness of the screen are in a linear positive correlation, the brightness of the screen can be described by the backlight order, and the ratio of the brightness of the light leakage of the screen to the backlight order is the calibration slope.
Since the first ambient light level l_m is equal to the actual ambient light level plus the brightness of the current screen light leakage. Therefore, by subtracting the brightness of the light leakage generated by the screen to the ambient light sensor from the first ambient light brightness l_m, the calibrated ambient light brightness can be obtained. Therefore, the influence of screen light leakage on the ambient light sensor can be greatly reduced or eliminated, and the reliability of the ambient light sensor in detecting the brightness of the external environment is improved.
In combination with the first aspect, in some embodiments, the electronic device may adjust the screen brightness based on the calibrated ambient light level l_c. This can improve the reliability of automatically adjusting the screen brightness based on the ambient light.
In combination with the first aspect, in some embodiments, the calibration slope may be pre-stored in the electronic device, and may be specifically stored in the NVM. The manner in which the calibration slope is obtained may include:
and 1, placing the electronic equipment in a dark environment. The dark environment may be a black, light-shielded box or other environment that is capable of shielding the outside ambient light. The actual ambient light level of the dark environment is less than the first light level. The first luminance means a small luminance, such as 0.5Lux. That is, a dark environment may refer to an environment where the actual ambient light level is equal to or near 0.
And 2, setting the current backlight adjustment value B (such as backlight order) of the screen of the electronic equipment to be about 40% of the maximum backlight adjustment value (such as maximum backlight order) so as to control the screen brightness to be low screen brightness. Here, the backlight adjustment value B may be referred to as a second backlight adjustment value. The maximum backlight adjustment value of around 40% is only one example of the second backlight adjustment value, and the second backlight adjustment value may also be another value, for example, 20% of the maximum backlight order, which should not constitute a limitation.
And 3, the electronic equipment detects the current ambient light brightness A through the ambient light sensor. The unit of brightness may be Lux (Lux). Here, the current ambient light level a detected by the ambient light sensor may be referred to as a second ambient light level. Since the electronic device is in a dark environment, the brightness is essentially the brightness of the screen light leakage.
The larger the brightness A is, the more serious the problem of screen light leakage is; otherwise, the screen light leakage problem is indicated to be more slight. In one possible case, the brightness a is equal to 0, which indicates that the electronic device has no problem of screen light leakage.
And 4, calculating A/B, and taking the result as the calibration slope of the electronic equipment. The calculated calibration slope may then be stored to the NVM within the electronic device.
That is, the calibration slope may be equal to the second ambient light level divided by the second backlight adjustment value. The second ambient light brightness may be the ambient light brightness collected by the ambient light sensor when the electronic device is in a dark environment and the screen brightness is controlled by the second backlight adjustment value.
In combination with the first aspect, in some embodiments, the electronic device may generate the calibration slope itself without pre-storing the calibration slope into the electronic device.
With reference to the first aspect, in some embodiments, one way to generate the calibration slope may be as follows:
step 1, the electronic device may first reduce the backlight adjustment value of the whole screen or a part of the screen to 0, and collect the ambient light brightness A1 through the ambient light sensor. Here, the ambient light level may be referred to as a third ambient light level. The partial screen is a partial screen near the ambient light sensor. Here, close means that each light emitting point of the partial screen is at a distance from the ambient light sensor that is less than a first distance (e.g., 15 mm). In the embodiment of the application, the backlight adjusting value of the screen is reduced to 0, and the brightness of the screen is almost 0, which can also be called as 'black screen'.
Since the backlight adjustment value of the whole screen or a part of the screen close to the ambient light sensor is reduced to 0, no light leakage is generated to the ambient light sensor, and thus the ambient light level A1 is the actual ambient light level.
Step 2, the electronic device may then light up the screen, specifically, may set the screen brightness by the backlight order B, and collect the ambient light brightness A2 by the ambient light sensor. Here, the backlight order B may be referred to as a third backlight adjustment value, and the ambient light level A2 may be referred to as a fourth ambient light level.
At this time, the ambient light level A2 is the sum of the actual ambient light level and the luminance of the screen light leakage. In one possible scenario, the ambient light level A2 is equal to the ambient light level A1, which indicates that the electronic device does not have a problem of screen light leakage.
Step 3, the electronic device may determine the brightness l_leak of the screen light leakage when the backlight order B is equal to l_leak=a2-A1. Here, the luminance l_leak of the screen light leakage when the backlight order B may be referred to as a second screen light leakage luminance.
Step 4, the electronic device may generate a calibration slope K according to the backlight order B and the second screen light leakage luminance l_leak, where k=l_leak/B. The electronic device can then store the generated calibration slope to the NVM within the electronic device.
That is, the calibration slope may be generated by the electronic device, and the calibration slope may be equal to the second screen light leakage luminance divided by the third backlight adjustment value. The second screen light leakage brightness may be equal to the fourth ambient light brightness minus the third ambient light brightness, the third ambient light brightness may be the ambient light brightness collected by the ambient light sensor when the screen is black, and the fourth ambient light brightness may be the ambient light brightness collected by the ambient light sensor when the screen brightness is controlled by the third backlight adjustment value.
The process of generating the calibration slope described above in steps 1-4 may be performed in response to a first user operation after the electronic device detects the first user operation (e.g., the user operation detected by the switch control 41 in fig. 4A).
The electronic device may also generate a calibration slope under certain conditions, not limited to responding to the first user operation. Under this particular condition, the number of uses of the electronic device (or specifically the screen of the electronic device) by the user may be low, for example, 0.
Wherein the specific condition may be, for example: the current time is a particular time, such as 12 pm, 12 pm being just one example, and the particular time may be other times. The specific time may be set by a user. The specific time may also be determined by the electronic device based on the previous number of uses of the electronic device by the user at different times, etc., for example, a time when the number of uses is less than a specific number (e.g., 2) is determined as the specific time. This particular condition may in turn be, for example: the electronic device connects to a bluetooth headset to play specific audio, such as pre-sleep story audio. This particular condition may in turn be, for example: the electronic device is connected to bluetooth on board and the speed of movement of the electronic device is higher than a certain speed, for example 50km/h. The specific condition may also be a combination of the above examples. Without being limited to the examples described above, the specific conditions may also be other forms of conditions, without limitation.
In combination with the first aspect, in some embodiments, another way of generating the calibration slope may be as follows: the electronic device may determine whether it is currently in a dark environment, and if so, may set a backlight adjustment value (e.g., backlight order) of a screen of the electronic device to a backlight adjustment value B, and detect the ambient light level a through the ambient light sensor when the screen brightness is controlled by the backlight adjustment value B. The electronic device may then generate a calibration slope that is equal to a/B. The backlight adjustment value B may be referred to as a second backlight adjustment value, and the ambient light level a is referred to as a second ambient light level.
The electronic device may determine whether the electronic device is currently in a dark environment in several ways:
mode 1. The electronic device may determine whether the current time is a first time (e.g., 12 pm), and if so, may determine that the electronic device is in a dark environment. The first time may be set by a user. The first time may also be determined by the electronic device based on ambient light levels previously detected at different times, such as determining a time when the ambient light level is below a first level (e.g., 0.5 Lux) as the first time.
Mode 2. The electronic device may determine whether the current location is a first location (e.g., a movie studio), and if so, may determine that the electronic device is in a darkened environment. The first position may be set by a user. The first location may also be determined by the electronic device based on ambient light levels previously detected at different locations, such as determining a location where the ambient light level is below a first level (e.g., 0.5 Lux) as the first location.
And 3, when the backlight adjustment value of the screen is 0, the electronic equipment can acquire the ambient light brightness through the ambient light sensor, judge whether the ambient light brightness is smaller than the first brightness (such as 0.5 Lux), and if the ambient light brightness is smaller than the first brightness, determine that the electronic equipment is in a dark environment. The second luminance means a small luminance, such as 0.5Lux. The screen brightness is equal to 0 or close to 0 when the backlight adjustment value is 0.
Two or more of the above approaches may also be combined to determine whether the electronic device is in a darkened environment. The electronic device may also determine whether the electronic device is in a dark environment in other ways, not limited to the above-mentioned ways.
In combination with the first aspect, in some embodiments, a plurality of calibration slopes may be stored in the electronic device, where the plurality of calibration slopes are determined under different backlight adjustment values (e.g., backlight orders), and different backlight adjustment values may be associated, such as a backlight adjustment value B1 for controlling the screen brightness to be low screen brightness, a backlight adjustment value B2 for controlling the screen brightness to be medium screen brightness, and a backlight adjustment value B3 for controlling the screen brightness to be high screen brightness. The electronic device in the foregoing first aspect may specifically include: the electronic device can acquire the calibration slope associated with the first backlight adjustment value from the plurality of calibration slopes according to the first backlight adjustment value; the plurality of calibration slopes are respectively associated with different backlight adjustment values.
The calibration slopes may be pre-stored in the electronic device or may be generated by the electronic device itself. Reference may be made specifically to the foregoing related descriptions, respectively, and no further description is given here.
In a second aspect, the present application provides an electronic device comprising a plurality of functional units for performing the method provided by any one of the possible embodiments of the first aspect, respectively.
In a third aspect, the present application provides an electronic device for performing the ambient light level calibration method described in any one of the possible embodiments of the first aspect. The electronic device may include: a screen, an ambient light sensor, a memory, one or more processors, wherein: an ambient light sensor may be used to collect the first ambient light level. The processor may be configured to obtain a first backlight adjustment value from the screen. The first backlight adjustment value may be used to control the screen brightness of the screen. The processor may be further configured to obtain a calibration slope from the memory, the calibration slope representing a linear positive correlation between the brightness of the light leak from the screen to the ambient light sensor and the brightness of the screen. The processor is used for determining the calibrated ambient light brightness according to the first ambient light brightness, the first backlight adjustment value and the calibration slope. The calibrated ambient light level is equal to the first ambient light level minus the first screen light leakage luminance, wherein the first screen light leakage luminance is the luminance of light leakage generated by the screen to the ambient light sensor when the screen luminance is controlled by the first backlight adjustment value, and the first screen light leakage luminance is a calibration slope and a first backlight.
With reference to the third aspect, in some embodiments, the processor may be further configured to determine whether the electronic device is in a dark environment; the screen is also used for setting the screen brightness according to the second backlight adjustment value when the electronic device is in the dark environment. The ambient light sensor may also be used to collect a second ambient light level when the electronic device is in a dark environment and the screen brightness of the screen is controlled by the second backlight adjustment value. The processor may be further configured to generate a calibration slope equal to the second ambient light level divided by the second backlight adjustment value.
With reference to the third aspect, in some embodiments, the screen may further be configured to set the screen brightness to be less than the second brightness; the ambient light sensor is used for collecting third ambient light brightness when the screen brightness is smaller than the second brightness. The screen may be used to set the screen brightness according to the third backlight adjustment value. The ambient light sensor may also be used to collect a fourth ambient light level when the screen brightness is controlled by the third backlight adjustment value. The processor may also be configured to determine a second screen light leakage luminance that is equal to the fourth ambient light level minus the third ambient light level. The processor may be further configured to generate a calibration slope equal to the second screen light leakage luminance divided by the third backlight adjustment value.
With reference to the third aspect, in some embodiments, the processor may be specifically configured to obtain, from a plurality of calibration slopes stored in the memory, a calibration slope associated with the first backlight adjustment value according to the first backlight adjustment value; the plurality of calibration slopes are respectively associated with different backlight adjustment values.
With reference to the third aspect, in some embodiments, the screen may further be configured to adjust a screen brightness of the screen according to the calibrated ambient light level.
In a fourth aspect, the present application provides a computer readable storage medium having instructions stored thereon which, when run on a computer, cause the computer to perform the ambient light level calibration method described in the first aspect above.
In a fifth aspect, the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the ambient light level calibration method described in the first aspect above.
Drawings
In order to more clearly describe the technical solution in the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be described below.
FIG. 1A illustrates an internal design environment for an ambient light sensor of an electronic device (e.g., a full-screen cell phone) with a large screen ratio;
FIG. 1B illustrates a transmission path of light received by an ambient light sensor;
FIG. 2A shows the relationship between the backlight order and the drive current of an LED backlight panel;
fig. 2B shows a relationship between screen brightness and driving current of the LED backlight panel;
FIG. 3 shows an overall flow of the ambient light level calibration method provided by the present application;
FIG. 4A illustrates a user interface for turning on ambient light calibration;
FIG. 4B illustrates a user interface during an ambient light calibration process;
FIG. 5A illustrates a backlight control timing involved in the ambient light calibration process of FIG. 4B;
FIG. 5B shows the change in ambient light during the ambient light calibration process of FIG. 4B;
fig. 6A shows a structure of an electronic device provided by the present application;
fig. 6B shows a software architecture adopted by the electronic device provided by the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Fig. 1A illustrates an internal design environment for an ambient light sensor of an electronic device with a large screen ratio, such as a full-screen cell phone. As shown in fig. 1A, the screen of the electronic device may include a glass cover, a display (e.g., a liquid crystal display (liquid crystal display, LCD)). The LCD itself is transparent and does not emit light, requiring light to be emitted by means of a backlight plate disposed behind it. The backlight may be a light emitting diode (lighting emitting diode, LED). Alternatively, the screen may be a touch screen, in which case the screen may further include a touch sensitive panel (not shown). The ambient light sensor of the electronic device may be disposed on a printed circuit board (printed circuit board, PCB), may be on a PCB small board (sub PCB) on a PCB main board (main PCB), for example. A light guide post may be disposed above the ambient light sensor. The light guide post may be used to transmit light (e.g., light incident from a glass cover plate above the light guide post) from one end of the light guide post (the end near the glass cover plate) to the other end (the end near the ambient light sensor) with minimal loss. Optionally, there may be no light guide post above the ambient light sensor.
Because the screen of the electronic device is very large, the ambient light sensor and the light guide posts are designed to be located very close to the LCD. For example, the gap between the light guide posts and the LCD side walls is only 0.35 mm wide (or even less), and the LCD side walls emit light that can leak light to the ambient light sensor. That is, as shown in fig. 1B, the light transmitted to the ambient light sensor via the light guide pillar includes not only the light emitted into the external environment through the glass cover plate above the light guide pillar, but also the light emitted from the LCD side wall of the ambient light sensor via the light guide pillar (i.e., the light leakage of the ambient light sensor by the LCD). The fabrication process of the electronic device can affect how much light is emitted from the LCD side wall that is transmitted to the ambient light sensor via the light guide posts. The more light the ambient light sensor receives from the LCD side wall, the more light leakage the LCD produces to the ambient light sensor; conversely, the more light leakage the LCD produces to the ambient light sensor.
It can be seen that in an electronic device with a large screen occupation ratio, such as a full-screen, the brightness data collected by the ambient light sensor is easily affected by light leakage of the screen, so that the brightness of the external environment cannot be accurately reflected, and the detected brightness data is unreliable. Since light leakage generated by the LCD to the ambient light sensor is also collected by the ambient light sensor, the brightness collected by the ambient light sensor is greater than the actual ambient light brightness.
Moreover, the screen light leakage may further affect the effect of adjusting the brightness of the screen based on the ambient light detected by the ambient light sensor, for example, in an external environment with the same brightness, the screen of a mobile phone having the screen light leakage problem is brighter than the screen of a mobile phone having no screen light leakage problem, and the screen of a mobile phone having serious screen light leakage is brighter than the screen of a mobile phone having slight screen light leakage. This severely affects the consistency with which the same electronic product is presented to the customer.
The following embodiments of the present application will discuss how to solve the problem of unreliable ambient light caused by the above-mentioned light leakage of the screen.
The following embodiments of the present application provide a method for calibrating ambient light brightness of an electronic device, which can calibrate ambient light brightness of an electronic device (such as a mobile phone) with a problem of screen light leakage, greatly reduce or eliminate the influence of the screen light leakage on an ambient light sensor, and improve the reliability of the ambient light sensor in detecting the brightness of an external environment.
According to the method for calibrating the ambient light brightness, the brightness of light leakage generated by the screen to the ambient light sensor is subtracted from the brightness measured by the ambient light sensor, so that the calibrated ambient light brightness can be obtained. The brightness of the light leakage generated by the screen to the ambient light sensor and the brightness of the screen have a linear positive correlation, and the linear positive correlation can be represented by a calibration slope (which may also be called as a calibration weight, a calibration factor, etc.). The brightness of the light leak generated by the screen to the ambient light sensor can be determined under the conditions of known calibration slope and known screen brightness.
In order to simplify the description, in the following, light leakage generated by a screen to an ambient light sensor may be simply referred to as screen light leakage.
For ease of understanding, the basic principles involved in calibrating the slope will be described first.
1. Backlight driving principle
The screen brightness may be controlled by a backlight driving integrated circuit (integrated circuit, IC). The backlight driving ICs may control the screen brightness by the backlight step. The relationship between the backlight order and the driving current of the LED backlight panel may be a linear positive correlation as shown in fig. 2A, i.e., the larger the driving current, the higher the backlight order. The backlight order is a parameter that can be used to describe the magnitude of the drive current.
In practical applications, the light emitting characteristics of the backlight panel may be as shown in fig. 2B, the driving current of the LED backlight panel is smaller at low and medium brightness, for example, less than 15ma, and the light emitting brightness (i.e. screen brightness) of the LED backlight panel and the driving current may have a good linear relationship, and at this time, the backlight order stored in the backlight driving IC may be used to describe the light emitting brightness (i.e. screen brightness) of the LED backlight panel. Thereafter, as the driving current is continuously increased, the light emission luminance of the LED backlight panel and the driving current exhibit a zigzag relationship. For example, after the point A, the increasing speed of the luminous brightness of the LED backlight plate is slowed down along with the increase of the driving current; after the point B, the increase of the light emission luminance of the LED backlight panel is small with the increase of the driving current, and the LED backlight panel is similarly brought into a light emission saturated state. This is because, when the driving current of the LED backlight increases, for example, when the driving current is larger than 15mA, the temperature of the LED increases, and the light degradation of the LED starts to accelerate due to the temperature increase. Thus, at a high backlight order (e.g., a backlight order with a drive current of 15 mA), the backlight order and the screen brightness exhibit a polyline relationship. The points a and B in fig. 2B may be referred to as turning points of light emission characteristics, and the current is determined by the material characteristics of the backlight, which are inherent characteristics of the backlight. The currents of 15mA and 20mA are only one example, and the current of the turning point of the light emission characteristic may be other values.
2. The brightness of the screen light leakage and the screen brightness are linearly and positively correlated
The electronic device interior design environment in which the ambient light sensor is located is fixed, so the path of the screen sidewall light transmitted to the ambient light sensor via the light guiding column is fixed. In addition, the light emission or refraction characteristics of materials such as a shell in the electronic equipment are stable, and the light emission or refraction characteristics belong to proportional positive correlation linear characteristics, for example, when the positions of the light source and the shell materials are fixed, and the light source is lightened in equal proportion, the light intensity reflected by the shell is increased by a certain proportion coefficient, and finally the light intensity is received by the sensor. Therefore, the brightness of the screen light leakage is linearly changed along with the change of the screen brightness, and the brightness of the screen light leakage are linearly and positively correlated.
It can be understood that when the backlight order stored in the backlight driving IC is 0, the driving current of the backlight panel is almost 0, the screen brightness is almost 0Lux, and the screen light leakage is also negligible accordingly. In the following embodiments, how to determine the calibration slope will be described in detail, and will not be described in detail here.
Fig. 3 shows an overall flow of an ambient light level calibration method according to an embodiment of the present application. The following are developed:
s101, the electronic device can collect the ambient light level L_m through an ambient light sensor. Specifically, after the ambient light sensor collects the ambient light level l_m, the ambient light level l_m may be sent to the processor.
In the embodiment of the present application, the ambient light level l_m collected by the ambient light sensor may be referred to as a first ambient light level. According to the above analysis, the ambient light level l_m is equal to the actual ambient light level plus the current screen light leakage luminance, so it is critical that the calibrated ambient light level is equal to or close to the actual ambient light level to determine the current screen light leakage luminance.
S102, the electronic equipment can acquire the backlight order B of the current screen through the backlight driving IC. Specifically, the backlight order B may be stored in a register of the backlight driving IC.
In the embodiment of the present application, the backlight order B may be referred to as a first backlight adjustment value. The first backlight adjustment value may be used to describe the magnitude of the backlight driving current. The first backlight adjustment value may include other values capable of describing the magnitude of the backlight driving current, not limited to the backlight order. The backlight order may also be used to describe the screen brightness. When the backlight order is small, the driving current is small (e.g., less than 1 mA), and the rate of linear increase of the screen brightness with the increase of the backlight order is relatively large, i.e., the calibration slope is relatively large. When the backlight order is larger, the driving current is larger (for example, larger than 15mA and even larger than 20 mA), and the screen brightness is reduced at a rate of linearly increasing with the increase of the backlight order due to the light attenuation of the backlight plate, namely, the calibration slope is reduced.
S103, the electronic equipment can acquire a pre-stored calibration slope K. Specifically, the calibration slope K may be stored in a non-volatile memory (NVM) without loss of power-down data. In the following embodiments, how to determine the calibration slope K will be described in detail, which will not be described in detail here.
And S104, the electronic equipment can determine the brightness L_leak of the current screen light leakage according to the calibration slope K and the backlight order B, wherein L_leak=the backlight order B.
In the embodiment of the present application, the luminance l_leak of the current screen light leakage may be referred to as the first screen light leakage luminance, and the current screen light leakage is generated by the screen to the ambient light sensor, where the backlight order of the screen is the backlight order B.
S105, the electronic device may determine, according to the brightness L_leak of the current screen light leakage determined in S104 and the ambient light brightness L_m in S101, the calibrated ambient light brightness L_c, where the calibrated ambient light brightness L_c=the ambient light brightness L_m—the brightness L_leak of the current screen light leakage.
Specifically, S104, S105 may be executed by a processor in the electronic device.
S106-S107 optionally, the electronic device may adjust the screen brightness based on the calibrated ambient light level l_c.
Specifically, the processor may send the calibrated ambient light level l_c to the backlight driving IC, as shown in S106; then, the backlight driving IC may transmit a backlight adjustment instruction to the backlight panel, as shown in S107. The backlight adjustment command may include a backlight order determined according to the calibrated ambient light level l_c, and may be used to adjust the light emission brightness (i.e., screen brightness) of the backlight panel based on the calibrated ambient light level l_c.
Assuming that the automatic adjustment of the screen brightness of the electronic device is turned on when the flow shown in fig. 3 is executed, the backlight order carried by the backlight adjustment instruction in S107 is smaller than the backlight order B acquired in S102, because the calibrated ambient light level l_c is smaller than the ambient light level l_m acquired by the ambient light sensor.
The ambient light calibration method provided by the application can calibrate the ambient light brightness of the electronic equipment (such as a mobile phone) with the problem of screen light leakage, greatly reduces or eliminates the influence of the screen light leakage on an ambient light sensor, and improves the reliability of automatically adjusting the screen brightness based on the ambient light.
The ambient light calibration method provided by the present application is described in detail below by way of several examples.
Example 1
First, the screen light leakage problem can be tested and the calibration slope determined by:
and 1, placing the electronic equipment in a dark environment. The dark environment may be a black, light-shielded box or other environment that is capable of shielding the outside ambient light. The actual ambient light level of the dark environment is less than the first light level. The first luminance means a small luminance, such as 0.5Lux. That is, a dark environment may refer to an environment where the actual ambient light level is equal to or near 0.
And 2, setting the current backlight adjustment value B (such as backlight order) of the screen of the electronic equipment to be about 40% of the maximum backlight adjustment value (such as maximum backlight order) so as to control the screen brightness to be low screen brightness. Here, the backlight adjustment value B may be referred to as a second backlight adjustment value. The maximum backlight adjustment value of around 40% is only one example of the second backlight adjustment value, and the second backlight adjustment value may also be another value, for example, 20% of the maximum backlight order, which should not constitute a limitation.
And 3, the electronic equipment detects the current ambient light brightness A through the ambient light sensor. The unit of brightness may be Lux (Lux). Here, the current ambient light level a detected by the ambient light sensor may be referred to as a second ambient light level. Since the electronic device is in a dark environment, the brightness is essentially the brightness of the screen light leakage.
The larger the brightness A is, the more serious the problem of screen light leakage is; otherwise, the screen light leakage problem is indicated to be more slight. In one possible case, the brightness a is equal to 0, which indicates that the electronic device has no problem of screen light leakage.
And 4, calculating A/B, and taking the result as the calibration slope of the electronic equipment. The calculated calibration slope may then be stored to the NVM within the electronic device.
That is, in the first embodiment, the calibration slope may be equal to the second ambient light level divided by the second backlight adjustment value. The second ambient light brightness may be the ambient light brightness collected by the ambient light sensor when the electronic device is in a dark environment and the screen brightness is controlled by the second backlight adjustment value.
Different electronic devices may have different levels of screen light leakage problems, i.e., the calibration slope may be different.
Alternatively, for a certain electronic device, if the brightness of the screen light leakage detected in the step 3 is greater than a specific value (e.g. 150 Lux), or the calibration slope calculated in the step 4 is greater than a specific ratio (e.g. 0.03), the electronic device may be determined as a failure machine, and the screen light leakage is excessive. For example, when the backlight order is 3000, the screen brightness is about 50% of the highest brightness, and if the light leakage is 3 Lux, the light leakage brightness/backlight order is only 0.001; if the light leakage brightness/backlight order exceeds 0.03, it means that the light leakage exceeds 90Lux and the light leakage is excessive.
After pre-storing the calibration slope (in NVM), the electronic device can implement the ambient light calibration through the following procedure.
Step 1, the electronic device can acquire data Q reported by an ambient light sensor. The data Q represents the ambient light level collected by the ambient light sensor, and the data Q is a measurement of the ambient light. For electronic devices with the problem of screen light leakage, the brightness of the data Q is greater than the brightness of the actual environment.
And 2, the electronic equipment can acquire a backlight adjusting value W for controlling the brightness of the screen currently. The backlight adjustment value W may be stored in a register of the backlight driving IC.
And 3, the electronic equipment can read a pre-stored calibration slope K.
The embodiment of the application is not limited to the execution sequence of the steps 1, 2 and 3.
Step 4, after the data is obtained in step 1-3, the electronic device may determine the calibrated ambient light level l_c as: l_c=q-w×k. The subtracted factor w×k is the brightness of the light leakage generated by the ambient light sensor by the screen at the current screen brightness. Therefore, the influence of screen light leakage on the ambient light sensor can be eliminated, and the brightness of the calibrated ambient light can be determined. In addition, in the same environment, different electronic devices with different degrees of screen light leakage problems can obtain the same calibrated ambient light brightness, so that the product consistency can be improved.
Optionally, the screen brightness may be adjusted based on the calibrated ambient light level l_c determined in step 4, so that the reliability of the screen brightness adjustment may be improved.
It can be seen that, in the first embodiment, a calibration slope can be pre-stored in the electronic device for the light leakage problem of the electronic device, and the calibration slope is obtained by testing at a low screen brightness, so that the calibration slope is applicable to dynamic calibration of ambient light in a scene with the low screen brightness, and the reliability of detecting the brightness of the external environment by the ambient light sensor is greatly improved. In a scene with low screen brightness, since the screen brightness itself is low, if the ambient light is not calibrated, small light leakage (e.g. 4 Lux) will have a large effect on the screen brightness adjustment. The first embodiment can also be applied to a scene with high screen brightness, where there is an error because the calibration slope becomes smaller. However, at high screen brightness, the tolerance to this error is also high because the screen brightness itself is high.
Example two
In the second embodiment, the electronic device may pre-store a plurality of calibration slopes, where the calibration slopes are determined under different backlight adjustment values (such as backlight orders), and may be associated with different backlight adjustment values, for example, a backlight adjustment value B1 for controlling the screen brightness to be low, a backlight adjustment value B2 for controlling the screen brightness to be medium, and a backlight adjustment value B3 for controlling the screen brightness to be high.
Firstly, the problem of screen light leakage at different backlight orders can be tested and the calibration slope at different backlight orders can be determined by the following ways:
and 1, placing the electronic equipment in a dark environment. The dark environment may be a black, light-shielded box or other environment that is capable of shielding the outside ambient light. The actual ambient light level of the dark environment is less than the first light level. The first luminance means a small luminance, such as 0.5Lux. That is, a dark environment may refer to an environment where the actual ambient light level is equal to or near 0.
Step 2, setting backlight adjustment values (such as backlight orders) of a screen of the electronic equipment as B1, B2 and B3 in sequence, wherein B1 is smaller than B2 and smaller than B3, and detecting through ambient light sensors respectively: ambient light level A1 at backlight adjustment value B1, ambient light level A2 at backlight adjustment value B2, ambient light level A3 at backlight adjustment value B3. The driving current of B1 may be in the current range of 0-15mA in fig. 2B, the driving current of B2 may be in the current range of 15mA-20mA in fig. 2B, and the driving current of B3 may be a current above 20mA in fig. 2B. The maximum backlight adjustment value of about 40% is only one example of the second backlight adjustment value, and should not be construed as limiting. Wherein the respective current ranges are determined by the inherent characteristics of the screen. When a screen is determined, it is determined at what current the screen begins to decay.
Step 3. Calculate a plurality of calibration slopes K1, K2, K3, k1=a1/B1, k2=a2/B2, k3=a3/B3.
Since the LED backlight experiences light decay when the backlight driving current becomes large (e.g., exceeds 15 mA), the rate at which the screen brightness increases with increasing backlight order becomes smaller, i.e., the slope of the screen brightness/driving current becomes smaller, as exemplarily shown in fig. 2B. Since the brightness of the light detected by the ambient light sensor in the dark environment is only screen light leakage, the brightness of the screen light leakage is linearly and positively correlated with the screen brightness. Therefore, the increasing rate of the brightness of the screen light leakage along with the increase of the backlight order is also reduced, and K1 is smaller than K2 and smaller than K3.
And 4, storing the calculated calibration slopes K1, K2 and K3 into the NVM in the electronic equipment.
After (in NVM) being pre-stored with a plurality of calibration slopes K1, K2, K3, the electronic device can implement the ambient light calibration by the following procedure.
Step 1, the electronic device can acquire data Q reported by an ambient light sensor. Data Q represents the ambient light level collected by the ambient light sensor, and data Q is a measurement of the ambient light level. For electronic devices with a problem of screen light leakage, the brightness of the data Q is greater than the actual ambient brightness.
And 2, the electronic equipment can acquire a backlight adjusting value W for controlling the brightness of the screen currently. The backlight adjustment value W may be stored in a register of the backlight driving IC.
And 3, the electronic equipment acquires a calibration slope Kw corresponding to the backlight adjustment value W from the plurality of calibration slopes according to the backlight adjustment value W. The plurality of calibration slopes are respectively associated with different backlight orders, and the larger the calibration slope is, the smaller the backlight order is associated with.
For example, assume that the calibration slope K1 correlates to a backlight order of: 0 to a, the calibration slope K2 is associated with a backlight order of: a to b, the calibration slope K3 is associated with a backlight order greater than b. Wherein a is less than b, and a and b are positive integers. Kw can be determined as:
that is, if the backlight adjustment value W is in the range of 0 to a, the calibration slope Kw corresponding to the backlight adjustment value W is K1; if the backlight adjustment value W is in the range of a to b, the calibration slope Kw corresponding to the backlight adjustment value W is K2; if the backlight adjustment value W is greater than b, the calibration slope Kw corresponding to the backlight adjustment value W is K3.
Step 4, the electronic device may determine the calibrated ambient light level l_c as: l_c=q-W Kw. The subtracted factor W is Kw, i.e. the brightness of the screen light leakage when the backlight order is Kw. Therefore, the influence of screen light leakage on the ambient light sensor can be eliminated, and the brightness of the calibrated ambient light can be determined. Moreover, the screen brightness can be adjusted based on the calibrated ambient light level l_c determined in step 4, so that the reliability of the screen brightness adjustment can be improved.
It can be seen that, in the second embodiment, a plurality of calibration slopes can be pre-stored in the electronic device for the light leakage problem of the electronic device under different backlight orders, and the plurality of calibration slopes can include calibration slopes obtained by testing under various screen brightness. Therefore, the ambient light dynamic calibration method can be more carefully suitable for ambient light dynamic calibration under more screen brightness, and the reliability of detecting the brightness of the external environment by the ambient light sensor is greatly improved.
Example III
Unlike the above embodiments, the third embodiment does not need to pre-store the calibration slope into the electronic device, and the calibration slope can be generated by the electronic device. In embodiment three, the ambient light calibration may be integrated into the "settings" of the electronic device. The user may turn on the ambient light calibration in a "setting". A "setup" may be a system application or service that may be used to configure software or hardware of an electronic device.
First, the screen light leakage problem can be tested and the calibration slope generated by:
step 1, the electronic device may first reduce the backlight adjustment value of the whole screen or a part of the screen to 0, and collect the ambient light brightness A1 through the ambient light sensor. Here, the ambient light level may be referred to as a third ambient light level. The partial screen is a partial screen near the ambient light sensor. Here, close means that each light emitting point of the partial screen is at a distance from the ambient light sensor that is less than a first distance (e.g., 15 mm). In the embodiment of the application, the backlight adjusting value of the screen is reduced to 0, and the brightness of the screen is almost 0, which can also be called as 'black screen'.
Since the backlight adjustment value of the whole screen or a part of the screen close to the ambient light sensor is reduced to 0, no light leakage is generated to the ambient light sensor, and thus the ambient light level A1 is the actual ambient light level.
Step 2, the electronic device may then light up the screen, specifically, may set the screen brightness by the backlight order B, and collect the ambient light brightness A2 by the ambient light sensor. Here, the backlight order B may be referred to as a third backlight adjustment value, and the ambient light level A2 may be referred to as a fourth ambient light level.
At this time, the ambient light level A2 is the sum of the actual ambient light level and the luminance of the screen light leakage. In one possible scenario, the ambient light level A2 is equal to the ambient light level A1, which indicates that the electronic device does not have a problem of screen light leakage.
Step 3, the electronic device may determine the brightness l_leak of the screen light leakage when the backlight order B is equal to l_leak=a2-A1. Here, the luminance l_leak of the screen light leakage when the backlight order B may be referred to as a second screen light leakage luminance.
Step 4, the electronic device may generate a calibration slope K according to the backlight order B and the second screen light leakage luminance l_leak, where k=l_leak/B. The electronic device can then store the generated calibration slope to the NVM within the electronic device.
That is, in the third embodiment, the calibration slope may be generated by the electronic device itself, without being pre-stored in the electronic device. The calibration slope may be equal to the second screen light leakage luminance divided by the third backlight adjustment value. The second screen light leakage brightness may be equal to the fourth ambient light brightness minus the third ambient light brightness, the third ambient light brightness may be the ambient light brightness collected by the ambient light sensor when the screen is black, and the fourth ambient light brightness may be the ambient light brightness collected by the ambient light sensor when the screen brightness is controlled by the third backlight adjustment value.
The premise that the light leakage brightness of the second screen is equal to the fourth ambient light brightness minus the third ambient light brightness is that the fourth ambient light brightness and the third ambient light brightness are collected in an external environment with the same brightness. In some embodiments, the electronic device may determine that both were collected in an external environment of the same light intensity if one or more of the following conditions are met:
condition 1. The time difference between the time when the fourth ambient light level is collected and the time when the third ambient light level is collected is less than the first time (e.g., 5 ms).
Condition 2. The distance between the location of the electronic device when the fourth ambient light level is collected and the location of the electronic device when the third ambient light level is collected is less than the first distance (e.g., 0.5 m). Namely, the positions of the two environmental light collection processes are not changed greatly, and the brightness of the environmental light is the same.
And 3, acquiring the motion state of the electronic equipment when the fourth ambient light brightness is acquired, and acquiring the motion state of the electronic equipment when the third ambient light brightness is acquired.
Fig. 4A illustrates a user interface for turning on ambient light calibration in "setup". As shown in fig. 4A, the user interface may include a switch control 41. The electronic device may detect a user operation to turn on the ambient light calibration through the switch control 41, in response to which the electronic device may perform steps 1-4 described above. The user operation may be referred to as a first user operation.
As shown in fig. 4A, the electronic device may also display a plurality of calibration options, which may be, for example, "low screen brightness calibration", "medium screen brightness calibration", "high screen brightness calibration", "all screen brightness calibration". The plurality of calibration options may be associated with different backlight orders. The user selects different calibration options to determine the backlight order used to illuminate the screen in step 2. That is, the third backlight adjustment value may be selected by the user. When detecting that the user selects "low screen brightness calibration", the backlight order adopted for lighting the screen in the step 2 is small; when it is detected that the user selects "low screen brightness calibration", the backlight order used to light the screen in step 2 described above is large. When it is detected that the user selects "all screen brightness calibration", the above step 2 is to be executed by the electronic device multiple times with different backlight orders, so as to obtain multiple calibration slopes, and more screen brightness is applicable.
To enable visualization, the electronic device may display the user interface exemplarily shown in fig. 4B while performing the above steps 1-4. As exemplarily shown in fig. 4B, the electronic device can display a user interface of multiple stages. The electronic device may display the user interface of the stage 2 when executing the step 1, and may display the user interface of the stage 3 when executing the step 2. Wherein, the user interface of stage 1 can be used to prompt that the above steps 1-4 are about to start, and the user interface of stage 4 can be used to prompt that the above steps 1-4 are finished. The display of the user interface in stage 2 may be implemented by partially lighting up the screen, where a portion of the screen displaying the prompt 51 is lit up and the rest of the screen is turned off, so as to ensure that the screen does not leak light to the ambient light sensor. Alternatively, stage 2 may not illuminate the screen and not display the user interface, thereby ensuring that the screen does not leak light to the ambient light sensor. Wherein the display brightness of the user interface of stage 3 is determined according to the selected backlight order. The selected backlight order may be a default value, such as 40% of the maximum backlight order, or may be a backlight order associated with a calibration option selected by the user (e.g., "low screen brightness calibration" in fig. 4A).
Fig. 5A shows the backlight control timing involved in the above steps 1 to 4. Wherein, during t0-t1, the steps 1-4 are not performed yet, and the backlight order is b 2. In the period of t1-t2, the step 1 is executed, the backlight order can be gradually reduced from b2 to 0, and the screen is slowly darkened, so that the user can feel the gradual change process of the screen brightness, can fully feel the triggering of the calibration process, and the user experience is better. During t2-t3, step 1 is performed, the backlight order is reduced to 0, and the ambient light sensor captures the ambient light level. During t3-t4, step 2 is performed, the backlight level may gradually rise from 0 to b1, b1 being the selected backlight level, and the screen gradually lightens, avoiding irritation to the eyes of the user. After t4, the above steps 3-4 are performed, and the backlight order is b1.
Fig. 5B shows the change in the ambient light collected by the ambient light sensor in steps 1-4 above. Fig. 5B is premised on that the brightness of the external environment is not changed throughout the above-described steps 1 to 4. During the period t0-t1, the steps 1-4 are not performed yet, and the ambient light collected by the ambient light sensor may be Lux 3. During t1-t2, step 1 is performed, the backlight order may gradually decrease from b2 to 0, the screen brightness gradually decreases, and the ambient light collected by the ambient light sensor also gradually decreases. During t2-t3, step 1 is performed, the backlight order is reduced to 0, and the ambient light sensor collects ambient light level Lux 1, which is the actual ambient light level Lux 1. During t3-t4, step 2 is performed, the backlight order may gradually increase from 0 to b1, the screen gradually lightens, and the brightness of the ambient light collected by the ambient light sensor gradually increases to Lux 2. After t4, the steps 3-4 are performed, the backlight order is b1, and the brightness of the ambient light collected by the ambient light sensor is Lux 2.
After the calibration slope is generated in the steps 1-4, the electronic device may dynamically perform the ambient light calibration according to the calibration slope, and the process of performing the ambient light calibration based on the calibration slope described in the first or second embodiment may be referred to, which is not described herein.
The electronic device may also automatically trigger execution of steps 1-4 described above under certain conditions, not limited to responding to the first user operation (e.g., the user operation detected by the switch control 41 in fig. 4A). Under this specific condition, the number of uses of the electronic device (or specifically the screen of the electronic device) by the user may be low, for example, 0, so that performing the above steps 1 to 4 does not cause trouble to the user. Because, when the user is using the electronic device, the electronic device performs the above steps 1-4 (the screen is "black" and then lit up) may interfere with the user's normal use of the electronic device.
Alternatively, on the premise of receiving the first user operation, the electronic device may execute the above steps 1 to 4 again when detecting that the specific condition occurs.
The specific condition may be, for example: the current time is a particular time, such as 12 pm, 12 pm being just one example, and the particular time may be other times. The specific time may be set by a user. The specific time may also be determined by the electronic device based on the previous number of uses of the electronic device by the user at different times, etc., for example, a time when the number of uses is less than a specific number (e.g., 2) is determined as the specific time.
This particular condition may in turn be, for example: the electronic device connects to a bluetooth headset to play specific audio, such as pre-sleep story audio.
This particular condition may in turn be, for example: the electronic device is connected to bluetooth on board and the speed of movement of the electronic device is higher than a certain speed, for example 50km/h.
The specific condition may also be a combination of the above examples. Without being limited to the examples described above, the specific conditions may also be other forms of conditions, without limitation.
It can be seen that in the third embodiment, the calibration slope can be generated by the electronic device itself, without being pre-stored in the electronic device. Therefore, the method is applicable to wider application scenes and popularization and application range.
In addition, the electronic device may take another way to generate the calibration slope.
The other way may include: first, the electronic device may determine whether it is currently in a dark environment, and if so, may set a backlight adjustment value (e.g., backlight order) of a screen of the electronic device to a backlight adjustment value B, and detect the ambient light level a through the ambient light sensor when the screen brightness is controlled by the backlight adjustment value B. The electronic device may then generate a calibration slope that is equal to a/B.
As in the first embodiment, the calibration slope is obtained by dividing the ambient light level measured by the screen lit in the dark by the backlight order. The backlight adjustment value B may be referred to as a second backlight adjustment value, and the ambient light level a is referred to as a second ambient light level.
Unlike the first embodiment, the other way is for the electronic device to actively discover whether it is in a dark environment, rather than being passively placed in a dark environment (e.g., a black-out box). Therefore, the method is applicable to wider application scenes and popularization and application range.
The electronic device may determine whether the electronic device is currently in a dark environment in several ways:
mode 1. The electronic device may determine whether the current time is a first time (e.g., 12 pm), and if so, may determine that the electronic device is in a dark environment. The first time may be set by a user. The first time may also be determined by the electronic device based on ambient light levels previously detected at different times, such as determining a time when the ambient light level is below a first level (e.g., 0.5 Lux) as the first time.
Mode 2. The electronic device may determine whether the current location is a first location (e.g., a movie studio), and if so, may determine that the electronic device is in a darkened environment. The first position may be set by a user. The first location may also be determined by the electronic device based on ambient light levels previously detected at different locations, such as determining a location where the ambient light level is below a first level (e.g., 0.5 Lux) as the first location.
And 3, when the backlight adjustment value of the screen is 0, the electronic equipment can acquire the ambient light brightness through the ambient light sensor, judge whether the ambient light brightness is smaller than the first brightness (such as 0.5 Lux), and if the ambient light brightness is smaller than the first brightness, determine that the electronic equipment is in a dark environment. The second luminance means a small luminance, such as 0.5Lux. The screen brightness is equal to 0 or close to 0 when the backlight adjustment value is 0.
Two or more of the above approaches may also be combined to determine whether the electronic device is in a darkened environment. The electronic device may also determine whether the electronic device is in a dark environment in other ways, not limited to the above-mentioned ways. In the actual product, the electronic device may start the process of generating the correction slope after detecting the judgment condition conforming to the dark environment, and the process of generating the correction slope is not necessarily started after determining that the electronic device is in the dark environment according to the judgment condition. For example: when the electronic device determines that the current time is the first time, or when the current position is the first position, or the collected ambient light brightness is less than the first brightness, the electronic device may set a backlight adjustment value (such as a backlight order) of a screen of the electronic device to be a backlight adjustment value B, and detect the ambient light brightness a through the ambient light sensor when the screen brightness is controlled by the backlight adjustment value B. The electronic device may then generate a calibration slope.
The electronic device provided in the above embodiments of the present application is described below. Fig. 6A shows a schematic structural diagram of the electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192,3D camera module 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180G, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a central processor (central processing unit, CPU), a graphics processor (graphics processing unit, GPU), a neural-network processor (neural-network processing unit, NPU), a modem processor, an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided, reducing the latency of the processor 110 and thus improving the efficiency of the electronic device 100.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, 3D camera module 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as the display 194,3D camera module 193. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and 3D camera module 193 communicate through a CSI interface to implement camera functionality of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the 3D camera module 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments, the electronic device 100 may also employ different interfaces in the above embodiments, or a combination of interfaces.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194,3D camera module 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2. Illustratively, the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, or the like.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 may implement display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement camera functions through a 3D camera module 193, isp, video codec, GPU, display 194, and application processor AP, neural network processor NPU, etc.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) -1, MPEG-2, MPEG-3, MPEG-4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, data such as music, photos, videos, etc. are stored in an external memory card.
The internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may cause the electronic device 100 to execute the photographing preview method of the electronic device, various functional applications, data processing, and the like provided in some embodiments of the present application by executing the above-described instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system; the storage area may also store one or more applications (e.g., gallery, contacts, etc.), and so forth. The storage data area may store data (e.g., photos, contacts, etc.) created during use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
Because the screen of the electronic device has a large duty cycle, the ambient light sensor 180L is designed to be positioned very close to the display screen 194, and light leakage occurs to the ambient light sensor 180L when the display screen 194 emits light. The brightness data collected by the ambient light sensor 180L is easily affected by light leakage of the display screen 194, and cannot accurately represent the brightness of the external environment, and the detected brightness data is unreliable.
In the embodiment of the present application, the ambient light sensor 180L does not directly report the measured brightness, but first calibrates the measured brightness, and then reports the calibrated brightness. The calibrated light intensity is equal to the light intensity of the ambient light sensor 180L subtracted from the light intensity measured by the ambient light sensor 180L by the display screen 194. Therefore, the influence of screen light leakage on the ambient light sensor can be greatly reduced or eliminated, and the reliability of the ambient light sensor in detecting the brightness of the external environment is improved. How to calibrate the ambient light is described in detail in the above embodiments, and will not be described here again.
The electronic device 100 may adaptively adjust the brightness of the display 194 based on the calibrated ambient light level reported by the ambient light sensor 180L.
The fingerprint sensor 180G is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K may also be referred to as a touch panel or touch sensitive surface. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The electronic device 100 illustrated in the example of fig. 6A may display various user interfaces described in various embodiments below through the display 194. The electronic apparatus 100 may detect a touch operation in each user interface through the touch sensor 180K, such as a click operation (e.g., a touch operation on an icon, a double click operation) in each user interface, a slide operation up or down in each user interface, or an operation to perform a circled gesture, and so on. In some embodiments, the electronic device 100 may detect a motion gesture performed by the user holding the electronic device 100, such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, and the like. In some embodiments, the electronic device 100 may detect a non-touch gesture operation through the 3D camera module 193 (e.g., 3D camera, depth camera).
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the invention takes an Android system with a layered architecture as an example, and illustrates the software system architecture of the electronic device 100.
Fig. 6B shows a software system architecture of the electronic device 100 according to an embodiment of the present invention.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, a hardware abstraction layer (hardware abstract layer, HAL), and a kernel layer, respectively. Wherein:
the application layer may include a series of application packages. As shown in fig. 6B, the application package may include a screen brightness adjustment application, and may include other applications, not shown, such as a camera, gallery, calendar, talk, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 6B, the application framework layer may include a Sensor manager (Sensor manager), and may also include other window managers, content providers, view systems, and the like, which are not shown. Wherein the sensor manager is operable to manage, schedule operation of the sensor. The window manager may be used to manage window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider may be used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The view system may include visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications.
The HAL may be a package for Linux kernel drivers, providing an interface up, masking low-level implementation details. That is, the support for hardware is divided into two layers, one layer in the User Space (User Space) and one layer in the Kernel Space (Kernel Space), where the hardware abstraction layer runs in the User Space and the Linux Kernel driver runs in the Kernel Space. As shown in fig. 6B, the HAL may include a sensor HAL, which may be a package for a sensor driver in the kernel.
The kernel layer is a layer between hardware and software. As shown in FIG. 6B, the kernel layer may include at least an inputhub driver, a sensor hub, an ambient light sensor driver, a backlight driver, an NVM driver, and the like.
Fig. 6B also illustrates a software flow when the electronic device 100 performs the ambient light calibration method provided by the present application. The lower part is unfolded.
1. Data reading stage
An ambient light sensor driver (ALS driver) reads the ambient light level Q collected by the ambient light sensor from a register of the ambient light sensor. The ambient light sensor does not report the ambient light level Q to the application layer.
The backlight driver may read the currently used backlight order W1 from a backlight board (specifically, a backlight driving IC), and then send the backlight order W1 to the ALS driver via an inputub driver, sensor hub.
An ambient light Sensor driver (ALS driver) may read the pre-stored calibration slope K from the NVM and then send the calibration slope K to the ALS driver via an inputsub driver, sensor hub.
2. Ambient light calibration
ALS driver determines the calibrated ambient light level l_c, l_c=q-w1×k according to the calibration slope K, the backlight order W1, and the ambient light level Q detected by the ambient light sensor.
3. Reporting the ambient light brightness after calibration
After calibrating the ambient light, the ALS driver may report the calibrated ambient light level l_c to the application framework layer through the Sensor HAL interface. Then, the Sensor manager in the application framework layer processes the report event of the calibrated ambient light level l_c. Specifically, the Sensor manager may send the calibrated ambient light level l_c to a screen brightness adjustment Application (APP). The screen brightness adjustment application may be used to adjust the screen brightness based on the calibrated ambient light level.
4. Adjusting screen brightness based on calibrated ambient light levels
The screen brightness adjustment APP may determine a backlight order W2 for adjusting the screen brightness based on the calibrated ambient light brightness. If the brightness of the screen is to be improved, W2 is more than W1; if the screen brightness is to be reduced, W2 < W1. Then, the screen brightness adjustment APP calls the Sensor manager interface to transmit the backlight order W2 to the lower layer. The Sensor manager transmits the backlight order W2 to the kernel layer through the Sensor HAL interface. At the kernel layer, the backlight order W2 is transferred to the backlight driver via the inputsub driver. Finally, the backlight driver may send a screen brightness adjustment command to the backlight board (specifically, the backlight driver IC), where the command carries a backlight order W2, for controlling the screen brightness based on the backlight order W2.
It can be seen that, since the ALS driver does not directly report the ambient light level Q collected by the ambient light sensor, the ambient light level Q is calibrated, and then the calibrated ambient light level is reported. Thus, the influence of screen light leakage on the ambient light sensor is greatly reduced or eliminated, and the reliability of the ambient light sensor for detecting the brightness of the external environment can be improved.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be present in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part.
The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk SolidStateDisk (SSD)), etc.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An ambient light brightness calibration method of an electronic device, wherein the electronic device is provided with a screen and an ambient light sensor, the screen comprises an LCD display and a glass cover plate, the LCD display emits light through a backlight plate, the ambient light sensor is provided with a light guide channel, ambient light penetrating through the glass cover plate irradiates the ambient light sensor through the light guide channel, when the backlight plate emits light, side wall of the LCD display irradiates the ambient light sensor through the light guide channel, and the light guide channel comprises a channel formed by a light guide column; the method comprises the following steps:
the electronic equipment sets a backlight adjusting value of the screen to be a first backlight adjusting value;
the electronic device collects first ambient light brightness through the ambient light sensor;
The electronic equipment acquires a first calibration slope associated with the first backlight adjustment value from a plurality of calibration slopes; the calibration slope is used for indicating the light leakage degree of the ambient light sensor, which is generated by the bright light emitted by the screen through the light guide channel, under the associated backlight adjustment value; the plurality of calibration slopes are respectively associated with different backlight adjustment values, and the backlight adjustment values in a first range are associated with the first calibration slope;
the electronic equipment determines first screen light leakage brightness generated by the screen on the ambient light sensor under the first backlight adjusting value; the first screen light leakage brightness is equal to the first backlight adjusting value multiplied by the first calibration slope;
the electronic equipment determines the calibrated ambient light brightness, wherein the calibrated ambient light brightness is equal to the first ambient light brightness minus the first screen light leakage brightness;
the first calibration slope is equal to the second screen light leakage brightness divided by a third backlight adjusting value; the second screen light leakage brightness is equal to the fourth ambient light brightness minus the third ambient light brightness; the third ambient light brightness is the ambient light brightness collected by the ambient light sensor when the backlight adjusting value of the whole or part of the screen is 0, the fourth ambient light brightness is the ambient light brightness collected by the ambient light sensor when the screen brightness of the screen is controlled by the third backlight adjusting value, and the third backlight adjusting value is in the first range;
And adjusting the screen brightness based on the calibrated ambient light brightness.
2. The method as recited in claim 1, further comprising: the electronic device detects a first user operation, and in response to the first user operation, the electronic device performs:
setting the screen brightness of the screen to be smaller than the second brightness;
collecting the third ambient light level by the ambient light sensor;
setting screen brightness according to the third backlight adjustment value;
collecting the fourth ambient light level by the ambient light sensor;
the first calibration slope is generated.
3. The method of claim 1 or 2, wherein the third backlight adjustment value is selected by a user.
4. The method of claim 1, wherein,
the time difference between the collection time of the third ambient light level and the collection time of the fourth ambient light level is less than the first time; or,
the distance between the position of the electronic device when the third ambient light level is acquired and the position of the electronic device when the fourth ambient light level is acquired is smaller than a first distance; or,
and the motion state of the electronic equipment when the third ambient light brightness is acquired and the motion state of the electronic equipment when the fourth ambient light brightness is acquired are stationary states.
5. An electronic device, comprising: a screen, an ambient light sensor, a memory, one or more processors, the screen comprising an LCD display and a glass cover plate, the LCD display emitting light through a backlight plate, the ambient light sensor having a light guide channel through which ambient light passing through the glass cover plate impinges on the ambient light sensor, when the backlight plate emits light, a sidewall of the LCD display also emits light to the ambient light sensor through the light guide channel, the light guide channel comprising a channel formed by a light guide column; wherein:
the screen is used for setting the backlight adjustment value to be a first backlight adjustment value;
the ambient light sensor is used for collecting first ambient light brightness;
the processor is used for acquiring a first calibration slope associated with the first backlight adjustment value from a plurality of calibration slopes; the calibration slope is used for indicating the light leakage degree of the ambient light sensor, which is generated by the bright light emitted by the screen through the light guide channel, under the associated backlight adjustment value; the plurality of calibration slopes are respectively associated with different backlight adjustment values, and the backlight adjustment values in a first range are associated with the first calibration slope;
The processor is used for determining first screen light leakage brightness generated by the screen to the ambient light sensor under the first backlight adjustment value; the first screen light leakage brightness is equal to the first backlight adjusting value multiplied by the first calibration slope;
the processor is further configured to determine, by the electronic device, a calibrated ambient light level, the calibrated ambient light level being equal to the first ambient light level minus the first screen light leakage luminance;
the first calibration slope is equal to the second screen light leakage brightness divided by a third backlight adjusting value; the second screen light leakage brightness is equal to the fourth ambient light brightness minus the third ambient light brightness; the third ambient light brightness is the ambient light brightness collected by the ambient light sensor when the backlight adjusting value of the whole or part of the screen is 0, the fourth ambient light brightness is the ambient light brightness collected by the ambient light sensor when the screen brightness of the screen is controlled by the third backlight adjusting value, and the third backlight adjusting value is in the first range;
the screen is also used to adjust screen brightness based on the calibrated ambient light level.
6. The electronic device of claim 5, wherein the processor is further configured to control the electronic device to perform, after the electronic device detects a first user operation:
Setting the screen brightness of the screen to be smaller than the second brightness;
collecting the third ambient light level by the ambient light sensor;
setting screen brightness according to the third backlight adjustment value;
collecting the fourth ambient light level by the ambient light sensor;
the first calibration slope is generated.
7. The electronic device of claim 5 or 6, wherein the third backlight adjustment value is selected by a user.
8. The electronic device of claim 5,
the time difference between the collection time of the third ambient light level and the collection time of the fourth ambient light level is less than the first time; or,
the distance between the position of the electronic device when the third ambient light level is acquired and the position of the electronic device when the fourth ambient light level is acquired is smaller than a first distance; or,
and the motion state of the electronic equipment when the third ambient light brightness is acquired and the motion state of the electronic equipment when the fourth ambient light brightness is acquired are stationary states.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program, causes the computer device to implement the method of any one of claims 1 to 4.
10. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1 to 4.
CN201910479172.4A 2019-05-31 2019-05-31 Ambient light brightness calibration method of electronic equipment and electronic equipment Active CN112017615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910479172.4A CN112017615B (en) 2019-05-31 2019-05-31 Ambient light brightness calibration method of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910479172.4A CN112017615B (en) 2019-05-31 2019-05-31 Ambient light brightness calibration method of electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN112017615A CN112017615A (en) 2020-12-01
CN112017615B true CN112017615B (en) 2023-11-14

Family

ID=73506360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910479172.4A Active CN112017615B (en) 2019-05-31 2019-05-31 Ambient light brightness calibration method of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN112017615B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112781832A (en) * 2021-01-26 2021-05-11 北京小米移动软件有限公司 Method, apparatus, device and medium for determining ambient light for terminal device
CN114974107A (en) * 2021-02-24 2022-08-30 Oppo广东移动通信有限公司 Screen brightness control method and device, wearable device and readable storage medium
CN115019730A (en) * 2021-03-03 2022-09-06 Oppo广东移动通信有限公司 Screen light leakage amount determining and brightness adjusting method and device and electronic equipment
CN113804290B (en) * 2021-05-17 2022-09-23 荣耀终端有限公司 Ambient light detection method, electronic device and chip system
CN113806103B (en) * 2021-07-08 2022-08-26 荣耀终端有限公司 Data processing method, electronic equipment, chip system and storage medium
US11482167B1 (en) * 2021-08-11 2022-10-25 Meta Platforms Technologies, Llc Systems and methods for ambient light sensor disposed under display layer
CN113920963A (en) * 2021-09-18 2022-01-11 荣耀终端有限公司 Screen brightness adjusting method, electronic equipment and storage medium
CN114613317B (en) * 2022-02-18 2023-10-31 深圳市汇顶科技股份有限公司 Computing method of ambient light intensity of electronic device, related electronic device and chip
CN116682367B (en) * 2022-10-14 2024-03-29 荣耀终端有限公司 Screen ambient light detection method, electronic equipment and medium
CN115512673B (en) * 2022-10-25 2023-09-05 青岛海信移动通信技术有限公司 Light intensity value adjusting method, device, terminal equipment and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010237481A (en) * 2009-03-31 2010-10-21 Toshiba Corp Image correction device and method
CN106060285A (en) * 2016-08-15 2016-10-26 广东欧珀移动通信有限公司 Backlight control method and device, and mobile terminal
CN106462339A (en) * 2015-09-28 2017-02-22 华为技术有限公司 Terminal and method for detecting ambient brightness
CN106504725A (en) * 2015-09-07 2017-03-15 江苏清投视讯科技有限公司 A kind of rear-projection brightness control unit based on automatic detection
CN107223203A (en) * 2017-04-19 2017-09-29 深圳市汇顶科技股份有限公司 Light-intensity test method, device and intelligent terminal
CN107665697A (en) * 2017-10-20 2018-02-06 维沃移动通信有限公司 The adjusting method and mobile terminal of a kind of screen intensity
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107990978A (en) * 2017-11-22 2018-05-04 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN108021161A (en) * 2017-11-22 2018-05-11 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108716950A (en) * 2018-05-16 2018-10-30 北京小米移动软件有限公司 Environmental light brightness acquisition methods and device
CN108833716A (en) * 2018-06-29 2018-11-16 北京小米移动软件有限公司 Intensity of illumination determines method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6952195B2 (en) * 2000-09-12 2005-10-04 Fuji Photo Film Co., Ltd. Image display device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010237481A (en) * 2009-03-31 2010-10-21 Toshiba Corp Image correction device and method
CN106504725A (en) * 2015-09-07 2017-03-15 江苏清投视讯科技有限公司 A kind of rear-projection brightness control unit based on automatic detection
CN106462339A (en) * 2015-09-28 2017-02-22 华为技术有限公司 Terminal and method for detecting ambient brightness
CN106060285A (en) * 2016-08-15 2016-10-26 广东欧珀移动通信有限公司 Backlight control method and device, and mobile terminal
CN107223203A (en) * 2017-04-19 2017-09-29 深圳市汇顶科技股份有限公司 Light-intensity test method, device and intelligent terminal
CN107665697A (en) * 2017-10-20 2018-02-06 维沃移动通信有限公司 The adjusting method and mobile terminal of a kind of screen intensity
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107990978A (en) * 2017-11-22 2018-05-04 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN108021161A (en) * 2017-11-22 2018-05-11 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108716950A (en) * 2018-05-16 2018-10-30 北京小米移动软件有限公司 Environmental light brightness acquisition methods and device
CN108833716A (en) * 2018-06-29 2018-11-16 北京小米移动软件有限公司 Intensity of illumination determines method and device

Also Published As

Publication number Publication date
CN112017615A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN112017615B (en) Ambient light brightness calibration method of electronic equipment and electronic equipment
WO2020000448A1 (en) Flexible screen display method and terminal
CN111262975B (en) Bright screen control method, electronic device, computer-readable storage medium, and program product
CN111095723A (en) Wireless charging method and electronic equipment
CN113573390B (en) Antenna power adjusting method, terminal device and storage medium
CN113641271A (en) Application window management method, terminal device and computer readable storage medium
CN111104295A (en) Method and equipment for testing page loading process
CN115798390B (en) Screen display method and terminal equipment
CN114006698B (en) token refreshing method and device, electronic equipment and readable storage medium
CN113573045B (en) Stray light detection method and stray light detection device
CN113407300B (en) Application false killing evaluation method and related equipment
CN113890929B (en) Method and device for switching audio output channel and electronic equipment
CN113645595B (en) Equipment interaction method and device
CN113467821A (en) Application program repairing method, device, equipment and readable storage medium
CN115513571B (en) Control method of battery temperature and terminal equipment
CN115993592B (en) Bluetooth ranging method, electronic equipment and storage medium
CN114077323B (en) Touch screen false touch prevention method of electronic equipment, electronic equipment and chip system
CN115482143B (en) Image data calling method and system for application, electronic equipment and storage medium
CN116719376B (en) Voltage control method, device, equipment and storage medium
CN117079596B (en) Screen brightness adjusting method, terminal equipment and storage medium
CN116048831B (en) Target signal processing method and electronic equipment
CN116437194B (en) Method, apparatus and readable storage medium for displaying preview image
CN116684520B (en) Shutdown method, electronic equipment, storage medium and chip
CN116320880B (en) Audio processing method and device
CN116489272B (en) Voice message playing method and electronic equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20210427

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Applicant after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant