Ground noise determination method, screen control method and corresponding device

By collecting the environmental noise and the energy of the proximity sensor signal before the proximity sensor receives the target signal, the noise floor energy is calculated, and the impact of noise floor on the detection accuracy of the proximity sensor and the inaccurate noise floor measurement is solved, and more accurate touch screen display control is achieved.

CN119916957APending Publication Date: 2025-05-02BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311436399.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

In the prior art, the noise floor affects the detection accuracy of the proximity sensor, resulting in inaccurate display control of the touch screen, and the noise floor measurement method does not consider the impact of the electronic device structure on the noise floor, resulting in inaccurate noise floor measured.

Method used

By determining the ambient noise energy of the electronic device in the environment and the energy of the signal collected by the proximity sensor from the opening time to the target time, the noise floor energy of the proximity sensor is calculated. The energy collected by the method before the proximity sensor receives the first target signal includes only the noise floor energy and the ambient noise energy, and the noise floor energy is calculated using known ambient noise energy.

Benefits of technology

The detection accuracy of the proximity sensor is improved, and the inaccurate noise floor measurement problems caused by changes in the electronic device structure is avoided, ensuring the accuracy of touch screen display control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119916957A_ABST
    Figure CN119916957A_ABST
Patent Text Reader

Abstract

The invention relates to a ground noise determination method, a screen control method and a corresponding device, and the method comprises the steps: determining the first environment noise energy of electronic equipment in the environment; acquiring first energy of a signal acquired by a proximity sensor in the electronic equipment at any moment from the starting moment to the target moment; and determining floor noise energy according to the first energy and the first environmental noise energy. According to the technical scheme, the environment noise energy and the first energy collected by the proximity sensor can be obtained before the receiving end receives the energy of the first target signal, and the ground noise energy is determined according to the first energy and the environment noise energy. And on the other hand, the ground noise energy can be determined at any moment from the starting moment to the target moment of the proximity sensor, so that the ground noise can be measured again when the proximity sensor is started each time, and the problem that the measured ground noise is inaccurate due to the structural change of the electronic equipment is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a background noise determination method, a screen control method and corresponding devices. Background Art

[0002] In the related art, a proximity sensor (P-Sensor) inside an electronic device can be used to detect whether there is an object near the electronic device, thereby controlling the touch screen display of the electronic device. However, due to the presence of background noise, the detection accuracy of the proximity sensor will be affected, thereby affecting the display control of the touch screen.

[0003] In order to overcome the influence of background noise on the proximity sensor, the detection result of the proximity sensor is calibrated by measuring the background noise in the related art to improve the detection accuracy of the proximity sensor. However, the background noise measurement method in the related art does not consider the influence of the electronic device structure on the background noise, resulting in inaccurate background noise measurement. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a background noise determination method, a screen control method and corresponding devices.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for determining a background noise is provided, the method comprising:

[0006] Determine a first environmental noise energy of the electronic device in an environment in which the electronic device is located;

[0007] Acquire the first energy of a signal collected by the proximity sensor in the electronic device at any time between the start-up time and the target time, wherein the target time is the time when the proximity sensor receives the first target signal, and the first target signal is the first pulse signal emitted by the proximity sensor, which passes through the touch screen of the electronic device to reach the object and is reflected by the object back to the proximity sensor;

[0008] A background noise energy of the proximity sensor is determined according to the first energy and the first environmental noise energy.

[0009] Optionally, the target time is determined by:

[0010] determining the shortest transmission distance of the first target signal;

[0011] determining a transmission time of the first target signal according to the shortest transmission distance and a transmission speed of the first target signal;

[0012] The target time is determined according to the start time and the transmission time.

[0013] Optionally, determining the shortest transmission distance of the first target signal includes:

[0014] Determine the distance between the proximity sensor and the touch screen, the thickness of the touch screen, and the incident angle and refraction angle between the first target signal and the touch screen;

[0015] Determine a first transmission distance according to the distance and the incident angle, where the first transmission distance is used to characterize a transmission distance of the first target signal in the air;

[0016] determining a second transmission distance according to the thickness and the refraction angle, where the second transmission distance is used to characterize a transmission distance of the first target signal in the touch screen;

[0017] The shortest transmission distance of the first target signal is determined according to the first transmission distance and the second transmission distance.

[0018] Optionally, determining the shortest transmission distance of the first target signal according to the first transmission distance and the second transmission distance includes:

[0019] A transmission distance that minimizes the sum of the first transmission distance and the second transmission distance is determined as the shortest transmission distance of the first target signal.

[0020] Optionally, determining the first transmission distance according to the distance and the incident angle includes:

[0021] Determine a first ratio of the distance to the cosine value of the incident angle, and determine twice the first ratio as a first transmission distance;

[0022] The determining of the second transmission distance according to the thickness and the refraction angle comprises:

[0023] A second ratio of the thickness to the cosine value of the refraction angle is determined, and twice the second ratio is determined as a second transmission distance.

[0024] Optionally, the acquiring the first energy of a signal collected by a proximity sensor in the electronic device at any time between a start-up time and a target time includes:

[0025] Determine the energy integral of the signal collected by the proximity sensor in the electronic device from the start time to the target time;

[0026] The first energy is determined according to the energy integral and the collection time, wherein the collection time is determined according to the start time and the target time.

[0027] According to a second aspect of an embodiment of the present disclosure, a screen control method is provided, the method comprising:

[0028] Acquire a second environmental noise energy of the electronic device in the environment in which it is located, the second energy collected by a proximity sensor in the electronic device, and a background noise energy of the proximity sensor, wherein the background noise energy of the proximity sensor is determined by the background noise determination method described in any one of the first aspects;

[0029] The display of the touch screen is controlled according to the second energy, the second environmental noise energy, and the background noise energy of the proximity sensor.

[0030] Optionally, controlling the display of the touch screen according to the second energy, the second ambient noise energy, and the background noise energy of the proximity sensor includes:

[0031] determining the true energy of a second target signal according to the second energy, the second ambient noise energy, and the background noise energy of the proximity sensor, wherein the second target signal is a signal of a pulse signal emitted by the proximity sensor that reaches an object through the touch screen of the electronic device and is reflected by the object back to the proximity sensor;

[0032] The display of the touch screen is controlled according to the real energy and the preset threshold energy.

[0033] Optionally, the threshold energy is determined by:

[0034] Acquire a third environmental noise energy of the electronic device in a test environment, a background noise energy of the proximity sensor in the test environment, and a third energy collected by the proximity sensor in the test environment, wherein the test environment is used to characterize that a signal baffle is provided at a target position of the electronic device;

[0035] An energy difference between the third energy, the third environmental noise energy, and a background noise energy of the proximity sensor in a test environment is determined, and the energy difference is determined as the threshold energy.

[0036] According to a third aspect of an embodiment of the present disclosure, a noise floor determination device is provided, the noise floor determination device comprising:

[0037] A first determination module is configured to determine a first environmental noise energy of the electronic device in an environment in which the electronic device is located;

[0038] A first acquisition module is configured to acquire a first energy of a signal collected by the proximity sensor in the electronic device at any time between a start time and a target time, wherein the target time is a time when the proximity sensor receives a first target signal, and the first target signal is a signal of a first pulse signal emitted by the proximity sensor that passes through the touch screen of the electronic device to reach an object and is reflected by the object back to the proximity sensor;

[0039] The second determination module is configured to determine a background noise energy of the proximity sensor according to the first energy and the first environmental noise energy.

[0040] Optionally, the background noise determination device further includes:

[0041] A third determination module is configured to determine the shortest transmission distance of the first target signal;

[0042] a fourth determining module, configured to determine a transmission time of the first target signal according to the shortest transmission distance and a transmission speed of the first target signal;

[0043] The fifth determination module is configured to determine the target time according to the start time and the transmission time.

[0044] Optionally, the third determining module includes:

[0045] a first determining unit configured to determine a distance between the proximity sensor and the touch screen, a thickness of the touch screen, an incident angle and a refraction angle between the first target signal and the touch screen;

[0046] A second determining unit is configured to determine a first transmission distance according to the distance and the incident angle, where the first transmission distance is used to characterize a transmission distance of the first target signal in the air;

[0047] a third determining unit, configured to determine a second transmission distance according to the thickness and the refraction angle, where the second transmission distance is used to characterize a transmission distance of the first target signal in the touch screen;

[0048] The fourth determining unit is configured to determine the shortest transmission distance of the first target signal according to the first transmission distance and the second transmission distance.

[0049] Optionally, the fourth determining unit is configured to determine a transmission distance that minimizes a sum of the first transmission distance and the second transmission distance as the shortest transmission distance of the first target signal.

[0050] Optionally, the second determination unit is configured to determine a first ratio of the distance to the cosine value of the incident angle, and determine twice the first ratio as the first transmission distance; the third determination unit is configured to determine a second ratio of the thickness to the cosine value of the refraction angle, and determine twice the second ratio as the second transmission distance.

[0051] Optionally, the first acquisition module includes:

[0052] A fifth determining unit is configured to determine an energy integral of a signal collected by a proximity sensor in the electronic device from a start-up time to a target time;

[0053] The sixth determination unit is configured to determine the first energy according to the energy integral and a collection time, wherein the collection time is determined according to the start time and the target time.

[0054] According to a fourth aspect of an embodiment of the present disclosure, a screen control device is provided, the screen control device comprising:

[0055] a second acquisition module, configured to acquire a second environmental noise energy of the electronic device in the environment in which the electronic device is located, a second energy collected by a proximity sensor in the electronic device, and a background noise energy of the proximity sensor, wherein the background noise energy of the proximity sensor is determined by the background noise determination device as described in any one of the third aspects;

[0056] The control module is configured to control the display of the touch screen according to the second energy, the second environmental noise energy and the background noise energy of the proximity sensor.

[0057] Optionally, the control module includes:

[0058] a seventh determining unit, configured to determine the real energy of a second target signal according to the second energy, the second ambient noise energy, and the background noise energy of the proximity sensor, wherein the second target signal is a signal of a pulse signal emitted by the proximity sensor, which reaches an object through the touch screen of the electronic device and is reflected by the object back to the proximity sensor;

[0059] The control unit is configured to control the display of the touch screen according to the real energy and the preset threshold energy.

[0060] Optionally, the screen control device further includes:

[0061] A third acquisition module is configured to acquire a third environmental noise energy of the electronic device in a test environment, a background noise energy of the proximity sensor in the test environment, and a third energy collected by the proximity sensor in the test environment, wherein the test environment is used to indicate that a signal baffle is provided at a target position of the electronic device;

[0062] The sixth determination module is configured to determine an energy difference between the third energy, the third environmental noise energy, and a background noise energy of the proximity sensor in a test environment, and determine the energy difference as the threshold energy.

[0063] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0064] processor;

[0065] a memory for storing processor-executable instructions;

[0066] Wherein, the processor is configured to:

[0067] Execute the steps of the method described in any one of the first aspect or the second aspect of the present disclosure.

[0068] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method described in any one of the first aspect or the second aspect of the present disclosure are implemented.

[0069] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0070] Through the above technical solution, the ambient noise energy and the first energy collected by the proximity sensor can be obtained before the receiving end receives the energy of the first target signal, and the background noise energy can be determined based on the first energy and the ambient noise energy. Since the first energy is collected before the proximity sensor receives the first target signal, and the first target signal is the first pulse signal emitted by the proximity sensor that reaches the object through the touch screen of the electronic device and is reflected back to the proximity sensor by the object, the first energy only includes the background noise energy and the ambient noise energy, and the ambient noise energy is known, so the background noise energy can be determined based on the first energy and the ambient noise energy. On the other hand, since the background noise energy can be determined at any time between the start-up time of the proximity sensor and the target time, the background noise can be remeasured each time the proximity sensor is started, thereby avoiding the problem of inaccurate background noise measurement due to changes in the structure of the electronic device.

[0071] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0073] Figure 1 is a schematic diagram of a pulse signal emitted by a proximity sensor according to an exemplary embodiment of the present disclosure;

[0074] Figure 2 is a schematic diagram showing a source of a signal received by a proximity sensor receiving end according to an exemplary embodiment of the present disclosure;

[0075] Figure 3 is a schematic block diagram showing a partial internal structure of an electronic device according to an exemplary embodiment of the present disclosure;

[0076] Figure 4 is a flow chart of a method for determining background noise according to an exemplary embodiment of the present disclosure;

[0077] Figure 5 is a schematic diagram of a transmission path of a pulse signal according to an exemplary embodiment of the present disclosure;

[0078] Figure 6 is a schematic diagram showing a case where a transmission path difference between a first target signal and a background noise signal is minimized according to an exemplary embodiment of the present disclosure;

[0079] Figure 7 is a schematic diagram of the shortest transmission path of a first target signal according to an exemplary embodiment of the present disclosure;

[0080] Figure 8 is a schematic diagram showing energy integration of a signal collected by a receiving end from a start time to a target time according to an exemplary embodiment of the present disclosure;

[0081] Fig. 9 is a schematic block diagram showing a partial internal structure of another electronic device according to an exemplary embodiment of the present disclosure;

[0082] Fig.10 is a schematic diagram showing a comparison between a control screen display of the present disclosure and a control screen display in a related art according to an exemplary embodiment of the present disclosure;

[0083] Fig.11 is a flow chart of a screen control method according to an exemplary embodiment of the present disclosure;

[0084] Fig.12 is a block diagram of a device for determining background noise according to an exemplary embodiment of the present disclosure;

[0085] Fig.13 is a block diagram of a screen control device according to an exemplary embodiment of the present disclosure;

[0086] Fig.14 is a block diagram of a device for background noise determination or screen control according to an exemplary embodiment of the present disclosure;

[0087] Fig.15 It is a block diagram of another device for background noise determination or screen control according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0088] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0089] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0090] As mentioned in the background technology, in the related technology, the proximity sensor inside the electronic device can be used to detect whether there is an object near the electronic device, thereby controlling the touch screen display of the electronic device. However, due to the presence of background noise, the detection accuracy of the proximity sensor will be affected, thereby affecting the display control of the touch screen.

[0091] Specifically, when the proximity sensor detects whether there is an object near the electronic device, the transmitter of the proximity sensor will emit an infrared signal in the form of a pulse through an infrared lamp, such as Figure 1 As shown. The infrared signal is irradiated onto the object through the touch screen and then reflected to the receiving end. The energy of the received infrared signal is used to determine whether there is an object close to the touch screen. For example, when making a call, the face is close to the proximity sensor, and the energy of the reflected infrared signal is relatively large. When it exceeds the preset threshold energy, the screen will be turned off to prevent the user from accidentally touching the screen with their face close to the touch screen. However, part of the infrared signal emitted by the infrared lamp will be directly transmitted to the receiving end of the proximity sensor through the structural gap inside the mobile phone, thereby generating some background noise, which affects the detection of the proximity sensor. Figure 2 shown.

[0092] Among them, the structural gaps are generated between the middle frame and the heightening plate and between the middle frame and the touch screen, such as Figure 3As shown in the figure, the reason is that the middle frame and the padding plate are both hard structures. If they are in direct contact, they will cause certain wear and tear. Therefore, a 0.2mm gap is generally left in the design. If the middle frame and the screen are in direct contact, it will cause the top screen problem and damage the screen. Therefore, a 0.3mm safety gap is generally left in the design. These gaps cannot be completely eliminated, so part of the energy emitted by the infrared lamp is transmitted through them to form background noise.

[0093] In order to overcome the influence of background noise on the proximity sensor, the detection result of the proximity sensor is calibrated by measuring the background noise in the related art to improve the detection accuracy of the proximity sensor. However, the background noise measurement method in the related art does not consider the influence of the electronic device structure on the background noise, resulting in inaccurate background noise measurement.

[0094] Specifically, when electronic devices leave the factory, the related technology defaults to the energy received by the receiver when there is no object near the touch screen as the background noise energy. Since the structure of electronic devices will change during use, such as when a mobile phone falls or the touch screen changes structure due to long-term use, the background noise will surge, resulting in inaccurate measurement of the background noise.

[0095] In view of this, the embodiments of the present disclosure provide a background noise determination method, a screen control method and a corresponding device to solve the above technical problems.

[0096] Figure 4 is a flow chart of a method for determining background noise according to an exemplary embodiment. Figure 4 As shown, the following steps may be included.

[0097] In step S401, a first environmental noise energy of the electronic device in the environment in which the electronic device is located is determined.

[0098] The electronic device may be a mobile phone, a tablet computer, or a smart wearable device, etc., and the embodiments of the present disclosure do not impose any restrictions on this.

[0099] In a possible implementation manner, determining the first environmental noise energy of the electronic device in the environment in which it is located may include:

[0100] Before the proximity sensor is turned on, a total energy value of the environmental signal collected within a preset time period is acquired; and the first environmental noise energy is determined according to the total energy value and the preset time period.

[0101] It should be understood that the preset duration can be set according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. In a possible implementation, the preset duration can be set to 30 seconds, 45 seconds or 1 minute.

[0102] It should also be understood that the environmental noise energy changes according to changes in the environment, so the accuracy of the environmental noise energy can be ensured by taking the average environmental noise energy within a period of time as the environmental noise energy, thereby ensuring the accuracy of the background noise energy. That is, determining the first environmental noise energy according to the total energy value and the preset time length may include:

[0103] A third ratio of the total energy value to the preset duration is determined, and the third ratio is determined as the first environmental noise energy.

[0104] It should also be understood that real-time determination of environmental noise energy will affect the performance of the electronic device. Therefore, in a possible implementation, the first environmental noise energy of the electronic device in the environment can be periodically determined before the proximity sensor is turned on. The period for determining the first environmental noise energy can be set according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this.

[0105] In step S402, the first energy of the signal collected by the proximity sensor in the electronic device at any time between the start-up time and the target time is obtained, wherein the target time is the time when the proximity sensor receives the first target signal, and the first target signal is the first pulse signal emitted by the proximity sensor, which passes through the touch screen of the electronic device to reach the object and is reflected by the object back to the proximity sensor.

[0106] It should be understood that the output end of the proximity sensor emits infrared signals in the form of pulses, part of which is transmitted through the touch screen to the object and reflected back to the receiving end by the object; the other part of the infrared signal, i.e., the background noise, is directly transmitted to the receiving end through the gaps in the internal structure of the mobile phone under the touch screen. Figure 5 As shown. Figure 5 It can be seen that the transmission distance of the background noise depends on the structure of the electronic device, and the transmission distance of the infrared signal reflected by the object to the receiving end depends on the distance between the object and the touch screen. Therefore, for the same pulse signal, even if the object is close to the touch screen surface, the background noise energy will definitely reach the receiving end before the infrared signal reflected by the object. Figure 6 shown.

[0107] It should also be understood that since the output end of the proximity sensor continuously sends pulse signals, in addition to the first pulse signal, the background noise energy corresponding to the remaining pulse signals is received by the receiving end, and at the same time, the energy of the previous pulse signal reflected by the object may also be received. It cannot be guaranteed that the receiving end receives only the background noise energy and the ambient noise energy. However, for the first pulse signal, before it is reflected back to the receiving end by the object, the receiving end receives only the ambient noise energy and the background noise energy. In other words, at any time before the target moment, the first energy received by the receiving end is the ambient noise energy and the background noise energy.

[0108] It should also be understood that since the ambient noise energy has been determined before the proximity sensor is turned on, after the first energy is acquired, the background noise energy of the proximity sensor can be determined by calculating the difference between the first energy and the first ambient noise energy.

[0109] That is, in step S403, the background noise energy of the proximity sensor may be determined according to the first energy and the first environmental noise energy.

[0110] Through the above technical solution, the ambient noise energy and the first energy collected by the proximity sensor can be obtained before the receiving end receives the energy of the first target signal, and the background noise energy can be determined based on the first energy and the ambient noise energy. Since the first energy is collected before the proximity sensor receives the first target signal, and the first target signal is the first pulse signal emitted by the proximity sensor that reaches the object through the touch screen of the electronic device and is reflected back to the proximity sensor by the object, the first energy only includes the background noise energy and the ambient noise energy, and the ambient noise energy is known, so the background noise energy can be determined based on the first energy and the ambient noise energy. On the other hand, since the background noise energy can be determined at any time between the start-up time of the proximity sensor and the target time, the background noise can be remeasured each time the proximity sensor is started, thereby avoiding the problem of inaccurate background noise measurement due to changes in the structure of the electronic device.

[0111] In a possible implementation, the target time may be determined by:

[0112] Determine the shortest transmission distance of the first target signal; determine the transmission time of the first target signal according to the shortest transmission distance and the transmission speed of the first target signal; determine the target time according to the start time and the transmission time.

[0113] It should be understood that when the first target signal is transmitted, it will be irradiated onto the object through the touch screen and reflected back to the receiving end by the object, so the transmission distance of the first target signal includes the transmission distance in the air and the transmission distance in the touch screen. To minimize the transmission distance of the first target signal, it is necessary to minimize the total transmission distance of the first target signal in the air and in the touch screen.

[0114] That is, according to an embodiment of the present disclosure, determining the shortest transmission distance of the first target signal according to the first transmission distance and the second transmission distance may include:

[0115] A transmission distance that minimizes the sum of the first transmission distance and the second transmission distance is determined as the shortest transmission distance of the first target signal.

[0116] It should be understood that when the object is close to the surface of the touch screen and the signal reflected by the object is transmitted to the outermost side of the receiving end, that is, the side close to the transmitting end, the first target signal has the shortest transmission path, that is, the sum of the first transmission distance and the second transmission distance under this transmission path is the smallest, such as Figure 6 Therefore, the shortest transmission distance of the first target signal can be determined by obtaining the first transmission distance and the second transmission distance under this transmission path.

[0117] At the same time, according to Figure 7 It can be seen that the first transmission distance includes the transmission distance S1 of the first target signal from the proximity sensor transmitting end to the lower surface of the touch screen and the transmission distance S2 of the first target signal from the lower surface of the touch screen to the proximity sensor receiving end, and the second transmission distance includes the transmission distance S3 of the first target signal from the lower surface of the touch screen to the upper surface of the touch screen and the transmission distance S4 of the first target signal from the upper surface of the touch screen to the lower surface of the touch screen. Since the optical path transmission is symmetrical, S1 is the same as S4, and S2 is the same as S3, so S1 and S2 can be determined first, and then the first transmission distance is determined according to S1, and the second transmission distance is determined according to S2, and finally the shortest transmission distance of the first target signal is determined according to the first transmission distance and the second transmission distance.

[0118] In addition, according to Figure 7 It can be seen that S1 is related to the incident angle β and the distance h, and S2 is related to the touch screen thickness d and the refraction angle α. Therefore, S1 can be determined according to β and h, and S2 can be determined according to α and d.

[0119] That is, according to an embodiment of the present disclosure, determining the shortest transmission distance of the first target signal may include:

[0120] Determine the distance between the proximity sensor and the touch screen, the thickness of the touch screen, and the incident angle and refraction angle between the first target signal and the touch screen; determine a first transmission distance based on the distance and the incident angle; determine a second transmission distance based on the thickness and the refraction angle; and determine a shortest transmission distance of the first target signal based on the first transmission distance and the second transmission distance.

[0121] according to Figure 7 It can be seen that S1, β and h satisfy a trigonometric function relationship, and S2, α and d satisfy a trigonometric function relationship. Therefore, S1 can be determined by calculating the ratio of the cosine value of h to β, and S2 can be determined by calculating the ratio of the cosine value of d to α.

[0122] Since S1 is the same as S4 and S2 is the same as S3, after S1 and S2 are determined, the first transmission distance can be obtained by calculating twice the value of S1, and the second transmission distance can be obtained by calculating twice the value of S2.

[0123] That is, according to an embodiment of the present disclosure, determining the first transmission distance according to the distance and the incident angle may include:

[0124] Determine a first ratio of the distance to the cosine value of the incident angle, and determine twice the first ratio as a first transmission distance;

[0125] Determining the second transmission distance according to the thickness and the refraction angle may include:

[0126] A second ratio of the thickness to the cosine value of the refraction angle is determined, and twice the second ratio is determined as a second transmission distance.

[0127] That is, the first ratio is determined by the following formula:

[0128]

[0129] The second ratio is determined by the following formula:

[0130]

[0131] After the first transmission distance and the second transmission distance are determined, the transmission time of the first target signal is obtained by calculating the transmission time corresponding to the first transmission distance and the transmission time corresponding to the second transmission distance.

[0132] Specifically, the transmission speed of the first target signal in the air is known to be 3×10 8 m / s, the transmission speed of the first target signal in the touch screen can be determined according to the refractive index of the touch screen and the transmission speed of the first target signal in the air, that is, it can be determined by the following formula:

[0133]

[0134] Wherein, v represents the transmission speed of the first target signal in the air, c represents the transmission speed of the first target signal in the touch screen, and n represents the refractive index of the touch screen.

[0135] Therefore, the transmission time of the first target signal can be determined by the following formula:

[0136]

[0137] Wherein, t0 represents the transmission time of the first target signal.

[0138] After the transmission time of the first target signal is determined, the target time can be determined according to the start time and the transmission time.

[0139] Among them, according to Figure 7 It can be seen that the incident angle and the refraction angle can satisfy the following formula:

[0140] sinβ=sinα·n

[0141]

[0142] Wherein, l represents the distance from the side of the receiving end of the proximity sensor close to the transmitting end to the center of the transmitting end of the proximity sensor.

[0143] Therefore, according to all the above formulas, the transmission time of the first target signal can be determined.

[0144] In a possible implementation manner, acquiring the first energy of a signal collected by the proximity sensor in the electronic device at any time between a start-up time and a target time may include:

[0145] Determine the energy integral of the signal collected by the proximity sensor in the electronic device from the start-up time to the target time; determine the first energy according to the energy integral and the collection time, wherein the collection time is determined according to the start-up time and the target time.

[0146] For example, Figure 8 As shown, the shaded area corresponds to the energy integration of the signal collected by the proximity sensor from the start time to the target time.

[0147] Through the above technical solution, the first energy can be determined according to the energy integral and acquisition duration of the signal collected between the start time and the target time, thereby reducing the impact caused by sudden changes in the external environment and improving the measurement accuracy of the background noise energy.

[0148] It should be understood that in order to overcome the influence of background noise on the accuracy of proximity sensor detection and thus the display control of touch screen, in addition to calibrating the detection result of proximity sensor by measuring background noise and thus reducing the influence of background noise on touch screen control, related technologies can also reduce the influence of background noise on touch screen control by using structural design to reduce background noise and algorithm to calibrate background noise.

[0149] Among them, the structural noise reduction can be achieved by coating the light-sensing holes and their side walls with black ink to reduce the reflection of infrared signals inside the phone, so that they are absorbed as much as possible and the noise reduction is reduced. Alternatively, foam can be added between the middle frame and the screen, and between the middle frame and the pad. Foam is an elastic sponge structure that can effectively fill small spaces and squeeze the gaps at the contact points of the structure, thereby reducing the infrared signals released from the gaps. The cross-section of the structure after the foam is pasted is shown below. Fig. 9 shown.

[0150] Although these structural designs can effectively reduce the background noise inside the mobile phone, they still cannot completely eliminate it. Therefore, background noise calibration algorithms are used in the software to calibrate the background noise.

[0151] Specifically, Fig.10 As shown, the measured original background noise energy, that is, the ambient noise energy and the background noise energy, is obtained, and the calibrated target energy is obtained according to the original background noise energy and the calibration parameters, and finally the real energy is determined according to the target energy and the energy received by the receiving end, and the display of the touch screen is controlled according to the real energy and the threshold energy.

[0152] Due to differences in the structure and assembly of each electronic device, the noise floor consistency of each electronic device is poor. After calibrated to a uniform target energy value, electronic devices with large noise floor energy will have a smaller response to the signal and a larger error.

[0153] In addition, since the structure of electronic devices will also change during use, such as a phone falling, a slight shift in the position of the foam, and a touch screen changing its structure due to long-term use, the background noise will surge. If the original calibration method is used, a large error will occur. Therefore, there will be errors in the detection of objects by the proximity sensor, which will in turn affect the display control of the touch screen.

[0154] In view of this, the present disclosure also provides a screen control method, such as Fig.11 As shown, the following steps may be included.

[0155] In step S1101, a second environmental noise energy of the electronic device in an environment, a second energy of a signal collected by a proximity sensor in the electronic device, and a background noise energy of the proximity sensor are obtained, wherein the background noise energy of the proximity sensor is determined by any background noise energy determination method described in any one of the first aspects.

[0156] It should be understood that the environmental noise energy varies according to changes in the environment. Therefore, in a possible implementation, the second environmental energy can be periodically collected to ensure the accuracy of the second environmental energy, thereby avoiding the impact of the inaccuracy of the second environmental energy on the display of the touch screen.

[0157] For example, Figure 1 As shown, the second environmental noise energy can be obtained at each low level, that is, when the infrared light of the proximity sensor is in the off state.

[0158] In step S1102, the display of the touch screen is controlled according to the second energy, the second environmental noise energy, and the background noise energy of the proximity sensor.

[0159] In a possible implementation manner, controlling the display of the touch screen according to the second energy, the second environmental noise energy, and the background noise energy of the proximity sensor may include:

[0160] The real energy of the second target signal is determined according to the second energy, the second ambient noise energy and the background noise energy of the proximity sensor, wherein the second target signal is a pulse signal emitted by the proximity sensor, which passes through the touch screen of the electronic device to reach the object and is reflected back to the proximity sensor by the object; and the display of the touch screen is controlled according to the real energy and a preset threshold energy.

[0161] It should be understood that the real energy refers to the energy of the pulse signal received by the proximity sensor receiving end and reflected by the object. The magnitude of the real energy can reflect whether there is an obstacle within the preset range of the touch screen and the distance between the obstacle and the touch screen. Specifically, the larger the energy value of the real energy, the closer the distance between the obstacle and the touch screen, and the smaller the energy value of the real energy, the farther the distance between the obstacle and the touch screen. Therefore, by comparing the real energy with the preset threshold energy, the display of the touch screen can be controlled to avoid accidental touches on the touch screen.

[0162] Specifically, when the real energy is greater than the threshold energy, it means that the distance between the obstacle and the touch screen is lower than the preset anti-mistouch distance. In this case, there is a risk of the obstacle accidentally touching the touch screen, so the touch screen can be controlled to be in the off state. When the real energy is less than the threshold energy, it means that the distance between the obstacle and the touch screen is lower than the preset safety distance. In this case, there is no risk of the obstacle accidentally touching the touch screen, so the touch screen can be uncontrolled.

[0163] It should also be understood that the energy collected by the proximity sensor includes environmental noise energy, background noise energy and true energy, and the environmental noise energy and background noise energy are known. Therefore, by calculating the difference between the energy collected by the proximity sensor, the environmental noise energy and the background noise energy, the true energy can be determined, such as Fig.10 shown.

[0164] Through the above technical solution, accurate background noise energy and environmental noise energy can be obtained, so that accurate real energy can be determined based on the energy collected by the proximity sensor, the background noise energy and the environmental noise energy, and then the display of the touch screen can be controlled. On the other hand, since the background noise energy can be determined at any time between the start-up time of the proximity sensor and the target time, the background noise can be re-measured each time the proximity sensor is started, thereby avoiding the problem that the measured background noise is inaccurate due to changes in the structure of the electronic device, thereby affecting the control of the touch screen.

[0165] In a possible implementation manner, the threshold energy may be determined in the following manner:

[0166] Acquire a third environmental noise energy of the electronic device in a test environment, a background noise energy of the proximity sensor in the test environment, and a third energy collected by the proximity sensor in the test environment, wherein the test environment is used to characterize that a signal baffle is provided at a target position of the electronic device; determine an energy difference between the third energy, the third environmental noise energy, and the background noise energy of the proximity sensor in the test environment, and determine the energy difference as the threshold energy.

[0167] The method for determining the background noise energy of the proximity sensor in the test environment can refer to the relevant description above, which will not be repeated here.

[0168] In the related art, since it is impossible to obtain accurate background noise energy, when determining the threshold energy, it is necessary to first calibrate the obtained original background noise energy, and then determine the threshold energy according to the calibrated target energy, such as Fig.10 As shown, this increases the complexity of the operation of determining the threshold energy.

[0169] In the present disclosure, since the background noise energy can be accurately measured, the threshold energy can be determined according to the third environment noise energy of the electronic device in the test environment, the background noise energy of the proximity sensor in the test environment, and the third energy of the signal collected by the proximity sensor in the test environment. Fig.10 Therefore, compared with the determination method in the related art, the present disclosure does not need to perform calibration during the process of determining the threshold energy, which simplifies the operational complexity of determining the threshold energy and improves the work efficiency of determining the threshold energy.

[0170] Based on the same concept, the embodiment of the present disclosure also provides a device for determining background noise, such as Fig.12 As shown, the background noise determination device 1200 may include:

[0171] The first determination module 1201 is configured to determine a first environmental noise energy of the electronic device in the environment in which the electronic device is located;

[0172] The first acquisition module 1202 is configured to acquire a first energy of a signal collected by the proximity sensor in the electronic device at any time between a start time and a target time, wherein the target time is a time when the proximity sensor receives a first target signal, and the first target signal is a signal of a first pulse signal emitted by the proximity sensor that passes through the touch screen of the electronic device to reach an object and is reflected by the object back to the proximity sensor;

[0173] The second determination module 1203 is configured to determine the background noise energy of the proximity sensor according to the first energy and the first environmental noise energy.

[0174] Through the above technical solution, the ambient noise energy and the first energy collected by the proximity sensor can be obtained before the receiving end receives the energy of the first target signal, and the background noise energy can be determined based on the first energy and the ambient noise energy. Since the first energy is collected before the proximity sensor receives the first target signal, and the first target signal is the first pulse signal emitted by the proximity sensor that reaches the object through the touch screen of the electronic device and is reflected back to the proximity sensor by the object, the first energy only includes the background noise energy and the ambient noise energy, and the ambient noise energy is known, so the background noise energy can be determined based on the first energy and the ambient noise energy. On the other hand, since the background noise energy can be determined at any time between the start-up time of the proximity sensor and the target time, the background noise can be remeasured each time the proximity sensor is started, thereby avoiding the problem of inaccurate background noise measurement due to changes in the structure of the electronic device.

[0175] In a possible implementation manner, the background noise determination device 1200 may further include:

[0176] A third determination module is configured to determine the shortest transmission distance of the first target signal;

[0177] a fourth determining module, configured to determine a transmission time of the first target signal according to the shortest transmission distance and a transmission speed of the first target signal;

[0178] The fifth determination module is configured to determine the target time according to the start time and the transmission time.

[0179] In a possible implementation, the third determining module may include:

[0180] a first determining unit configured to determine a distance between the proximity sensor and the touch screen, a thickness of the touch screen, an incident angle and a refraction angle between the first target signal and the touch screen;

[0181] A second determining unit is configured to determine a first transmission distance according to the distance and the incident angle, where the first transmission distance is used to characterize a transmission distance of the first target signal in the air;

[0182] a third determining unit, configured to determine a second transmission distance according to the thickness and the refraction angle, where the second transmission distance is used to characterize a transmission distance of the first target signal in the touch screen;

[0183] The fourth determining unit is configured to determine the shortest transmission distance of the first target signal according to the first transmission distance and the second transmission distance.

[0184] In a possible implementation manner, the fourth determining unit may be configured to determine a transmission distance that minimizes the sum of the first transmission distance and the second transmission distance as the shortest transmission distance of the first target signal.

[0185] In a possible implementation, the second determination unit may be configured to determine a first ratio of the distance to the cosine value of the incident angle, and determine twice the first ratio as the first transmission distance; the third determination unit may be configured to determine a second ratio of the thickness to the cosine value of the refraction angle, and determine twice the second ratio as the second transmission distance.

[0186] In a possible implementation, the first acquisition module 1202 may include:

[0187] A fifth determining unit is configured to determine an energy integral of a signal collected by a proximity sensor in the electronic device from a start-up time to a target time;

[0188] A sixth determination unit is configured to determine the first energy according to the energy integral and a collection time, wherein the collection time is determined according to the start time and the target time.

[0189] Regarding the background noise determination device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0190] Based on the same concept, the embodiment of the present disclosure also provides a screen control device, such as Fig.13 As shown, the screen control device 1300 may include:

[0191] The second acquisition module 1301 is configured to acquire a second environmental noise energy of the electronic device in the environment in which the electronic device is located, a second energy collected by a proximity sensor in the electronic device, and a background noise energy of the proximity sensor, wherein the background noise energy of the proximity sensor is determined by the background noise determination device as described in any one of the third aspects;

[0192] The control module 1302 is configured to control the display of the touch screen according to the second energy, the second environmental noise energy and the background noise energy of the proximity sensor.

[0193] Through the above technical solution, accurate background noise energy and environmental noise energy can be obtained, so that accurate real energy can be determined based on the energy collected by the proximity sensor, the background noise energy and the environmental noise energy, and then the display of the touch screen can be controlled. On the other hand, since the background noise energy can be determined at any time between the start-up time of the proximity sensor and the target time, the background noise can be re-measured each time the proximity sensor is started, thereby avoiding the problem that the measured background noise is inaccurate due to changes in the structure of the electronic device, thereby affecting the control of the touch screen.

[0194] In a possible implementation, the control module 1302 may include:

[0195] a seventh determining unit, configured to determine a true energy of the first target signal according to the second energy, the second ambient noise energy, and a background noise energy of the proximity sensor;

[0196] The control unit is configured to control the display of the touch screen according to the real energy and the preset threshold energy.

[0197] In a possible implementation manner, the screen control device 1300 may further include:

[0198] A third acquisition module is configured to acquire a third environmental noise energy of the electronic device in a test environment, a background noise energy of the proximity sensor in the test environment, and a third energy collected by the proximity sensor in the test environment, wherein the test environment is used to indicate that a signal baffle is provided at a target position of the electronic device;

[0199] The sixth determination module is configured to determine an energy difference between the third energy, the third environmental noise energy, and a background noise energy of the proximity sensor in a test environment, and determine the energy difference as the threshold energy.

[0200] Regarding the screen control device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0201] Based on the same concept, an embodiment of the present disclosure further provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method described in any one of the first aspect or the second aspect of the present disclosure are implemented.

[0202] Based on the same concept, the embodiment of the present disclosure further provides an electronic device, including:

[0203] processor;

[0204] a memory for storing processor-executable instructions;

[0205] Wherein, the processor is configured to:

[0206] Execute the steps of the method described in any one of the first aspect or the second aspect of the present disclosure.

[0207] Fig.14 1 is a block diagram of a device 1400 for background noise determination or screen control according to an exemplary embodiment of the present disclosure. For example, the device 1400 may be a mobile device, a computer, a wearable device, and the like.

[0208] Reference Fig.14 , the device 1400 may include one or more of the following components: a first processing component 1402 , a first memory 1404 , a first power component 1406 , a multimedia component 1408 , an audio component 1410 , a first input / output interface 1412 , a sensor component 1414 , and a communication component 1416 .

[0209] The first processing component 1402 generally controls the overall operation of the device 1400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The first processing component 1402 may include one or more first processors 1420 to execute instructions to perform all or part of the steps of the above-described method. In addition, the first processing component 1402 may include one or more modules to facilitate interaction between the first processing component 1402 and other components. For example, the first processing component 1402 may include a multimedia module to facilitate interaction between the multimedia component 1408 and the first processing component 1402.

[0210] The first memory 1404 is configured to store various types of data to support operations on the device 1400. Examples of such data include instructions for any application or method operating on the device 1400, contact data, phone book data, messages, pictures, videos, etc. The first memory 1404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0211] The first power source component 1406 provides power to various components of the device 1400. The first power source component 1406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1400.

[0212] The multimedia component 1408 includes a screen that provides an output interface between the device 1400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1408 includes a front camera and / or a rear camera. When the device 1400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0213] The audio component 1410 is configured to output and / or input audio signals. For example, the audio component 1410 includes a microphone (MIC), and when the device 1400 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the first memory 1404 or sent via the communication component 1416. In some embodiments, the audio component 1410 also includes a speaker for outputting audio signals.

[0214] The first input / output interface 1412 provides an interface between the first processing component 1402 and a peripheral interface module, which may be a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0215] The sensor assembly 1414 includes one or more sensors for providing various aspects of the status assessment of the device 1400. For example, the sensor assembly 1414 can detect the open / closed state of the device 1400, the relative positioning of components, such as the display and keypad of the device 1400, the sensor assembly 1414 can also detect the position change of the device 1400 or a component of the device 1400, the presence or absence of user contact with the device 1400, the orientation or acceleration / deceleration of the device 1400, and the temperature change of the device 1400. The sensor assembly 1414 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1414 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1414 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0216] The communication component 1416 is configured to facilitate wired or wireless communication between the device 1400 and other devices. The device 1400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0217] In an exemplary embodiment, the device 1400 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0218] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a first memory 1404 including instructions, and the instructions can be executed by a first processor 1420 of the device 1400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0219] Fig.15 1 is a block diagram of a device 1500 for background noise determination or screen control according to an exemplary embodiment of the present disclosure. For example, the device 1500 may be provided as a server. Fig.15 , the apparatus 1500 includes a second processing component 1522, which further includes one or more processors, and a memory resource represented by a second memory 1532 for storing instructions, such as applications, that can be executed by the second processing component 1522. The application stored in the second memory 1532 may include one or more modules, each corresponding to a set of instructions. In addition, the second processing component 1522 is configured to execute instructions to perform the above method.

[0220] The device 1500 may also include a second power supply component 1526 configured to perform power management of the device 1500, a wired or wireless network interface 1550 configured to connect the device 1500 to a network, and a second input / output interface 1558. The device 1500 may operate based on an operating system stored in the memory 1532, such as Windows Server 2003. TM , MacOS X TM , Unix TM , Linux TM , FreeBSD TM or similar.

[0221] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0222] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for determining background noise, characterized in that: The method comprises: Determine a first environmental noise energy of the electronic device in an environment in which the electronic device is located; Acquire the first energy of a signal collected by the proximity sensor in the electronic device at any time between the start-up time and the target time, wherein the target time is the time when the proximity sensor receives the first target signal, and the first target signal is the first pulse signal emitted by the proximity sensor, which passes through the touch screen of the electronic device to reach the object and is reflected by the object back to the proximity sensor; A background noise energy of the proximity sensor is determined according to the first energy and the first environmental noise energy.

2. The method according to claim 1, characterized in that The target time is determined by: determining the shortest transmission distance of the first target signal; determining a transmission time of the first target signal according to the shortest transmission distance and a transmission speed of the first target signal; The target time is determined according to the start time and the transmission time.

3. The method according to claim 2, characterized in that The determining the shortest transmission distance of the first target signal includes: Determine the distance between the proximity sensor and the touch screen, the thickness of the touch screen, and the incident angle and refraction angle between the target signal and the touch screen; Determine a first transmission distance according to the distance and the incident angle, where the first transmission distance is used to characterize a transmission distance of the first target signal in the air; determining a second transmission distance according to the thickness and the refraction angle, where the second transmission distance is used to characterize a transmission distance of the first target signal in the touch screen; The shortest transmission distance of the first target signal is determined according to the first transmission distance and the second transmission distance.

4. The method according to claim 3, characterized in that The determining the shortest transmission distance of the first target signal according to the first transmission distance and the second transmission distance includes: A transmission distance that minimizes the sum of the first transmission distance and the second transmission distance is determined as the shortest transmission distance of the first target signal.

5. The method according to claim 3 or 4, characterized in that: The determining a first transmission distance according to the distance and the incident angle comprises: Determine a first ratio of the distance to the cosine value of the incident angle, and determine twice the first ratio as a first transmission distance; The determining of the second transmission distance according to the thickness and the refraction angle comprises: A second ratio of the thickness to the cosine value of the refraction angle is determined, and twice the second ratio is determined as a second transmission distance.

6. The method according to any one of claims 1 to 4, wherein obtaining the first energy of the signal collected by the proximity sensor in the electronic device at any time between the start time and the target time comprises: Determine the energy integral of the signal collected by the proximity sensor in the electronic device from the start time to the target time; The first energy is determined according to the energy integral and the collection time, wherein the collection time is determined according to the start time and the target time.

7. A screen control method, characterized in that: The method comprises: Acquire a second environmental noise energy of the electronic device in the environment in which it is located, the second energy collected by a proximity sensor in the electronic device, and a background noise energy of the proximity sensor, wherein the background noise energy of the proximity sensor is determined by the background noise determination method according to any one of claims 1 to 6; The display of the touch screen is controlled according to the second energy, the second environmental noise energy, and the background noise energy of the proximity sensor.

8. The method according to claim 7, characterized in that The controlling the display of the touch screen according to the second energy, the second environmental noise energy, and the background noise energy of the proximity sensor includes: determining the true energy of a second target signal according to the second energy, the second ambient noise energy, and the background noise energy of the proximity sensor, wherein the second target signal is a signal of a pulse signal emitted by the proximity sensor that reaches an object through the touch screen of the electronic device and is reflected by the object back to the proximity sensor; The display of the touch screen is controlled according to the real energy and the preset threshold energy.

9. The method according to claim 8, characterized in that The threshold energy is determined by: Acquire a third environmental noise energy of the electronic device in a test environment, a background noise energy of the proximity sensor in the test environment, and a third energy collected by the proximity sensor in the test environment, wherein the test environment is used to characterize that a signal baffle is provided at a target position of the electronic device; An energy difference between the third energy, the third environmental noise energy, and a background noise energy of the proximity sensor in a test environment is determined, and the energy difference is determined as the threshold energy.

10. A device for determining background noise, characterized in that: The device comprises: A first determination module is configured to determine a first environmental noise energy of the electronic device in an environment in which the electronic device is located; A first acquisition module is configured to acquire a first energy of a signal collected by the proximity sensor in the electronic device at any time between a start time and a target time, wherein the target time is a time when the proximity sensor receives a first target signal, and the first target signal is a signal of a first pulse signal emitted by the proximity sensor that passes through the touch screen of the electronic device to reach an object and is reflected by the object back to the proximity sensor; The second determination module is configured to determine a background noise energy of the proximity sensor according to the first energy and the first environmental noise energy.

11. A screen control device, characterized in that: The device comprises: a second acquisition module configured to acquire a second environmental noise energy of the electronic device in an environment in which the electronic device is located, a second energy collected by a proximity sensor in the electronic device, and a background noise energy of the proximity sensor, wherein the background noise energy of the proximity sensor is determined by the background noise determination device according to claim 7; The control module is configured to control the display of the touch screen according to the second energy, the second environmental noise energy and the background noise energy of the proximity sensor.

12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the steps of the method according to any one of claims 1 to 9.

13. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.