Display screen control method and device, equipment, storage medium and program product

By obtaining the band gap width and infrared value of the infrared sensor, determining the target correction equation and correcting the infrared value, the problem of inaccurate infrared value under the influence of sunlight is solved, and reliable screen-brightness or screen-off control of the display screen of electronic equipment is realized.

CN119993073APending Publication Date: 2025-05-13VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510339034.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-20
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

Infrared sensors are affected by infrared band light under sunlight, resulting in inaccurate infrared values, affecting the reliability of the screen-lit or screen-off control results of the electronic device display screen.

Method used

By obtaining the bandgap width and infrared value of the infrared sensor, the target correction equation corresponding to the bandgap width is determined, and based on the correction equation, the infrared value is corrected to obtain a more accurate infrared value, thereby accurately controlling the display screen to light up or turn off.

Benefits of technology

Effectively eliminate the impact of sunlight on infrared sensors, obtain more accurate infrared values, and ensure the reliability of the display's bright or shutdown control results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119993073A_ABST
    Figure CN119993073A_ABST
Patent Text Reader

Abstract

The invention discloses a display screen control method and device, equipment, a storage medium and a program product, and belongs to the technical field of electronic equipment. The method comprises the following steps: acquiring a first band gap width and a first infrared value of an infrared sensor of the electronic equipment; determining a target correction equation corresponding to the first band gap width according to a corresponding relation between the band gap width and a correction equation; based on a target correction equation, correcting the first infrared value to obtain a second infrared value; and according to the second infrared value, controlling a display screen of the electronic equipment to be turned on or turned off.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a display screen control method, device, equipment, storage medium and program product. Background Art

[0002] Infrared sensors are increasingly used in electronic devices such as mobile phones and tablets to block or turn off the screen at close range, for example, to effectively prevent accidental touches on the screen during a call. However, in sunlight, infrared sensors are easily affected by the infrared wavelengths of sunlight, which results in inaccurate infrared values ​​of the infrared sensors, affecting the working performance of the infrared sensors and making the screen on or off control results of electronic devices unreliable. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a display screen control method, device, equipment, storage medium and program product, which can accurately control the display screen to turn on or off.

[0004] In a first aspect, an embodiment of the present application provides a display screen control method, the method comprising:

[0005] Acquire a first band gap width and a first infrared value of an infrared sensor of the electronic device;

[0006] Determining a target correction equation corresponding to the first band gap width according to the corresponding relationship between the band gap width and the correction equation;

[0007] Based on the target correction equation, the first infrared value is corrected to obtain a second infrared value;

[0008] According to the second infrared value, the display screen of the electronic device is controlled to turn on or off.

[0009] In a second aspect, an embodiment of the present application provides a display screen control device, the device comprising:

[0010] A first acquisition module, used to acquire a first band gap width and a first infrared value of an infrared sensor of an electronic device;

[0011] A first determination module, configured to determine a target correction equation corresponding to a first band gap width according to a corresponding relationship between the band gap width and the correction equation;

[0012] A first correction module, used for correcting the first infrared value based on a target correction equation to obtain a second infrared value;

[0013] The control module is used to control the display screen of the electronic device to turn on or off according to the second infrared value.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0018] In an embodiment of the present application, a first band gap width and a first infrared value of an infrared sensor of an electronic device can be obtained; a target correction equation corresponding to the first band gap width is determined based on the corresponding relationship between the band gap width and the correction equation; based on the target correction equation, the first infrared value is corrected to obtain a second infrared value; and according to the second infrared value, the display screen of the electronic device is controlled to turn on or off.

[0019] In this way, the influence of sunlight on the band gap width of the infrared sensor can be considered, and a target correction equation for correcting the current infrared value can be determined based on the band gap width. The infrared value can be corrected based on the target correction equation to eliminate the influence of sunlight and obtain a more accurate corrected infrared value, so that the display screen can be accurately controlled to be turned on or off based on the corrected infrared value. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of a display screen control method provided in an embodiment of the present application;

[0021] Figure 2 is a working principle diagram of the infrared sensor in the display screen control method provided in an embodiment of the present application;

[0022] Figure 3 is a graph showing the corresponding relationship between the bandgap width and the infrared value in the display screen control method provided in an embodiment of the present application;

[0023] Figure 4 This is a flow chart of a scenario implementation of the display screen control method provided in an embodiment of the present application;

[0024] Figure 5 is a structural schematic diagram of a display screen control device provided in an embodiment of the present application;

[0025] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0026] Figure 7 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0028] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0029] The display screen control method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0030] Figure 1 : is a flow chart of a display screen control method provided in an embodiment of the present application. The display screen control method may include:

[0031] Step 101: Acquire a first bandgap width and a first infrared value of an infrared sensor of an electronic device.

[0032] In step 101, the electronic device may be provided with an infrared sensor, wherein the infrared sensor may include a circuit of a plurality of photodiodes (PD) cascaded in series, and outputs an infrared value after being detected by an analog-to-digital converter (ADC) after passing through a primary comparator.

[0033] like Figure 2As shown, photodiodes D1 and D2 detect infrared emission, receive infrared light, generate photogenerated carriers, and conduct current to generate photogenerated current Ipd. Current Ipd is converted into a voltage signal Vout, and the converted voltage signal Vout is input to the comparator and compared with a set reference voltage Vref. When Vout exceeds Vref, the comparator outputs a high level, otherwise a low level. In other words, the comparator generates a digital signal, that is, a high and low level. The digital signal is sent to the ADC, and the ADC outputs the infrared value.

[0034] It is understandable that the bandgap width of infrared sensors under sunlight is different, so the performance of infrared background noise increment under sunlight will be different. The larger the bandgap width of the infrared sensor (hereinafter referred to as BGIR), the more carriers that transition from the valence band to the conduction band, and the larger the infrared value. However, since the number of carriers that transition from the valence band to the conduction band will be affected by the saturation region, even if the BGIR continues to increase, the trend of change in the infrared value will slowly slow down. Based on this, the relationship between BGIR and infrared value under sunlight is similar to a parabola. The law of this parabola can be fitted with a formula. Based on the fitted formula, the influence of sunlight can be eliminated and the infrared value can be corrected to the actual infrared emission and reception situation.

[0035] In order to correct the infrared value, the first bandgap width and the first infrared value of the infrared sensor of the electronic device can be obtained, wherein the first bandgap width can be the bandgap width of the infrared sensor in the current environment, and the first infrared value can be the value output by the ADC in the infrared sensor in the current environment.

[0036] Step 102: Determine a target correction equation corresponding to the first band gap width according to the corresponding relationship between the band gap width and the correction equation.

[0037] In step 102, the corresponding relationship between the band gap width and the correction equation can be obtained by fitting the relationship between the band gap width and the growth and change of infrared values ​​of different types of infrared sensors under sunlight. Figure 3 As shown, Figure 3 The horizontal axis is BGIR, and the vertical axis is the infrared value. BGIR will increase with the infrared value because of the large number of photons that transition due to sunlight. When the sunlight intensity continues to increase, the number of photons that transition will be saturated, so BGIR continues to increase, but the infrared value no longer increases. Therefore, the growth relationship between the two will show a parabolic trend.

[0038] right Figure 3 By fitting the parabola in the equation, we can get the corresponding relationship between the band gap width and the correction equation. For example, the corresponding relationship between the band gap width and the correction equation can be shown in Table 1:

[0039] Table 1

[0040] BGIR Correction equation BGIR<2 PS1=PS0 2≤BGIR<50 PS1=0.0107*ln(PS0)+0.9917 BGIR≥50 PS1=0.000196*PS0+1.0238

[0041] Among them, PS1 may be the infrared value after correction, and PS0 may be the infrared value before correction (ie, the first infrared value).

[0042] The target correction equation corresponding to the first bandgap width can be determined according to the correspondence between the bandgap width and the correction equation. For example, if the first bandgap width is 1, it can be considered that the electronic device is in an indoor environment, and the infrared value is not affected by sunlight at this time, so the target correction equation corresponding to the first bandgap width can be "PS1=PS0". If the first bandgap width is 20, it can be considered that the electronic device is in an outdoor environment, and the infrared value will be affected by sunlight at this time, and the target correction equation corresponding to the first bandgap width can be "PS1=0.0107*ln(PS0)+0.9917". If the first bandgap width is 60, it can be considered that the electronic device is in an outdoor environment, and the infrared value will be affected by sunlight at this time, and the target correction equation corresponding to the first bandgap width can be "PS1=0.000196*PS0+1.0238".

[0043] Step 103: Based on the target correction equation, the first infrared value is corrected to obtain a second infrared value.

[0044] In step 103, the first infrared value may be substituted into the target correction equation as PS0, and the obtained PS1 is the corrected second infrared value.

[0045] Step 104: Control the display screen of the electronic device to turn on or off according to the second infrared value.

[0046] In step 104, the corrected second infrared value eliminates the influence of sunlight on the infrared value to a certain extent, so the second infrared value can more accurately reflect the actual infrared emission and reception of the infrared sensor. Based on the accurate second infrared value, the screen on or off state of the electronic device display can be controlled to ensure that the screen is off when the human body is close to the electronic device, effectively preventing accidental touches, and the screen is on when the human body is away from the electronic device, so that the user can immediately view the display interface of the electronic device.

[0047] In an embodiment of the present application, a display screen control method can obtain a first band gap width and a first infrared value of an infrared sensor of an electronic device; determine a target correction equation corresponding to the first band gap width based on the corresponding relationship between the band gap width and the correction equation; based on the target correction equation, correct the first infrared value to obtain a second infrared value; and according to the second infrared value, control the display screen of the electronic device to turn on or off.

[0048] In this way, the influence of sunlight on the band gap width of the infrared sensor can be considered, and a target correction equation for correcting the current infrared value can be determined based on the band gap width. The infrared value can be corrected based on the target correction equation to eliminate the influence of sunlight and obtain a more accurate corrected infrared value, so that the display screen can be accurately controlled to be turned on or off based on the corrected infrared value.

[0049] In some embodiments, controlling a display screen of an electronic device to turn on or off according to the second infrared value includes:

[0050] Determine the infrared difference according to the second infrared value at the current moment and the second infrared value at the previous moment;

[0051] According to the infrared difference and threshold value, the display screen of the electronic device is controlled to turn on or off.

[0052] In this embodiment, when the electronic device is close to the human body, the infrared value will increase, and when it is far away from the human body, the infrared value will decrease. Based on this, the infrared difference at the current moment can be calculated according to the second infrared value PS1 at the current moment and the second infrared value PS1' at the previous moment, and the infrared difference △PS=PS1-PS1'.

[0053] Based on actual needs, a threshold value for controlling the display screen to turn on or off can be preset. The threshold value can be a value, such as an infrared critical value when the display screen switches between the on state and the off state. At this time, if the infrared difference is greater than or equal to the threshold value, the display screen can be controlled to turn off, and if it is less than the threshold value, the display screen can be controlled to turn on.

[0054] The threshold value may also be two values, for example, the threshold value may include a first threshold value and a second threshold value, wherein the first threshold value may be a proximity threshold value indicating that the electronic device is close to the human body, and if the infrared difference value is greater than or equal to the first threshold value, the display screen may be controlled to turn off. The second threshold value may be a distance threshold value indicating that the electronic device is far away from the human body, and if the infrared difference value is less than or equal to the second threshold value, the display screen may be controlled to turn on.

[0055] In this way, the infrared difference between the second infrared value at the current moment and the second infrared value at the previous moment can be compared with the threshold value to control the display screen to turn on or off. In this way, the display screen can be turned off when the electronic device is close to the human body to effectively prevent accidental touches. The display screen can be turned on when the electronic device is far away from the human body so that the user can immediately view the electronic device display interface.

[0056] In some embodiments, before controlling the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value, the method further includes:

[0057] Determining a target threshold correction parameter corresponding to the first band gap width according to a corresponding relationship between the band gap width and the threshold correction parameter;

[0058] The initial threshold value is corrected according to the target threshold correction parameter to obtain the threshold value.

[0059] In this embodiment, in order to further reduce the influence of the error in the infrared difference caused by sunlight, the preset initial threshold value may also be corrected.

[0060] For example, the corresponding relationship between the bandgap width and the threshold correction parameter can be established in advance by comparing the actual demand with the situation of controlling the screen on or off based on the infrared value after different bandgap width correction in combination with the application scenario. For example, the corresponding relationship between the bandgap width and the threshold correction parameter can be shown in Table 2:

[0061] Table 2

[0062] BGIR Threshold correction parameters BGIR<2 0 2≤BGIR<50 50 BGIR≥50 80

[0063] The target threshold correction parameter corresponding to the first bandgap width can be determined according to the corresponding relationship between the bandgap width and the threshold correction parameter. For example, if the first bandgap width is 1, it can be considered that the electronic device is in an indoor environment, and the infrared value is not affected by sunlight at this time, so the target threshold correction parameter corresponding to the first bandgap width can be "0". If the first bandgap width is 20, it can be considered that the electronic device is in an outdoor environment, and the infrared value will be affected by sunlight at this time, and the target threshold correction parameter corresponding to the first bandgap width can be "50". If the first bandgap width is 60, it can be considered that the electronic device is in an outdoor environment, and the infrared value will be affected by sunlight at this time, and the target threshold correction parameter corresponding to the first bandgap width can be "80".

[0064] The initial threshold value may be corrected according to the target threshold correction parameter to obtain a threshold value. For example, threshold value = initial threshold value + target threshold correction parameter.

[0065] In this way, the appropriate threshold correction parameters can be determined according to the band gap width to correct the initial threshold value to obtain a more accurate threshold value, further reducing the error of the infrared difference caused by sunlight, and laying the foundation for accurately controlling the display screen to light up or turn off.

[0066] In some embodiments, the electronic device includes a thermistor, and before controlling the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value, the method further includes:

[0067] Determine a target temperature difference based on the acquired temperature value of the thermistor at the current moment and the temperature value at the previous moment;

[0068] When the target temperature difference is greater than or equal to the preset temperature threshold, a target temperature correction parameter corresponding to the target temperature difference is determined according to a corresponding relationship between the temperature difference and the temperature correction parameter;

[0069] The initial threshold value is corrected according to the target temperature correction parameter to obtain the threshold value.

[0070] It is understandable that due to sunlight exposure, in addition to the infrared component of the sunlight itself, the blackbody effect of sunlight will also cause the temperature of the mobile phone to rise. The carrier movement speed will be affected by temperature. The infrared sensor, as a diode device, will also be affected by temperature, resulting in an increase in infrared values.

[0071] Based on this, in order to reduce the influence of the temperature increase of the electronic equipment caused by sunlight on the error caused by the infrared difference, the preset initial threshold value can also be corrected by temperature compensation.

[0072] In this embodiment, a corresponding relationship between the temperature difference between the current moment and the previous moment and the temperature correction parameter can be established based on the measured data. For example, it can be considered that when the temperature difference is greater than or equal to the preset temperature threshold, for example, when the temperature difference is greater than or equal to 5°C, the temperature increase will cause a sudden increase in the infrared value, resulting in a larger infrared difference. At this time, a corresponding relationship between the temperature difference and the temperature correction parameter can be established based on different temperature differences exceeding the preset temperature threshold and their sudden increase in infrared values.

[0073] The temperature can be obtained from the thermistor in the electronic device. The target temperature difference can be calculated based on the obtained temperature value at the current moment and the temperature value at the previous moment. The target temperature difference = the temperature value at the current moment - the temperature value at the previous moment.

[0074] If the target temperature difference is greater than or equal to the preset temperature threshold, as mentioned above, it can be considered that the infrared difference will become larger due to the increase in temperature. Therefore, the target temperature correction parameter corresponding to the target temperature difference can be determined based on the corresponding relationship between the temperature difference and the temperature correction parameter.

[0075] The initial threshold value may be corrected according to the target temperature correction parameter to obtain a threshold value. For example, the threshold value = the initial threshold value + the target temperature correction parameter.

[0076] In this way, when the temperature difference between two adjacent moments exceeds the preset temperature threshold, the initial threshold value can be corrected by determining a suitable temperature correction parameter based on the temperature difference to obtain a more accurate threshold value at the moment, thereby reducing the risk of unreasonable threshold values ​​caused by temperature rise due to sunlight exposure, thereby increasing infrared differences, and laying the foundation for accurately controlling the display screen to turn on or off.

[0077] In some examples, the initial threshold value can be corrected in multiple dimensions by combining the infrared component of the sunlight itself and the effect of the sunlight on the infrared difference caused by the increase in temperature of the electronic equipment, thereby obtaining a more reasonable and accurate threshold value.

[0078] In other words, the initial threshold value can be corrected according to the target threshold correction parameter and the target temperature correction parameter to obtain the threshold value. For example, the threshold value = the initial threshold value + the target temperature correction parameter + the target threshold correction parameter.

[0079] It can be understood that when an electronic device is in a call state, there are two scenarios for controlling the display screen to turn on or off, namely, a close scenario and a far scenario. The specific control logic for the close scenario and the far scenario will be described in detail in the following embodiments.

[0080] Based on this, in the call state, the threshold value may include a first threshold value (i.e., a close threshold value) and a second threshold value (i.e., a far threshold value). Therefore, modifying the threshold value may include modifying the initial close threshold value to obtain a modified close threshold value, and modifying the initial far threshold value to obtain a modified far threshold value, so that the display screen may be controlled to turn on or off based on the modified close threshold value and far threshold value.

[0081] For an electronic device that is in screen-off state, controlling the display screen to turn on or off only exists in the approach scenario, and the specific control logic in the approach scenario will be described in detail in the following embodiments.

[0082] Based on this, in the off-screen state, the threshold value may include a first threshold value (i.e., a proximity threshold value). Therefore, modifying the threshold value may include modifying the initial proximity threshold value to obtain a modified proximity threshold value, so that the display screen may be controlled to be on or off based on the modified proximity threshold value.

[0083] In some embodiments, when the electronic device is in a call state, the threshold value includes a first threshold value and a second threshold value;

[0084] According to the infrared difference and threshold value, the display screen of the electronic device is controlled to turn on or off, including:

[0085] When the infrared difference is greater than or equal to the first threshold value, the display screen is controlled to turn off;

[0086] When the infrared difference is less than or equal to the second threshold value, the control display screen lights up and displays the call interface.

[0087] In this embodiment, for a scenario in which the electronic device is in a call state, the threshold value may include a first threshold value (ie, a close threshold value) and a second threshold value (ie, a far threshold value).

[0088] When the display screen is showing the call interface, it can be determined whether to control the display screen to turn off based on the infrared difference value and the first threshold value. For example, if the infrared difference value is greater than or equal to the first threshold value, it can be considered that the electronic device is close to the human body, for example, the user places the electronic device next to the ear to make a call. In this scenario, in order to avoid accidental touches on the display screen causing a poor user experience of the electronic device, the display screen can be controlled to turn off.

[0089] It is also possible to determine whether to control the display screen to light up when the display screen turns off and does not display the call interface due to factors such as exceeding the screen display time, based on the infrared difference and the second threshold value. For example, if the infrared difference is less than or equal to the second threshold value, it can be considered that the electronic device is far away from the human body. In this scenario, it can be determined that the user may need to perform related operations on the current call of the electronic device, and the display screen can be controlled to light up and display the call interface.

[0090] In this way, when the electronic device is in a call state, the display screen of the electronic device can be controlled to turn on or off based on the infrared difference, the proximity threshold and the distance threshold, so as to prevent the user from accidentally touching the display screen when the electronic device is close to the human body, and at the same time, the call interface can be displayed on the screen when the electronic device is far away from the human body, so as to meet the user's operation needs for the call interface in a timely manner.

[0091] In some embodiments, when the display screen is in an off-screen state, the threshold value includes a first threshold value;

[0092] According to the infrared difference and threshold value, the display screen of the electronic device is controlled to turn on or off, including:

[0093] When the infrared difference is greater than the first threshold value, the display screen is controlled to remain in an off state;

[0094] When the infrared difference is less than or equal to the first threshold value, the control display screen lights up and displays the unlocking interface.

[0095] For a scenario where the electronic device is in a screen-off state, the threshold value may include only the first threshold value (ie, close to the threshold).

[0096] When the display screen is off, it can be determined whether to control the display screen to remain off or to light up to display the unlocking interface based on the infrared difference and the first threshold value. For example, if the infrared difference is greater than or equal to the first threshold value, it can be considered that the electronic device is close to the human body. In this scenario, in order to avoid accidental touching of the display screen and causing a poor user experience of the electronic device, the display screen can be controlled to remain off. If the infrared difference is less than or equal to the first threshold value, it can be considered that the electronic device is not close to the human body. In this scenario, it can be determined that the user may need to unlock and use the electronic device, and the display screen can be controlled to light up and display the unlocking interface.

[0097] In this way, when the electronic device is in the off state, the display screen of the electronic device can be controlled to light up or remain off based on the infrared difference and the proximity threshold, so as to prevent the user from accidentally touching the display screen when the electronic device is close to the human body, and at the same time, the screen can be turned on to display the unlocking interface when the electronic device is far away from the human body, so as to meet the user's needs for the use of the electronic device in a timely manner.

[0098] In order to facilitate understanding of the display screen control method provided by the above embodiment, the above display screen control method is described below using a specific scenario embodiment. Figure 4 A schematic flow chart of a scenario implementation of a display screen control method provided in an embodiment of the present application.

[0099] The preset temperature threshold of this scenario embodiment is 5°C. The first threshold value is close to the threshold, and the second threshold value is far from the threshold. The corresponding relationship between the band gap width and the correction equation and the corresponding relationship between the band gap width and the threshold correction parameter can be: when the band gap width is less than 2, the correction equation is PS1=PS0, and the threshold correction parameter is 0; when the band gap width is greater than or equal to 2 and less than 50, the correction equation is PS1=0.0107*ln(PS0)+0.9917, and the threshold correction parameter is 50; when the band gap width is greater than or equal to 50, the correction equation is PS1=0.000196*PS0+1.0238, and the threshold correction parameter is 80. Among them, PS1 is the infrared value after correction, and PS0 is the infrared value before correction.

[0100] This scenario embodiment may specifically include the following steps:

[0101] Step 401, determining the environment in which the electronic device is located;

[0102] Step 402, if BGIR<2, it can be considered that the electronic device is in a non-sunlight environment;

[0103] Step 403: The target correction equation is PS1 = PS0. At this time, there is no sunlight influence and no need to correct the initial threshold value.

[0104] Step 404, if 2≤BGIR<50, it can be considered that the electronic device is in a sunlight environment;

[0105] Step 405, the target correction equation is PS1=0.0107*ln(PS0)+0.9917;

[0106] Step 406, if the temperature difference is ≥5°C, determine the target temperature correction parameter KT corresponding to the temperature difference;

[0107] Step 407, if the electronic device is in a call state, the approach threshold is corrected to the initial approach threshold + 50 + KT, and the distance threshold is corrected to the initial distance threshold + 50 + KT;

[0108] Step 408: If the electronic device is in the screen-off state, the proximity threshold is corrected to the initial proximity threshold + 50 + KT.

[0109] Step 409, if BGIR≥50, it can be considered that the electronic device is in a sunlight environment;

[0110] Step 410, the target correction equation is PS1=0.000196*PS0+1.0238;

[0111] Step 411, if the temperature difference is ≥5°C, determine the target temperature correction parameter KT corresponding to the temperature difference;

[0112] Step 412, if the electronic device is in a call state, the approach threshold is corrected to the initial approach threshold + 80 + KT, and the distance threshold is corrected to the initial distance threshold + 80 + KT;

[0113] Step 413: If the electronic device is in a screen-off state, the proximity threshold is corrected to the initial proximity threshold + 80 + KT.

[0114] The display screen control method provided in the embodiment of the present application can be executed by a display screen control device. In the embodiment of the present application, the display screen control device provided in the embodiment of the present application is described by taking the method for the display screen control device to execute the display screen control as an example.

[0115] like Figure 5 As shown, the display screen control device 500 may include:

[0116] A first acquisition module 501 is used to acquire a first band gap width and a first infrared value of an infrared sensor of an electronic device;

[0117] A first determination module 502, configured to determine a target correction equation corresponding to a first band gap width according to a correspondence between the band gap width and the correction equation;

[0118] A first correction module 503, used to correct the first infrared value based on a target correction equation to obtain a second infrared value;

[0119] The control module 504 is used to control the display screen of the electronic device to turn on or off according to the second infrared value.

[0120] In this way, the influence of sunlight on the band gap width of the infrared sensor can be considered, and a target correction equation for correcting the current infrared value can be determined based on the band gap width. The infrared value can be corrected based on the target correction equation to eliminate the influence of sunlight and obtain a more accurate corrected infrared value, so that the display screen can be accurately controlled to be turned on or off based on the corrected infrared value.

[0121] In some embodiments, the control module 504 may include:

[0122] A determination submodule, used to determine an infrared difference according to the second infrared value at the current moment and the second infrared value at the previous moment;

[0123] The control submodule is used to control the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value.

[0124] In this way, the infrared difference between the second infrared value at the current moment and the second infrared value at the previous moment can be compared with the threshold value to control the display screen to turn on or off. In this way, the display screen can be turned off when the electronic device is close to the human body to effectively prevent accidental touches. The display screen can be turned on when the electronic device is far away from the human body so that the user can immediately view the electronic device display interface.

[0125] In some embodiments, the display screen control device 500 may further include:

[0126] A second determination module is used to determine a target threshold correction parameter corresponding to the first band gap width according to a correspondence between the band gap width and the threshold correction parameter before controlling the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value;

[0127] The second correction module is used to correct the initial threshold value according to the target threshold correction parameter to obtain the threshold value.

[0128] In this way, the appropriate threshold correction parameters can be determined according to the band gap width to correct the initial threshold value to obtain a more accurate threshold value, further reducing the error of the infrared difference caused by sunlight, and laying the foundation for accurately controlling the display screen to light up or turn off.

[0129] In some embodiments, the display screen control device 500 may further include:

[0130] A third determination module is used to determine a target temperature difference based on the current temperature value of the thermistor and the temperature value of the previous temperature value obtained before the electronic device includes a thermistor and controls the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value;

[0131] a fourth determination module, configured to determine a target temperature correction parameter corresponding to the target temperature difference according to a correspondence between the temperature difference and the temperature correction parameter when the target temperature difference is greater than or equal to a preset temperature threshold;

[0132] The third correction module is used to correct the initial threshold value according to the target temperature correction parameter to obtain the threshold value.

[0133] In this way, when the temperature difference between two adjacent moments exceeds the preset temperature threshold, the initial threshold value can be corrected by determining a suitable temperature correction parameter based on the temperature difference to obtain a more accurate threshold value at the moment, thereby reducing the risk of unreasonable threshold values ​​caused by temperature rise due to sunlight exposure, thereby increasing infrared differences, and laying the foundation for accurately controlling the display screen to turn on or off.

[0134] In some embodiments, when the electronic device is in a call state, the threshold value includes a first threshold value and a second threshold value;

[0135] The control submodule may include:

[0136] A first control unit, used for controlling the display screen to turn off when the infrared difference is greater than or equal to a first threshold value;

[0137] The second control unit is used to control the display screen to light up and display the call interface when the infrared difference is less than or equal to the second threshold value.

[0138] In this way, when the electronic device is in a call state, the display screen of the electronic device can be controlled to turn on or off based on the infrared difference, the proximity threshold and the distance threshold, so as to prevent the user from accidentally touching the display screen when the electronic device is close to the human body, and at the same time, the call interface can be displayed on the screen when the electronic device is far away from the human body, so as to meet the user's operation needs for the call interface in a timely manner.

[0139] In some embodiments, when the display screen is in an off-screen state, the threshold value includes a first threshold value;

[0140] The control submodule may include:

[0141] A third control unit is used to control the display screen to remain in an off state when the infrared difference value is greater than the first threshold value;

[0142] The fourth control unit is used to control the display screen to light up and display the unlocking interface when the infrared difference is less than or equal to the first threshold value.

[0143] In this way, when the electronic device is in the off state, the display screen of the electronic device can be controlled to light up or remain off based on the infrared difference and the proximity threshold, so as to prevent the user from accidentally touching the display screen when the electronic device is close to the human body, and at the same time, the screen can be turned on to display the unlocking interface when the electronic device is far away from the human body, so as to meet the user's needs for the use of the electronic device in a timely manner.

[0144] The display screen control device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0145] The display screen control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0146] The display screen control device provided in the embodiment of the present application can achieve Figures 1 to 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0147] Alternatively, if Figure 6 As shown, an embodiment of the present application further provides an electronic device 600, including a processor 601 and a memory 602, wherein the memory 602 stores a program or instruction that can be executed on the processor 601, and when the program or instruction is executed by the processor 601, the various steps of the above-mentioned display screen control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0148] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0149] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0150] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.

[0151] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0152] The processor 710 may be used for:

[0153] Acquire a first band gap width and a first infrared value of an infrared sensor of the electronic device;

[0154] Determining a target correction equation corresponding to the first band gap width according to the corresponding relationship between the band gap width and the correction equation;

[0155] Based on the target correction equation, the first infrared value is corrected to obtain a second infrared value;

[0156] According to the second infrared value, the display screen of the electronic device is controlled to turn on or off.

[0157] In this way, the influence of sunlight on the band gap width of the infrared sensor can be considered, and a target correction equation for correcting the current infrared value can be determined based on the band gap width. The infrared value can be corrected based on the target correction equation to eliminate the influence of sunlight and obtain a more accurate corrected infrared value, so that the display screen can be accurately controlled to be turned on or off based on the corrected infrared value.

[0158] In some embodiments, the processor 710 may also be configured to:

[0159] Determine the infrared difference according to the second infrared value at the current moment and the second infrared value at the previous moment;

[0160] According to the infrared difference and threshold value, the display screen of the electronic device is controlled to turn on or off.

[0161] In this way, the infrared difference between the second infrared value at the current moment and the second infrared value at the previous moment can be compared with the threshold value to control the display screen to turn on or off. In this way, the display screen can be turned off when the electronic device is close to the human body to effectively prevent accidental touches. The display screen can be turned on when the electronic device is far away from the human body so that the user can immediately view the electronic device display interface.

[0162] In some embodiments, the processor 710 may also be configured to:

[0163] Before controlling the display screen of the electronic device to light up or turn off according to the infrared difference and the threshold value, determining a target threshold correction parameter corresponding to the first band gap width according to the corresponding relationship between the band gap width and the threshold correction parameter;

[0164] The initial threshold value is corrected according to the target threshold correction parameter to obtain the threshold value.

[0165] In this way, the appropriate threshold correction parameters can be determined according to the band gap width to correct the initial threshold value to obtain a more accurate threshold value, further reducing the error of the infrared difference caused by sunlight, and laying the foundation for accurately controlling the display screen to light up or turn off.

[0166] In some embodiments, the processor 710 may also be configured to:

[0167] The electronic device includes a thermistor, and before controlling the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value, a target temperature difference is determined based on the temperature value of the thermistor at the current moment and the temperature value at the previous moment obtained;

[0168] When the target temperature difference is greater than or equal to the preset temperature threshold, a target temperature correction parameter corresponding to the target temperature difference is determined according to a corresponding relationship between the temperature difference and the temperature correction parameter;

[0169] The initial threshold value is corrected according to the target temperature correction parameter to obtain the threshold value.

[0170] In this way, when the temperature difference between two adjacent moments exceeds the preset temperature threshold, the initial threshold value can be corrected by determining a suitable temperature correction parameter based on the temperature difference to obtain a more accurate threshold value at the moment, thereby reducing the risk of unreasonable threshold values ​​caused by temperature rise due to sunlight exposure, thereby increasing infrared differences, and laying the foundation for accurately controlling the display screen to turn on or off.

[0171] In some embodiments, when the electronic device is in a call state, the threshold value includes a first threshold value and a second threshold value;

[0172] The processor 710 may also be used to:

[0173] When the infrared difference is greater than or equal to the first threshold value, the display screen is controlled to turn off;

[0174] When the infrared difference is less than or equal to the second threshold value, the control display screen lights up and displays the call interface.

[0175] In this way, when the electronic device is in a call state, the display screen of the electronic device can be controlled to turn on or off based on the infrared difference, the proximity threshold and the distance threshold, so as to prevent the user from accidentally touching the display screen when the electronic device is close to the human body, and at the same time, the call interface can be displayed on the screen when the electronic device is far away from the human body, so as to meet the user's operation needs for the call interface in a timely manner.

[0176] In some embodiments, when the display screen is in an off-screen state, the threshold value includes a first threshold value;

[0177] The processor 710 may also be used to:

[0178] When the infrared difference is greater than the first threshold value, the display screen is controlled to remain in an off state;

[0179] When the infrared difference is less than or equal to the first threshold value, the control display screen lights up and displays the unlocking interface.

[0180] In this way, when the electronic device is in the off state, the display screen of the electronic device can be controlled to light up or remain off based on the infrared difference and the proximity threshold, so as to prevent the user from accidentally touching the display screen when the electronic device is close to the human body, and at the same time, the screen can be turned on to display the unlocking interface when the electronic device is far away from the human body, so as to meet the user's needs for the use of the electronic device in a timely manner.

[0181] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0182] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory 709 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0183] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.

[0184] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned display screen control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0185] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0186] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned display screen control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0187] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0188] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned display screen control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0189] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0190] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0191] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A display screen control method, characterized in that: The method comprises: Acquire a first band gap width and a first infrared value of an infrared sensor of the electronic device; Determining a target correction equation corresponding to the first band gap width according to a corresponding relationship between the band gap width and the correction equation; Based on the target correction equation, the first infrared value is corrected to obtain a second infrared value; According to the second infrared value, the display screen of the electronic device is controlled to turn on or off.

2. The method according to claim 1, characterized in that The controlling the display screen of the electronic device to turn on or off according to the second infrared value includes: Determine the infrared difference according to the second infrared value at the current moment and the second infrared value at the previous moment; According to the infrared difference and the threshold value, the display screen of the electronic device is controlled to turn on or off.

3. The method according to claim 2, characterized in that Before controlling the display screen of the electronic device to light up or turn off according to the infrared difference and the threshold value, the method further includes: Determining a target threshold correction parameter corresponding to the first bandgap width according to a corresponding relationship between the bandgap width and the threshold correction parameter; The initial threshold value is corrected according to the target threshold correction parameter to obtain the threshold value.

4. The method according to claim 2, characterized in that: The electronic device includes a thermistor, and before controlling the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value, the method further includes: Determine a target temperature difference based on the acquired temperature value of the thermistor at the current moment and the temperature value at the previous moment; When the target temperature difference is greater than or equal to a preset temperature threshold, determining a target temperature correction parameter corresponding to the target temperature difference according to a corresponding relationship between the temperature difference and the temperature correction parameter; The initial threshold value is corrected according to the target temperature correction parameter to obtain the threshold value.

5. The method according to any one of claims 2 to 4, characterized in that When the electronic device is in a call state, the threshold value includes a first threshold value and a second threshold value; The step of controlling the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value includes: When the infrared difference is greater than or equal to the first threshold value, controlling the display screen to turn off; When the infrared difference is less than or equal to the second threshold value, the display screen is controlled to light up and a call interface is displayed.

6. The method according to any one of claims 2 to 4, characterized in that When the display screen is in an off-screen state, the threshold value includes a first threshold value; The step of controlling the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value includes: When the infrared difference is greater than the first threshold value, controlling the display screen to maintain a screen-off state; When the infrared difference is less than or equal to the first threshold value, the display screen is controlled to light up and an unlocking interface is displayed.

7. A display screen control device, characterized in that: The device comprises: A first acquisition module, used to acquire a first band gap width and a first infrared value of an infrared sensor of an electronic device; A first determination module, configured to determine a target correction equation corresponding to the first band gap width according to a corresponding relationship between the band gap width and the correction equation; A first correction module, used for correcting the first infrared value based on the target correction equation to obtain a second infrared value; A control module is used to control the display screen of the electronic device to turn on or off according to the second infrared value.

8. The device according to claim 7, characterized in that The control module comprises: A determination submodule, used to determine an infrared difference according to the second infrared value at the current moment and the second infrared value at the previous moment; The control submodule is used to control the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value.

9. The device according to claim 8, characterized in that The device also includes: A second determination module is used to determine a target threshold correction parameter corresponding to the first bandgap width according to a correspondence between the bandgap width and the threshold correction parameter before controlling the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value; The second correction module is used to correct the initial threshold value according to the target threshold correction parameter to obtain the threshold value.

10. The device according to claim 8, characterized in that The device also includes: A third determination module is used to determine a target temperature difference based on the current temperature value of the thermistor and the temperature value of the previous temperature value obtained before controlling the display screen of the electronic device to turn on or off according to the infrared difference and the threshold value when the electronic device includes the thermistor; a fourth determination module, configured to determine a target temperature correction parameter corresponding to the target temperature difference according to a correspondence between the temperature difference and the temperature correction parameter when the target temperature difference is greater than or equal to a preset temperature threshold; The third correction module is used to correct the initial threshold value according to the target temperature correction parameter to obtain the threshold value.

11. The device according to any one of claims 8 to 10, characterized in that When the electronic device is in a call state, the threshold value includes a first threshold value and a second threshold value; The control submodule comprises: A first control unit, configured to control the display screen to turn off when the infrared difference is greater than or equal to the first threshold value; The second control unit is used to control the display screen to light up and display a call interface when the infrared difference is less than or equal to the second threshold value.

12. The device according to any one of claims 8 to 10, characterized in that When the display screen is in an off-screen state, the threshold value includes a first threshold value; The control submodule comprises: A third control unit, configured to control the display screen to maintain a screen-off state when the infrared difference value is greater than the first threshold value; The fourth control unit is used to control the display screen to light up and display an unlocking interface when the infrared difference is less than or equal to the first threshold value.

13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.

14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.