CN110392163B - Screen-off control method, mobile terminal and computer-readable storage medium - Google Patents

Screen-off control method, mobile terminal and computer-readable storage medium Download PDF

Info

Publication number
CN110392163B
CN110392163B CN201910702073.8A CN201910702073A CN110392163B CN 110392163 B CN110392163 B CN 110392163B CN 201910702073 A CN201910702073 A CN 201910702073A CN 110392163 B CN110392163 B CN 110392163B
Authority
CN
China
Prior art keywords
touch screen
screen
noise
mobile terminal
raw data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910702073.8A
Other languages
Chinese (zh)
Other versions
CN110392163A (en
Inventor
杨宪昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910702073.8A priority Critical patent/CN110392163B/en
Publication of CN110392163A publication Critical patent/CN110392163A/en
Application granted granted Critical
Publication of CN110392163B publication Critical patent/CN110392163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The embodiment of the application discloses a screen-off control method, a mobile terminal and a computer readable storage medium, wherein the screen-off control method comprises the following steps: acquiring original data of a touch screen under the condition that a voice call is in a connected state and a distance sensor is in a non-working state; judging whether the variable quantity of the original data of the touch screen exceeds a first preset value or not; and under the condition that the variable quantity of the original data of the touch screen exceeds a first preset value, controlling the mobile terminal to turn off the screen. When the voice call is connected, the mobile terminal is controlled to turn off the screen by judging whether the variable quantity of the original data of the touch screen exceeds the set range value or not; the problems that the display screen is invalid and permanently bright spots are caused by overlong irradiation time of the display screen of the conventional mobile terminal are solved; the screen is turned off when the voice call is connected, the electric quantity of the mobile terminal is saved, and the user experience is improved.

Description

Screen-off control method, mobile terminal and computer-readable storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a screen-off control method, a mobile terminal and a computer-readable storage medium.
Background
Along with the continuous popularization of intelligent terminals, the functions of the intelligent terminals are more and more powerful, and people can use the intelligent terminals to perform various activities such as movies and games. At present, mobile terminals have more and more sensors, and the sensors have many core functions, so that the user experience is greatly improved.
The distance sensor (also called a proximity sensor) mainly serves functions of a call, a leather sheath mode and the like in the mobile terminal, for example, the distance sensor can detect the distance between the skin of a user and the mobile terminal in the call, and when the distance is smaller than a certain threshold value, the mobile terminal automatically turns off the screen, so that the phenomenon of mistaken touch caused by the fact that the face of the user is close to a touch screen is avoided, and meanwhile, the electric quantity is saved; and when the distance is larger than a certain threshold value, the mobile terminal is lightened again so that the user can continuously operate the mobile terminal. Similarly, by judging the distance between the leather sheath and the mobile terminal, the functions of turning off the screen after the leather sheath is closed and turning on the screen after the leather sheath is opened can be realized, so that the operation of turning on the screen by a user is easier.
In the existing mobile terminal, the emission and the reception of an infrared lamp of a distance sensor are both placed under a display screen of the mobile terminal, and if the display screen is irradiated by infrared light with the wavelength less than 940nm for one hour, the failure and the permanent bright spots of the display screen can be caused.
Disclosure of Invention
In view of this, an object of the embodiments of the present application is to provide a screen-off control method, a mobile terminal and a computer-readable storage medium, so as to solve the problems of failure and permanent bright spots of a display screen caused by too long illumination time of the display screen in an existing mobile terminal.
The technical scheme adopted by the embodiment of the application for solving the technical problems is as follows:
according to an aspect of an embodiment of the present application, a screen-off control method is provided, which is applied to a mobile terminal, where the mobile terminal is provided with a distance sensor and a touch screen, and the screen-off control method includes:
acquiring original data of a touch screen under the condition that a voice call is in a connected state and a distance sensor is in a non-working state;
judging whether the variable quantity of the original data of the touch screen exceeds a first preset value or not;
and under the condition that the variable quantity of the original data of the touch screen exceeds a first preset value, controlling the mobile terminal to turn off the screen.
In a possible embodiment, the acquiring raw data of the touch screen in a case where the voice call is in an on state and the distance sensor is in an off state further includes:
under the condition that the request of the voice call is received, judging whether the touch screen is in a bright screen state or not;
and under the condition that the touch screen is in a bright screen state, controlling the distance sensor to be in a non-working state.
In a possible embodiment, the acquiring raw data of the touch screen in a case where the voice call is in an on state and the distance sensor is in an off state further includes:
under the condition of receiving the request of the voice call, judging whether the voice call is in a connection state or not;
and under the condition that the voice call is in a connected state, switching the working mode of the touch screen into a high-sensitivity original data detection mode.
In a possible implementation manner, the determining whether a variation caused by raw data of the touch screen exceeds a first preset value further includes:
and carrying out noise processing on the raw data of the touch screen according to the determined noise processing method of the raw data of the touch screen.
In a possible implementation manner, the noise processing method according to the determined raw data performs noise processing on the raw data of the touch screen, and before the noise processing method, the method further includes:
and determining a noise processing method of the raw data of the touch screen according to the variable quantity of the noise on the raw data of the touch screen.
In a possible implementation manner, the noise processing method for determining raw data of the touch screen according to an amount of change caused by noise to the raw data of the touch screen includes:
determining the level of the noise according to the variable quantity of the noise on the original data of the touch screen and the corresponding relation between the variable quantity of the noise on the original data of the touch screen and the noise level;
and determining a noise processing method of the raw data of the touch screen from a plurality of noise processing methods according to the level of the noise and the corresponding relation between the noise level and the noise processing method.
In a possible implementation manner, the method for processing noise to determine raw data of the touch screen according to an amount of change caused by noise to the raw data of the touch screen further includes:
and under the condition that the variation caused by the noise to the original data of the touch screen exceeds a preset threshold value, determining to perform noise elimination processing on the original data of the touch screen.
In a possible implementation manner, in the case that the variation of the raw data of the touch screen exceeds a first preset value, the controlling the mobile terminal to turn off the screen further includes:
re-acquiring original data of the touch screen;
judging whether the variation of the newly acquired original data of the touch screen exceeds a second preset value or not;
and under the condition that the variation of the newly acquired original data of the touch screen exceeds a second preset value, controlling the distance sensor to be in a working state, so that the distance sensor controls the mobile terminal to be on.
According to another aspect of the embodiments of the present application, there is provided a mobile terminal, where the mobile terminal includes a memory, a processor, and a screen-off control program stored in the memory and executable on the processor, and the screen-off control program implements the steps of the screen-off control method when executed by the processor.
According to another aspect of the embodiments of the present application, there is provided a computer-readable storage medium having a screen-off control program stored thereon, where the screen-off control program, when executed by a processor, implements the steps of the screen-off control method described above.
According to the screen-off control method, the mobile terminal and the computer-readable storage medium, when the voice call is connected, the mobile terminal is controlled to screen off by judging whether the variable quantity of the original data of the touch screen exceeds the set range value; the problems that the display screen is invalid and permanently bright spots are caused by overlong irradiation time of the display screen of the conventional mobile terminal are solved; the screen is turned off when the voice call is connected, the electric quantity of the mobile terminal is saved, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a screen-off control method according to a first embodiment of the present application;
fig. 4 is a schematic diagram of a screen-off control process of a smart phone according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present application clearer and clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a PDA (Personal Digital Assistant), a PMP (Portable Media Player), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving GateWay) 2034, a PGW (PDN GateWay) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
As shown in fig. 3, a first embodiment of the present application provides a screen-off control method, which is applied to a mobile terminal, where the mobile terminal is provided with a distance sensor and a touch screen, and the screen-off control method includes:
and step S31, acquiring raw data of the touch screen under the condition that the voice call is in the on state and the distance sensor is in the off state.
In this embodiment, the raw data of the touch screen is a signal obtained by processing an induction signal acquired by a certain induction terminal by a touch chip, such as sampling, analog-to-digital conversion, quadrature demodulation, and the like.
In one embodiment, the acquiring raw data of the touch screen in a case where the voice call is in an on state and the distance sensor is in an off state further includes:
under the condition that the request of the voice call is received, judging whether the touch screen is in a bright screen state or not;
and under the condition that the touch screen is in a bright screen state, controlling the distance sensor to be in a non-working state.
In this embodiment, in order to avoid that the touch screen of the mobile terminal is irradiated by the infrared lamp in the distance sensor for too long time, thereby causing failure and permanent bright spots of the touch screen, it is necessary to keep the distance sensor in a non-operating state when the touch screen is in a bright screen state.
In one embodiment, the acquiring raw data of the touch screen in a case where the voice call is in an on state and the distance sensor is in an off state further includes:
under the condition of receiving the request of the voice call, judging whether the voice call is in a connection state or not;
and under the condition that the voice call is in a connected state, switching the working mode of the touch screen into a high-sensitivity original data detection mode.
In this embodiment, when the touch screen is in the high-sensitivity raw data detection mode, when the user answers a voice call, the face of the person gradually approaches the touch screen, and at this time, the person acts as a conductor, and the raw data of the touch screen changes.
And step S32, judging whether the variation of the original data of the touch screen exceeds a first preset value.
In this embodiment, after the raw data of the touch screen is detected, it is necessary to determine whether the variation of the raw data of the touch screen exceeds a set range value. And subtracting the reference data from the original data of the touch screen to obtain the variable quantity of the original data.
In an embodiment, the determining whether the variation caused by the raw data of the touch screen exceeds a first preset value further includes:
and carrying out noise processing on the raw data of the touch screen according to the determined noise processing method of the raw data of the touch screen.
In this embodiment, noise may be present in the raw data, resulting in noise, such as common mode noise, being present in the raw data set. It is therefore desirable to denoise the raw data in the raw data set to eliminate or reduce the effect of noise on the raw data.
In one embodiment, the noise processing method according to the determined raw data performs noise processing on the raw data of the touch screen, and previously includes:
and determining a noise processing method of the raw data of the touch screen according to the variable quantity of the noise on the raw data of the touch screen.
In this embodiment, the variation caused by the noise to the raw data of the touch screen may be a variation caused by the noise to the amplitude of the raw data, that is, an amplitude variation caused by the noise to the raw data; or may be a variation caused by noise to the phase of the original data, i.e., a variation caused by noise to the phase of the original data; or may include both of the foregoing variations, and is not particularly limited herein.
In one embodiment, the noise processing method for determining raw data of the touch screen according to an amount of change caused by noise to the raw data of the touch screen includes:
determining the level of the noise according to the variable quantity of the noise on the original data of the touch screen and the corresponding relation between the variable quantity of the noise on the original data of the touch screen and the noise level;
and determining a noise processing method of the raw data of the touch screen from a plurality of noise processing methods according to the level of the noise and the corresponding relation between the noise level and the noise processing method.
In this embodiment, there are various noise processing methods, and if only one noise processing method is used to process the noise of the original data, an ideal noise cancellation effect may not be achieved, and even a side effect may be generated.
Therefore, in the present embodiment, through the pre-configured correspondence relationship between the variation caused by the noise to the raw data of the touch screen and the noise level and the correspondence relationship between the noise level and the noise processing method, after the variation caused by the noise to the raw data of the touch screen is determined, the corresponding noise processing method can be determined by searching the correspondence relationship.
As An example, it is assumed that the noise causes a variation of a (a1, a2.. An), a noise level of B (B1, B2.. Bn), and a noise processing method of C (C1, C2... Cn) to raw data of the touch screen. The corresponding relations among the three are (a1, B1, C1), (a2, B2, C2), (An, Bn, Cn). Assuming that the variation of the noise on the raw data of the touch screen is a2, the noise level is B2 and the noise processing method is C2.
The correspondence relationship (the correspondence relationship between the variation caused by the noise to the raw data of the touch panel and the noise level, and the correspondence relationship between the noise level and the noise processing method) may be obtained by performing a plurality of cancellation tests on different variations by using different noise processing methods.
In one embodiment, the method for processing noise to determine raw data of the touch screen according to an amount of change caused by noise to the raw data of the touch screen further includes:
and under the condition that the variation caused by the noise to the original data of the touch screen exceeds a preset threshold value, determining to perform noise elimination processing on the original data of the touch screen.
In this embodiment, when the amount of variation caused by noise to the raw data of the touch screen is greater than or equal to a preset threshold, it is determined that noise cancellation processing is performed on the raw data of the touch screen; otherwise, determining not to perform noise elimination processing on the raw data of the touch screen. By this embodiment, side effects caused by noise cancellation of the original values that do not require noise processing can be avoided.
And step S33, controlling the mobile terminal to turn off the screen under the condition that the variation of the original data of the touch screen exceeds a first preset value.
In this embodiment, when the variation of the raw data of the touch screen exceeds a set range value, the mobile terminal is controlled to turn off the screen. Therefore, on one hand, the screen is turned off when the voice call is connected, and on the other hand, the electric quantity of the mobile terminal is saved.
In one embodiment, in the case that the variation of the raw data of the touch screen exceeds a first preset value, the controlling the mobile terminal to turn off the screen further includes:
re-acquiring original data of the touch screen;
judging whether the variation of the newly acquired original data of the touch screen exceeds a second preset value or not;
and under the condition that the variation of the newly acquired original data of the touch screen exceeds a second preset value, controlling the distance sensor to be in a working state, so that the distance sensor controls the mobile terminal to be on.
In this embodiment, after the voice call is ended, the human face gradually moves away from the touch screen, and the difference of the original data of the touch screen becomes larger; at this time, it can be determined that the touch screen is in a state of being away from the touch screen, the distance sensor is enabled, and the screen lighting function is realized through the dynamic calibration function of the distance sensor.
In order to better explain the screen-off control process of the mobile terminal in the embodiment of the present application, a smart phone is taken as an example to be described below:
as shown in fig. 4, first, when the smart phone is on screen, the distance sensor under the control screen is in a non-working state;
when the telephone is connected, the telephone flag bit is set to be 1;
the touch screen receives the connected zone bit 1 and transmits the zone bit to the bottom layer touch screen for driving; the bottom layer touch screen drive switches the working mode of the touch screen into a high-sensitivity Raw Data detection mode according to the zone bit;
if the face is close to the smart phone, setting the status flag bit to be 1; otherwise, continuing to detect and judge;
then controlling the smart phone to turn off the screen according to the state flag bit;
after the voice call is finished, if the face leaves the smart phone, the reset state flag bit is 0;
enabling the distance sensor, namely controlling the distance sensor under the screen to be in a working state;
and finally, controlling the smart phone to be on screen through the under-screen distance sensor.
According to the screen turn-off control method, when the voice call is connected, the mobile terminal is controlled to turn off the screen by judging whether the variable quantity of the original data of the touch screen exceeds the set range value; the problems that the display screen is invalid and permanently bright spots are caused by overlong irradiation time of the display screen of the conventional mobile terminal are solved; the screen is turned off when the voice call is connected, the electric quantity of the mobile terminal is saved, and the user experience is improved.
Second embodiment
As shown in fig. 5, a second embodiment of the present application provides a mobile terminal, where the mobile terminal includes a memory 41, a processor 42, and a screen-off control program stored on the memory 41 and executable on the processor 42, and when the screen-off control program is executed by the processor 42, the mobile terminal is configured to implement the following steps of the screen-off control method:
acquiring original data of a touch screen under the condition that a voice call is in a connected state and a distance sensor is in a non-working state;
judging whether the variable quantity of the original data of the touch screen exceeds a first preset value or not;
and under the condition that the variable quantity of the original data of the touch screen exceeds a first preset value, controlling the mobile terminal to turn off the screen.
The screen-off control program, when executed by the processor 42, is further configured to implement the following steps of the screen-off control method:
under the condition that the voice call is in a connection state and the distance sensor is in a non-working state, acquiring raw data of the touch screen, wherein the method comprises the following steps:
under the condition that the request of the voice call is received, judging whether the touch screen is in a bright screen state or not;
and under the condition that the touch screen is in a bright screen state, controlling the distance sensor to be in a non-working state.
The screen-off control program, when executed by the processor 42, is further configured to implement the following steps of the screen-off control method:
under the condition that the voice call is in a connection state and the distance sensor is in a non-working state, acquiring raw data of the touch screen, wherein the method comprises the following steps:
under the condition of receiving the request of the voice call, judging whether the voice call is in a connection state or not;
and under the condition that the voice call is in a connected state, switching the working mode of the touch screen into a high-sensitivity original data detection mode.
The screen-off control program, when executed by the processor 42, is further configured to implement the following steps of the screen-off control method:
the determining whether the variation caused by the original data of the touch screen exceeds a first preset value further includes:
and carrying out noise processing on the raw data of the touch screen according to the determined noise processing method of the raw data of the touch screen.
The screen-off control program, when executed by the processor 42, is further configured to implement the following steps of the screen-off control method:
the noise processing method according to the determined raw data performs noise processing on the raw data of the touch screen, and the method also comprises the following steps:
and determining a noise processing method of the raw data of the touch screen according to the variable quantity of the noise on the raw data of the touch screen.
The screen-off control program, when executed by the processor 42, is further configured to implement the following steps of the screen-off control method:
the noise processing method for determining the raw data of the touch screen according to the variation caused by noise to the raw data of the touch screen comprises the following steps:
determining the level of the noise according to the variable quantity of the noise on the original data of the touch screen and the corresponding relation between the variable quantity of the noise on the original data of the touch screen and the noise level;
and determining a noise processing method of the raw data of the touch screen from a plurality of noise processing methods according to the level of the noise and the corresponding relation between the noise level and the noise processing method.
The screen-off control program, when executed by the processor 42, is further configured to implement the following steps of the screen-off control method:
the noise processing method for determining the raw data of the touch screen according to the variation caused by noise to the raw data of the touch screen further comprises the following steps:
and under the condition that the variation caused by the noise to the original data of the touch screen exceeds a preset threshold value, determining to perform noise elimination processing on the original data of the touch screen.
The screen-off control program, when executed by the processor 42, is further configured to implement the following steps of the screen-off control method:
under the condition that the variation of the original data of the touch screen exceeds a first preset value, controlling the mobile terminal to turn off the screen, and then further comprising:
re-acquiring original data of the touch screen;
judging whether the variation of the newly acquired original data of the touch screen exceeds a second preset value or not;
and under the condition that the variation of the newly acquired original data of the touch screen exceeds a second preset value, controlling the distance sensor to be in a working state, so that the distance sensor controls the mobile terminal to be on.
When the voice call is connected, the mobile terminal controls the mobile terminal to turn off the screen by judging whether the variable quantity of the original data of the touch screen exceeds a set range value or not; the problems that the display screen is invalid and permanently bright spots are caused by overlong irradiation time of the display screen of the conventional mobile terminal are solved; the screen is turned off when the voice call is connected, the electric quantity of the mobile terminal is saved, and the user experience is improved.
Third embodiment
A third embodiment of the present application provides a computer-readable storage medium, which stores a screen-off control program, and the screen-off control program is used to implement the steps of the screen-off control method according to the first embodiment when being executed by a processor.
It should be noted that the computer-readable storage medium of this embodiment belongs to the same concept as the method of the first embodiment, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are all correspondingly applicable in this embodiment, which is not described herein again.
When the voice call is connected, the computer-readable storage medium controls the mobile terminal to turn off the screen by judging whether the variable quantity of the original data of the touch screen exceeds a set range value; the problems that the display screen is invalid and permanently bright spots are caused by overlong irradiation time of the display screen of the conventional mobile terminal are solved; the screen is turned off when the voice call is connected, the electric quantity of the mobile terminal is saved, and the user experience is improved.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and are not intended to limit the scope of the claims of the application accordingly. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present application are intended to be within the scope of the claims of the present application.

Claims (9)

1. A screen-off control method is applied to a mobile terminal, and the mobile terminal is provided with a distance sensor and a touch screen, and is characterized by comprising the following steps:
acquiring original data of a touch screen under the condition that a voice call is in a connected state and a distance sensor is in a non-working state;
judging whether the variable quantity of the original data of the touch screen exceeds a first preset value or not;
under the condition that the variable quantity of the original data of the touch screen exceeds a first preset value, controlling the mobile terminal to turn off the screen;
re-acquiring original data of the touch screen;
judging whether the variation of the newly acquired original data of the touch screen exceeds a second preset value or not;
and under the condition that the variation of the newly acquired original data of the touch screen exceeds a second preset value, controlling the distance sensor to be in a working state, so that the distance sensor controls the mobile terminal to be on.
2. The screen-off control method according to claim 1, wherein the acquiring raw data of the touch screen in a case where the voice call is in an on state and the distance sensor is in an off state further comprises:
under the condition that the request of the voice call is received, judging whether the touch screen is in a bright screen state or not;
and under the condition that the touch screen is in a bright screen state, controlling the distance sensor to be in a non-working state.
3. The screen-off control method according to claim 1, wherein the acquiring raw data of the touch screen in a case where the voice call is in an on state and the distance sensor is in an off state further comprises:
under the condition of receiving the request of the voice call, judging whether the voice call is in a connection state or not;
and under the condition that the voice call is in a connected state, switching the working mode of the touch screen into a high-sensitivity original data detection mode.
4. The screen-off control method according to claim 1, wherein the determining whether the variation of the raw data of the touch screen exceeds a first preset value further comprises:
and carrying out noise processing on the raw data of the touch screen according to the determined noise processing method of the raw data of the touch screen.
5. The screen-off control method according to claim 4, wherein the noise processing method according to the determined raw data of the touch screen performs noise processing on the raw data of the touch screen, and further comprises:
and determining a noise processing method of the raw data of the touch screen according to the variable quantity of the noise on the raw data of the touch screen.
6. The screen-off control method according to claim 5, wherein the noise processing method for determining the raw data of the touch screen according to the variation caused by noise to the raw data of the touch screen comprises:
determining the level of the noise according to the variable quantity of the noise on the original data of the touch screen and the corresponding relation between the variable quantity of the noise on the original data of the touch screen and the noise level;
and determining a noise processing method of the raw data of the touch screen from a plurality of noise processing methods according to the level of the noise and the corresponding relation between the noise level and the noise processing method.
7. The screen-off control method according to claim 5, wherein the noise processing method for determining the raw data of the touch screen according to the variation caused by the noise to the raw data of the touch screen further comprises:
and under the condition that the variation caused by the noise to the original data of the touch screen exceeds a preset threshold value, determining to perform noise elimination processing on the original data of the touch screen.
8. A mobile terminal, characterized in that the mobile terminal comprises a memory, a processor and a screen-out control program stored on the memory and executable on the processor, the screen-out control program, when executed by the processor, implementing the steps of the screen-out control method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an off-screen control program that, when executed by a processor, implements the steps of the off-screen control method according to any one of claims 1 to 7.
CN201910702073.8A 2019-07-31 2019-07-31 Screen-off control method, mobile terminal and computer-readable storage medium Active CN110392163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910702073.8A CN110392163B (en) 2019-07-31 2019-07-31 Screen-off control method, mobile terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910702073.8A CN110392163B (en) 2019-07-31 2019-07-31 Screen-off control method, mobile terminal and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN110392163A CN110392163A (en) 2019-10-29
CN110392163B true CN110392163B (en) 2021-09-07

Family

ID=68288105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910702073.8A Active CN110392163B (en) 2019-07-31 2019-07-31 Screen-off control method, mobile terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110392163B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124173B (en) * 2019-11-22 2023-05-16 Oppo(重庆)智能科技有限公司 Working state switching method and device of touch screen, mobile terminal and storage medium
CN112035050B (en) * 2020-09-10 2022-03-04 Oppo(重庆)智能科技有限公司 Control method, control device, storage medium and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629183A (en) * 2012-02-29 2012-08-08 华为终端有限公司 Terminal screen control method and device
US9173086B2 (en) * 2012-07-17 2015-10-27 Samsung Electronics Co., Ltd. Method and apparatus for preventing screen off during automatic response system service in electronic device
CN108833694A (en) * 2018-06-06 2018-11-16 Oppo广东移动通信有限公司 Control method, control device, electronic device, computer storage medium and equipment
CN109361815A (en) * 2018-09-26 2019-02-19 Oppo广东移动通信有限公司 Light on and off screen control method, device and the electronic equipment of electronic equipment
CN109710109A (en) * 2018-12-28 2019-05-03 Oppo广东移动通信有限公司 Control method, control device, electronic device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8866735B2 (en) * 2010-12-16 2014-10-21 Motorla Mobility LLC Method and apparatus for activating a function of an electronic device
CN106097984B (en) * 2016-08-15 2019-09-27 Oppo广东移动通信有限公司 The method, device and mobile terminal of proximity sensor are opened in backlight adjustment
CN106200989B (en) * 2016-09-08 2019-11-12 广东小天才科技有限公司 A kind of method and device of the bright screen of mobile terminal
CN108521480B (en) * 2018-03-28 2020-03-20 Oppo广东移动通信有限公司 Control method, control device, electronic device, computer storage medium, and apparatus
CN109391735A (en) * 2018-09-26 2019-02-26 Oppo广东移动通信有限公司 The control method and device of electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629183A (en) * 2012-02-29 2012-08-08 华为终端有限公司 Terminal screen control method and device
US9173086B2 (en) * 2012-07-17 2015-10-27 Samsung Electronics Co., Ltd. Method and apparatus for preventing screen off during automatic response system service in electronic device
CN108833694A (en) * 2018-06-06 2018-11-16 Oppo广东移动通信有限公司 Control method, control device, electronic device, computer storage medium and equipment
CN109361815A (en) * 2018-09-26 2019-02-19 Oppo广东移动通信有限公司 Light on and off screen control method, device and the electronic equipment of electronic equipment
CN109710109A (en) * 2018-12-28 2019-05-03 Oppo广东移动通信有限公司 Control method, control device, electronic device and storage medium

Also Published As

Publication number Publication date
CN110392163A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN111708503B (en) Screen projection control method, device and computer readable storage medium
CN109348067B (en) Method for adjusting screen display brightness, mobile terminal and computer readable storage medium
CN109032741B (en) Terminal screen brightness adjusting method, mobile terminal and storage medium
CN109005574B (en) Cell selection method, mobile terminal and computer readable storage medium
CN107463243B (en) Screen control method, mobile terminal and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN110401870B (en) Method for adjusting screen recording frame rate, terminal and computer readable storage medium
CN112004174A (en) Noise reduction control method and device and computer readable storage medium
CN111880349A (en) Electrochromic display control method, device and computer readable storage medium
CN108307073B (en) Screen brightness adjusting method, mobile terminal and computer readable storage medium
CN107707755B (en) Key using method, terminal and computer readable storage medium
CN110052024B (en) Game vibration adjusting method, adjusting device, mobile terminal and storage medium
CN110392163B (en) Screen-off control method, mobile terminal and computer-readable storage medium
CN108541046B (en) Network selection method, terminal and storage medium
CN112102780B (en) Display frame rate regulation and control method, device and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN112311934A (en) Data card switching method, intelligent terminal and computer readable storage medium
CN109831577B (en) Network connection method, terminal, and computer-readable storage medium
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN109068314B (en) Operator configuration file switching method, intelligent device and readable storage medium
CN107743204B (en) Exposure processing method, terminal, and computer-readable storage medium
CN107580106B (en) Call control method, mobile terminal and computer readable storage medium
CN107360599B (en) Intelligent wifi networking method and mobile terminal
CN110266991B (en) Video call method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant