Screen control method and device, and storage medium

By obtaining the noise floor value and acquisition value of the proximity sensor, determining whether there are obstacles within the preset range of the mobile terminal, and controlling the display of the touch screen, the problem of poor screen anti-touch function in the prior art is solved, and higher judgment accuracy and control accuracy are achieved.

CN113821116BActive Publication Date: 2025-05-23BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010567711.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-19
Publication Date
2025-05-23
Estimated Expiration
2040-06-19

AI Technical Summary

Technical Problem

The existing screen anti-touch function is not effective enough when dealing with scenes like pockets, which makes it difficult to effectively solve the problem of accidentally touch.

Method used

By obtaining the noise floor value of the proximity sensor and the acquisition value in the current environment, it is determined whether there are obstacles within the preset range of the mobile terminal, and the display of the touch screen is controlled based on the results.

Benefits of technology

The accuracy of the proximity sensor for proximity or distance status judgment is improved, the control accuracy of the touch screen display is improved, and the anti-touch function of the mobile terminal is further enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113821116B_ABST
    Figure CN113821116B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a screen control method, device, and storage medium. Applied to a mobile terminal including a proximity sensor and a touch screen, the method includes: obtaining the background noise value of the proximity sensor; obtaining the acquisition value sensed by the proximity sensor in the current environment of the mobile terminal; determining whether there is an obstacle within the preset range of the mobile terminal according to the background noise value and the acquisition value; and controlling the display of the touch screen according to the determination result of whether there is an obstacle within the preset range of the mobile terminal. Through this method, the accuracy of the proximity sensor in judging the approaching or distant state can be improved, thereby improving the control accuracy of the touch screen display, and further improving the accuracy of the mobile terminal's anti-mistouch function.
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 screen control method and device, and a storage medium. Background Art

[0002] With the continuous development of electronic equipment technology, electronic equipment is becoming more and more intelligent. For example, many electronic devices include a screen anti-mistouch function. Taking mobile phones as an example, this function is to prevent the screen from being accidentally awakened when the phone is in a pocket or backpack, causing mistouch.

[0003] Generally, the anti-mistouch function is implemented based on a proximity sensor, and the state of the proximity sensor output is used to determine whether there is an obstacle within the range of the electronic device. However, the existing algorithms do not handle such scenarios like pockets well enough. Summary of the invention

[0004] The present disclosure provides a screen control method and device, and a storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a screen control method, which is applied to a mobile terminal including a proximity sensor and a touch screen, and includes:

[0006] Obtaining a background noise value of the proximity sensor;

[0007] Obtaining a collection value sensed by the proximity sensor of the mobile terminal in a current environment;

[0008] Determining whether there is an obstacle within a preset range of the mobile terminal according to the background noise value and the collected value;

[0009] The display of the touch screen is controlled according to a determination result of whether there is an obstacle within a preset range of the mobile terminal.

[0010] Optionally, determining whether there is an obstacle within a preset range of the mobile terminal according to the background noise value and the collection value includes:

[0011] If the ratio of the collected value to the background noise value is less than a preset ratio, it is determined that there is no obstacle within the preset range;

[0012] If the ratio is greater than or equal to the preset ratio, it is determined whether there is the obstacle within the preset range according to the touch detection result of the touch screen.

[0013] Optionally, determining whether there is the obstacle within the preset range according to the touch detection result of the touch screen includes:

[0014] If the touch detection result indicates that there is a touch signal acting on the touch screen, it is determined that the obstacle exists within the preset range;

[0015] If the touch detection result indicates that there is no touch signal acting on the touch screen, it is determined that there is no obstacle within the preset range.

[0016] Optionally, the acquiring of a collection value sensed by the proximity sensor of the mobile terminal in a current environment includes:

[0017] Acquire the collected values ​​continuously sensed by the proximity sensor in the current environment;

[0018] The determining, according to the background noise value and the collection value, whether there is an obstacle within a preset range of the mobile terminal includes:

[0019] Calculating the average of a plurality of the collected values;

[0020] It is determined whether the obstacle is within a preset range of the mobile terminal according to the background noise value and the average value.

[0021] Optionally, obtaining the background noise value of the proximity sensor includes:

[0022] The background noise value of the current environment is obtained from a calibration file stored in the mobile terminal at a preset interval.

[0023] Optionally, controlling the display of the touch screen according to the result of determining whether there is an obstacle within a preset range of the mobile terminal includes:

[0024] If the determination result indicates that there is no obstacle within the preset range, controlling the touch screen to light up;

[0025] If the determination result indicates that the obstacle is within the preset range, the touch screen is kept off.

[0026] According to a second aspect of an embodiment of the present disclosure, a screen control device is provided, which is applied to a mobile terminal including a proximity sensor and a touch screen, and includes:

[0027] A first acquisition module, configured to acquire a background noise value of the proximity sensor;

[0028] A second acquisition module is configured to acquire a collection value sensed by the proximity sensor of the mobile terminal in a current environment;

[0029] A determination module, configured to determine whether there is an obstacle within a preset range of the mobile terminal according to the background noise value and the collection value;

[0030] The control module is configured to control the display of the touch screen according to the determination result of whether there is an obstacle within a preset range of the mobile terminal.

[0031] Optionally, the determination module is configured to determine whether there is the obstacle within the preset range if the ratio of the collected value to the background noise value is less than a preset ratio; if the ratio is greater than or equal to the preset ratio, determine whether there is the obstacle within the preset range based on the touch detection result of the touch screen.

[0032] Optionally, the determination module is specifically configured to determine that the obstacle is within the preset range if the touch detection result indicates that there is a touch signal acting on the touch screen; if the touch detection result indicates that there is no touch signal acting on the touch screen, determine that the obstacle is not within the preset range.

[0033] Optionally, the first acquisition module is specifically configured to acquire a collection value continuously sensed by the proximity sensor under the current environment;

[0034] The determination module is specifically configured to calculate an average of the plurality of collected values; and determine whether there is the obstacle within a preset range of the mobile terminal according to the background noise value and the average.

[0035] Optionally, the first acquisition module is specifically configured to acquire the background noise value of the current environment from a calibration file stored in the mobile terminal at a preset interval.

[0036] Optionally, the control module is specifically configured to control the touch screen to light up if the determination result indicates that there is no obstacle within the preset range; and to keep the touch screen off if the determination result indicates that there is an obstacle within the preset range.

[0037] According to a third aspect of an embodiment of the present disclosure, there is provided a screen control device, including:

[0038] processor;

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

[0040] Wherein, the processor is configured to execute the screen control method as described in the first aspect above.

[0041] According to a fourth aspect of an embodiment of the present disclosure, there is provided a storage medium, including:

[0042] When the instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute the screen control method as described in the first aspect above.

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

[0044] It can be understood that in the embodiments of the present disclosure, by obtaining the background noise value of the proximity sensor and the collected value sensed by the proximity sensor in the current environment, it is determined whether there are obstacles within the preset range and the display of the touch screen is controlled. Compared with the method of calculating the distance based on the time difference between the proximity sensor transmitting the signal outward and receiving the reflected signal, the present disclosure introduces the background noise value for analysis, which can reduce the error caused by the background noise, and further improve the accuracy of the proximity sensor in judging the approaching or distant state, thereby improving the control accuracy of the touch screen display, and further improving the accuracy of the anti-mistouch function of the mobile terminal.

[0045] 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

[0046] 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.

[0047] Figure 1 This is a screen control method flow shown in the embodiment of the present disclosure Figure 1 .

[0048] Figure 2 It is a flow chart of a method for obtaining a background noise value shown in an embodiment of the present disclosure.

[0049] Figure 3 This is a screen control method flow shown in the embodiment of the present disclosure Figure 2 .

[0050] Figure 4 The figure is a diagram of a screen control device according to an exemplary embodiment.

[0051] Figure 5 It is a block diagram of a mobile terminal shown in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] 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.

[0053] Figure 1 This is a screen control method flow shown in the embodiment of the present disclosure Figure 1 , used in mobile terminals including proximity sensors and touch screens, such as Figure 1 As shown, the method comprises the following steps:

[0054] S11, obtaining a background noise value of the proximity sensor;

[0055] S12, obtaining a collection value sensed by the proximity sensor of the mobile terminal in the current environment;

[0056] S13, determining whether there is an obstacle within a preset range of the mobile terminal according to the background noise value and the collected value;

[0057] S14. Controlling the display of the touch screen according to a determination result of whether there is an obstacle within a preset range of the mobile terminal.

[0058] In an embodiment of the present disclosure, the mobile terminal includes: a mobile phone, a tablet computer, a smart wearable device, etc.

[0059] The mobile terminal includes a display screen to display information to the user. Moreover, the display screen may also be a touch screen with a touch function, so that the user can operate the mobile terminal by touching the screen based on the displayed information.

[0060] The mobile terminal also includes a proximity sensor, which can detect the distance between an object outside the mobile terminal and the mobile terminal by emitting an infrared light signal.

[0061] When the mobile terminal is in the screen-off working mode, the proximity sensor transmission power is set to a low level for power saving. Therefore, when the mobile terminal is in a small space such as a pocket, it is easy to misjudge the current proximity state as the distance state, which can easily cause the display screen to light up by mistake when in the screen-off working mode. Furthermore, based on the lighting of the display screen, the mobile terminal is prone to mis-triggering the touch screen due to squeezing, collision, etc., such as mis-triggering of the volume key and the power button.

[0062] In step S11, the mobile terminal obtains the background noise value of the proximity sensor. Background noise is also called background noise.

[0063] Background noise generally refers to all interference that is unrelated to the presence or absence of a signal in a generation, inspection, measurement or recording system. In industrial noise or environmental noise measurement, it refers to the ambient noise other than the noise source being measured.

[0064] In the embodiments of the present disclosure, the background noise can be understood as the noise of the working environment of the proximity sensor when there are no obstacles within the preset range of the mobile terminal. For example, the background noise can be the noise caused by the optical path or circuit when there are no obstacles within the preset range of the mobile terminal.

[0065] It should be noted that the background noise value may be a value stored in a calibration file of the mobile terminal, and the calibration file may be determined during factory production.

[0066] In one embodiment, different signal parameters in the mobile terminal may correspond to different background noise values. Therefore, in an experimental environment, there are no obstacles within the preset range of the mobile terminal, and the background noise values ​​of the proximity sensor corresponding to different optical signal values ​​and / or electrical signal values ​​are recorded, and the background noise values ​​are stored in the calibration file.

[0067] In another embodiment, the corresponding background noise value may be different depending on the working environment of the mobile terminal. The working environment includes: working time, working temperature and / or humidity, etc. For example, in an experimental environment, there are no obstacles within the preset range of the mobile terminal, and the background noise value of the proximity sensor in different time periods is recorded, and the background noise value is stored in a calibration file.

[0068] Based on the noise floor value stored in the calibration file, the mobile terminal can obtain the corresponding noise floor value from the calibration file according to the current working environment or signal parameters.

[0069] In step S12, the mobile terminal acquires the acquisition value sensed by the proximity sensor in the current environment. The acquisition value refers to the noise value acquired by the proximity sensor in the current environment, and the noise value may include the background noise value. If there is an obstacle within the preset range of the mobile terminal, or the mobile terminal receives a touch signal, the acquisition value may also include the noise value acquired when there is an external environment.

[0070] It should be noted that, in the embodiments of the present disclosure, the noise floor value or the current acquisition value of the proximity sensor may be stored in a register of the mobile terminal or in a register of the proximity sensor, which is not limited in the embodiments of the present disclosure.

[0071] In step S13, the mobile terminal determines whether there is an obstacle within the preset range according to the background noise value and the collection value. For example, the mobile terminal determines whether there is an obstacle within the preset range according to the ratio or difference between the background noise value and the collection value, and then in step S14, the display of the touch screen is controlled according to the determination result of whether there is an obstacle within the preset range.

[0072] It should be noted that, as mentioned above, the background noise value is the noise value of the working environment of the proximity sensor when there are no obstacles within the preset range of the mobile terminal, and the acquisition value is the sensing value of the proximity sensor in the current working environment. Therefore, based on the acquisition value and the background noise value in the current working environment, it can be determined whether there are obstacles within the preset range.

[0073] It can be understood that in the embodiments of the present disclosure, by obtaining the background noise value of the proximity sensor and the collected value sensed by the proximity sensor in the current environment, it is determined whether there are obstacles within the preset range and the display of the touch screen is controlled. Compared with the method of calculating the distance based on the time difference between the proximity sensor transmitting the signal outward and receiving the reflected signal, the present disclosure introduces the background noise value for analysis, which can reduce the error caused by the background noise, and thus can improve the accuracy of the proximity sensor in judging the approaching or distant state, thereby improving the control accuracy of the touch screen display, and further improving the accuracy of the mobile terminal's anti-mistouch function.

[0074] In one embodiment, determining whether there is an obstacle within a preset range of the mobile terminal according to the background noise value and the collection value includes:

[0075] If the ratio of the collected value to the background noise value is less than a preset ratio, it is determined that there is no obstacle within the preset range;

[0076] If the ratio is greater than or equal to the preset ratio, it is determined whether there is the obstacle within the preset range according to the touch detection result of the touch screen.

[0077] In this embodiment, based on the ratio of the collected value to the background noise value and the preset ratio, on the one hand, when the ratio of the collected value to the background noise value is less than the preset ratio, it is determined that there is no obstacle within the preset range; on the other hand, when the ratio of the collected value to the background noise value is greater than or equal to the preset ratio, it is further determined whether there is an obstacle within the preset range based on the touch detection result of the touch screen.

[0078] It should be noted that the preset ratio may be determined by conducting experiments on multiple mobile terminals. For example, a mobile phone is placed in a pocket to determine the ratio of the register data value to the background noise value of the mobile phone when the mobile phone is in the pocket. Based on the ratios corresponding to multiple mobile phones, the smallest ratio is selected as the preset ratio.

[0079] It can be understood that when there is no obstacle within the preset range of the mobile terminal, the collection value of the proximity sensor will be closer to the background noise value due to the absence of external interference. Therefore, in the embodiment of the present disclosure, if the ratio of the collection value to the background noise value is less than the preset ratio, it is determined that there is no obstacle within the preset range.

[0080] If the ratio between the collected value and the background noise value is greater than or equal to the preset ratio, the larger collected value may be caused by the pulse phenomenon in the mobile terminal, and thus the ratio between the collected value and the background noise value is greater than or equal to the preset ratio and cannot truly reflect the state of approaching or moving away. Therefore, in this embodiment, when the ratio is greater than or equal to the preset ratio, it is also determined whether there is an obstacle within the preset range according to the touch detection result of the touch screen.

[0081] It can be understood that in this embodiment, based on the ratio between the collected value and the background noise value and the size of the ratio with the preset ratio, it is determined whether there is an obstacle within the preset range of the mobile terminal, which can improve the accuracy of the judgment of the approaching or distant state.

[0082] In one embodiment, determining whether there is the obstacle within the preset range according to the touch detection result of the touch screen includes:

[0083] If the touch detection result indicates that there is a touch signal acting on the touch screen, it is determined that the obstacle exists within the preset range;

[0084] If the touch detection result indicates that there is no touch signal acting on the touch screen, it is determined that there is no obstacle within the preset range.

[0085] In this embodiment, if the ratio between the collected value and the background noise value is greater than or equal to the preset ratio, it is further determined whether there is an obstacle within the preset range according to the touch detection result of the touch screen.

[0086] As mentioned above, since the mobile terminal is in a small space such as a pocket, it is easy to be hit or squeezed, so that the mobile terminal detects the touch signal acting on the touch screen. Therefore, when there is a touch signal acting on the touch screen, it also indicates that there may be an obstacle within the preset range of the mobile terminal; and if the touch detection result indicates that there is no touch signal acting on the touch screen, it means that there may be no obstacle within the preset range.

[0087] As mentioned above, when the ratio between the collected value and the background noise value is greater than or equal to the preset ratio, further determining whether there is an obstacle within the predetermined range based on the touch detection result of the touch screen can improve the accuracy of the approach or distance state judgment.

[0088] In one embodiment, the acquiring of the collected value sensed by the proximity sensor of the mobile terminal in the current environment includes:

[0089] Acquire the collected values ​​continuously sensed by the proximity sensor in the current environment;

[0090] The determining, according to the background noise value and the collection value, whether there is an obstacle within a preset range of the mobile terminal includes:

[0091] Calculating the average of a plurality of the collected values;

[0092] It is determined whether the obstacle is within a preset range of the mobile terminal according to the background noise value and the average value.

[0093] In this embodiment, the mobile terminal acquires multiple collected values ​​continuously sensed by the proximity sensor and calculates the average of the multiple collected values ​​to determine whether there is an obstacle within the preset range according to the average and the background noise value.

[0094] It is understandable that by obtaining the average value, the instability caused by short pulse phenomena inside the mobile terminal can be alleviated, thereby improving the accuracy of determining whether there is an obstacle within the preset range.

[0095] In one embodiment, obtaining the background noise value of the proximity sensor includes:

[0096] The background noise value of the current environment is obtained from a calibration file stored in the mobile terminal at a preset interval.

[0097] As mentioned above, the noise floor value can be obtained through the calibration file of the mobile terminal. The calibration file includes the noise floor value of the proximity sensor corresponding to different optical signal values ​​and / or electrical signal values ​​of the mobile terminal, or under different working environments.

[0098] During the operation of the mobile terminal, the optical signal value and / or electrical signal value, and the working environment are not fixed. For example, the mobile terminal enters the working state from the sleep state based on the automatic update of the software, and the electrical signal value increases. For another example, the mobile terminal changes from the working environment during the day to the working environment at night, etc. Based on the above reasons, the background noise value may change.

[0099] Therefore, the mobile terminal can query the calibration file according to the working parameters of the current environment to obtain the noise floor value suitable for the current environment.

[0100] In this embodiment, the mobile terminal updates the noise floor value currently used by the device from the calibration file at a preset interval, for example, reading the noise floor value from the calibration file once every 4 hours, to ensure that the noise floor value currently used by the device can accurately reflect the actual noise floor of the proximity sensor in the current environment.

[0101] Based on the obtained time-effective background noise value, it is more accurate to determine whether there is an obstacle within a preset range of the mobile terminal according to the background noise value and the collected value.

[0102] In one embodiment, in order to reduce the impact of environmental differences or signal changes on the stability of the background noise value, the background noise values ​​accumulated at different times may be averaged as the current background noise value.

[0103] In addition, it should be noted that, in the embodiment of the present disclosure, the calibration file may also be a file stored in the server, and the mobile terminal obtains the current corresponding background noise value from the server based on the communication with the server.

[0104] In one embodiment, controlling the display of the touch screen according to the result of determining whether there is an obstacle within a preset range of the mobile terminal includes:

[0105] If the determination result indicates that there is no obstacle within the preset range, controlling the touch screen to light up;

[0106] If the determination result indicates that the obstacle is within the preset range, the touch screen is kept off.

[0107] In this embodiment, when the determination result indicates that there are no obstacles within the preset range, it means that the mobile terminal may not be in a small space such as a pocket. At this time, the user may need to view information. Therefore, in order to improve the user experience, the touch screen can be controlled to light up; otherwise, it means that the mobile terminal may be in a small space such as a pocket. At this time, in order to avoid causing misoperation and to save power, the touch screen can be kept off.

[0108] In an embodiment, if the determination result indicates that the obstacle is within the preset range, when a voice access signal is received, the volume of the prompt tone of the mobile terminal may be increased to remind the user.

[0109] In another embodiment, if the user places the mobile terminal in a small space such as a pocket due to temporary circumstances during a voice call, the voice call can be controlled to be closed even if the mobile terminal is adjusted to a place where there is an obstacle within a preset range; and if the user takes out the mobile terminal from a small space such as a pocket based on a prompt sound, the voice call can be controlled to be automatically opened even if the mobile terminal is adjusted to a place where there is no obstacle within the preset range.

[0110] Figure 2 is a flow chart of a method for obtaining a background noise value shown in an embodiment of the present disclosure. Figure 2 As shown, the method for obtaining the background noise value includes the following steps:

[0111] S201, system software is powered on and initialized.

[0112] In this embodiment, the system software power-on initialization means that the mobile terminal is powered on and is in a boot state.

[0113] S202, the proximity sensor is registered and driven, and works normally.

[0114] In this embodiment, after the mobile terminal is powered on, each hardware device completes registration and starts to work normally.

[0115] S203: The anti-mistouch algorithm starts to be initialized.

[0116] In this embodiment, after the proximity sensor in the mobile terminal is registered and driven, the initialization process of the anti-mistaken touch algorithm is started. The anti-mistaken touch algorithm is the screen control method provided by the embodiment of the present disclosure.

[0117] S204, the anti-false touch algorithm loads the noise floor value of the proximity sensor from the file system and determines whether the acquisition is successful; if the acquisition is successful, execute step S205; if the acquisition fails, execute step S206.

[0118] In this embodiment, initialization means that the mobile terminal loads the noise floor value of the proximity sensor from the file system. Specifically, the file system includes a calibration file, and the false touch prevention algorithm obtains the noise floor value of the proximity sensor from the calibration file.

[0119] S205, the anti-mistouch algorithm is initialized.

[0120] In this embodiment, if the bottom noise value is obtained, the false touch prevention algorithm is initialized.

[0121] S206: Initialization of the anti-mistouch algorithm fails.

[0122] If the bottom noise value is not obtained, the initialization of the anti-false touch algorithm fails.

[0123] Taking the mobile terminal as a mobile phone as an example, Figure 3 This is a screen control method flow shown in the embodiment of the present disclosure Figure 2 ,like Figure 3 As shown, the screen control method applied to the mobile phone also includes the following steps:

[0124] S301, continuously read 5 register values ​​of proximity sensor drive outputs.

[0125] In this embodiment, the mobile phone will read five register values ​​continuously, that is, obtain multiple acquisition values ​​sensed by the proximity sensor stored in the register under the current environment.

[0126] S302, performing average processing on the register values ​​of the five proximity sensors.

[0127] In this embodiment, averaging is performed on five proximity sensor register values, that is, the average of multiple collected values ​​is calculated.

[0128] S303: Is the ratio of the averaged data to the acquired background noise greater than or equal to 3? If not, execute step S304; if so, execute step S305.

[0129] In this embodiment, whether the ratio of the averaged data to the acquired background noise is greater than or equal to 3, that is, whether the ratio of the average of the collected values ​​to the background noise value is less than a preset ratio, where 3 is the preset ratio.

[0130] S304: Determine that the mobile phone is not in the pocket and the screen can be turned on.

[0131] In this embodiment, when the ratio of the averaged data to the background noise is less than 3, it is determined that the mobile phone is not in the pocket, that is, there is no obstacle within the preset range of the mobile phone, and therefore the screen of the mobile phone is turned on.

[0132] S305, read the status reported by the touch screen system software to determine whether there is an object touching. If not, execute step S304; if so, execute step S306.

[0133] In this embodiment, when the ratio of the averaged data to the background noise is greater than or equal to 3, it is necessary to further determine whether there is an obstacle within the preset range in combination with the touch detection result of the touch screen.

[0134] Therefore, the mobile phone will read the status reported by the touch screen (touch screen) system software, and the reported status is the touch detection result, which reflects whether an object touches the touch screen.

[0135] S306: Determine that the mobile phone is in the pocket and keep the screen off.

[0136] In this embodiment, when it is determined that no object touches the touch screen, it is determined that the mobile phone is in the pocket, that is, there is an obstacle within the preset range of the mobile phone, and the touch screen is kept off.

[0137] In this embodiment, the background noise value of the proximity sensor and the average of the collected values ​​in the current environment are combined with a threshold to determine whether the mobile phone is in the pocket. When the ratio of the average of the collected values ​​to the background noise value is greater than a preset ratio, the touch detection result of the touch screen is further combined to determine whether the mobile phone is in the pocket. This can improve the accuracy of the proximity sensor in judging the approaching or distant state, thereby improving the control accuracy of the touch screen display, and further improving the accuracy of the mobile terminal's anti-mistouch function.

[0138] Figure 4 FIG. 1 is a diagram showing a screen control device according to an exemplary embodiment. Figure 4 The screen control device is applied to a mobile terminal including a proximity sensor and a touch screen, and includes:

[0139] A first acquisition module 101 is configured to acquire a background noise value of the proximity sensor;

[0140] The second acquisition module 102 is configured to acquire a collection value sensed by the proximity sensor of the mobile terminal in the current environment;

[0141] A determination module 103, configured to determine whether there is an obstacle within a preset range of the mobile terminal according to the background noise value and the collection value;

[0142] The control module 104 is configured to control the display of the touch screen according to the determination result of whether there is an obstacle within the preset range of the mobile terminal.

[0143] Optionally, the determination module 103 is configured to determine that there is no obstacle within the preset range if the ratio of the collected value to the background noise value is less than a preset ratio; if the ratio is greater than or equal to the preset ratio, determine whether there is the obstacle within the preset range based on the touch detection result of the touch screen.

[0144] Optionally, the determination module 103 is specifically configured to determine that the obstacle is within the preset range if the touch detection result indicates that there is a touch signal acting on the touch screen; if the touch detection result indicates that there is no touch signal acting on the touch screen, determine that the obstacle is not within the preset range.

[0145] Optionally, the first acquisition module 101 is specifically configured to acquire a collection value continuously sensed by the proximity sensor in the current environment;

[0146] The determination module is specifically configured to calculate an average of the plurality of collected values; and determine whether there is the obstacle within a preset range of the mobile terminal according to the background noise value and the average.

[0147] Optionally, the first acquisition module 101 is specifically configured to acquire the background noise value of the current environment from a calibration file stored in the mobile terminal at a preset interval.

[0148] Optionally, the control module 104 is specifically configured to control the touch screen to light up if the determination result indicates that there is no obstacle within the preset range; and to keep the touch screen off if the determination result indicates that there is an obstacle within the preset range.

[0149] Regarding the 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.

[0150] Figure 5 8 is a block diagram of a mobile terminal device 800 according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.

[0151] Reference Figure 5 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0152] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0153] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 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.

[0154] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0155] The multimedia component 808 includes a screen that provides an output interface between the device 800 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 808 includes a front camera and / or a rear camera. When the device 800 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.

[0156] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating 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 memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0157] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

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

[0159] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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.

[0160] In an exemplary embodiment, the apparatus 800 may 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 method.

[0161] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 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.

[0162] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables a mobile terminal including a proximity sensor and a touch screen to perform a screen control method, the method comprising:

[0163] Obtaining a background noise value of the proximity sensor;

[0164] Obtaining a collection value sensed by the proximity sensor of the mobile terminal in a current environment;

[0165] Determining whether there is an obstacle within a preset range of the mobile terminal according to the background noise value and the collected value;

[0166] The display of the touch screen is controlled according to a determination result of whether there is an obstacle within a preset range of the mobile terminal.

[0167] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. 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 exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0168] 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 screen control method, It is characterized in that Applied to a mobile terminal including a proximity sensor and a touch screen, the method includes: Acquire a background noise value of the proximity sensor; wherein the background noise value represents a noise value of a working environment of the proximity sensor when there are no obstacles within a preset range of the mobile terminal; Obtaining a collection value sensed by the proximity sensor of the mobile terminal in a current environment; If the ratio of the collected value to the background noise value is less than a preset ratio, it is determined that there is no obstacle within the preset range; If the ratio is greater than or equal to the preset ratio, determining whether there is the obstacle within the preset range according to the touch detection result of the touch screen; The display of the touch screen is controlled according to a determination result of whether there is an obstacle within a preset range of the mobile terminal.

2. The method according to claim 1, It is characterized in that The determining whether there is the obstacle within the preset range according to the touch detection result of the touch screen includes: If the touch detection result indicates that there is a touch signal acting on the touch screen, it is determined that the obstacle exists within the preset range; If the touch detection result indicates that there is no touch signal acting on the touch screen, it is determined that there is no obstacle within the preset range.

3. The method according to claim 1, It is characterized in that The acquiring of the collected value sensed by the proximity sensor of the mobile terminal in the current environment includes: Acquire the collected values ​​continuously sensed by the proximity sensor in the current environment; The determining, according to the background noise value and the collection value, whether there is an obstacle within a preset range of the mobile terminal includes: Calculating the average of a plurality of the collected values; It is determined whether the obstacle is within a preset range of the mobile terminal according to the background noise value and the average value.

4. The method according to claim 1, It is characterized in that The obtaining of the background noise value of the proximity sensor includes: The background noise value of the current environment is obtained from a calibration file stored in the mobile terminal at a preset interval.

5. The method according to claim 1, It is characterized in that The controlling the display of the touch screen according to the result of determining whether there is an obstacle within the preset range of the mobile terminal includes: If the determination result indicates that there is no obstacle within the preset range, controlling the touch screen to light up; If the determination result indicates that the obstacle is within the preset range, the touch screen is kept off.

6. A screen control device, It is characterized in that Applied to a mobile terminal including a proximity sensor and a touch screen, the device includes: A first acquisition module is configured to acquire a background noise value of the proximity sensor; wherein the background noise value represents a noise value of a working environment of the proximity sensor when there are no obstacles within a preset range of the mobile terminal; A second acquisition module is configured to acquire a collection value sensed by the proximity sensor of the mobile terminal in a current environment; A determination module, configured to determine whether there is the obstacle within the preset range if the ratio of the collected value to the background noise value is less than a preset ratio; and to determine whether there is the obstacle within the preset range according to the touch detection result of the touch screen if the ratio is greater than or equal to the preset ratio; The control module is configured to control the display of the touch screen according to the determination result of whether there is an obstacle within a preset range of the mobile terminal.

7. The device according to claim 6, It is characterized in that The determination module is specifically configured to determine that the obstacle is within the preset range if the touch detection result indicates that there is a touch signal acting on the touch screen; and to determine that there is no obstacle within the preset range if the touch detection result indicates that there is no touch signal acting on the touch screen.

8. The device according to claim 6, It is characterized in that The first acquisition module is specifically configured to acquire the collected values ​​continuously sensed by the proximity sensor in the current environment; The determination module is specifically configured to calculate an average of the plurality of collected values; and determine whether there is the obstacle within a preset range of the mobile terminal according to the background noise value and the average.

9. The device according to claim 6, It is characterized in that The first acquisition module is specifically configured to acquire the background noise value of the current environment from a calibration file stored in the mobile terminal at a preset interval.

10. The device according to claim 6, It is characterized in that The control module is specifically configured to control the touch screen to light up if the determination result indicates that there is no obstacle within the preset range; and to keep the touch screen off if the determination result indicates that there is an obstacle within the preset range.

11. A screen control device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the screen control method as claimed in any one of claims 1 to 5.

12. A non-transitory computer-readable storage medium, It is characterized in that When the instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute the screen control method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Calibration method and apparatus for proximity sensor, device, and storage medium

    CN108267728A

  • Calibration method and device of proximity sensor, electronic equipment and storage medium

    CN109840032A

  • Method and device for preventing screen from being touched by mistake, mobile terminal and storage medium

    CN111104001A