Black screen gesture processing method, device, electronic device and storage medium

By detecting the black screen gesture function in electronic devices and switching modes, the problem of abnormal failure of black screen gestures is solved, efficient handling of abnormal touch screen events is achieved, and user experience is improved.

CN114258520BActive Publication Date: 2025-05-06SHENZHEN HEYTAP TECHNOLOGY CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201980099362.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-08
Publication Date
2025-05-06
Estimated Expiration
2039-10-08

AI Technical Summary

Technical Problem

When the black screen gesture function is enabled by the electronic device, abnormal touch screen events may lead to false recognition and doze status, resulting in abnormal black screen gesture failure.

Method used

When the electronic device is in the first mode, it is detected whether the black screen gesture function is turned on, and if it is turned on, switch to the second mode. In the second mode, when a touch screen abnormal event is detected, the exception event is handled using a second processing method with high priority.

Benefits of technology

By switching modes and adopting high-priority processing methods, the problem of abnormal failure of black screen gestures is solved, ensuring that electronic devices can respond to black screen gestures entered by users in a timely manner and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114258520B_ABST
    Figure CN114258520B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and storage medium for processing black screen gestures. The method is applied to an electronic device, which includes a touch screen, and the method includes: when the electronic device is in a first mode, detecting whether the black screen gesture function of the electronic device is turned on, the first mode is to detect an abnormal event on the touch screen, and use a first processing method to process the abnormal event, and when it is detected that the black screen gesture function is turned on, the first mode is switched to the second mode, and the second mode is to detect an abnormal event on the touch screen, and use a second processing method to process the abnormal event, wherein the second processing method has a higher priority for processing abnormal events than the first processing method. The embodiment of the present application solves the problem of abnormal failure of black screen gestures by switching from the first mode to the second mode when the electronic device is in the first mode and detecting that the black screen gesture function is turned on.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to a method, device, electronic device and storage medium for processing black screen gestures. Background Art

[0002] With the development of science and technology, electronic devices are used more and more widely, with more and more functions, and have become one of the necessities in people's daily life. At present, electronic devices provide people with a convenient input method by adopting touch technology, which brings great convenience. Summary of the invention

[0003] In view of the above problems, the present application proposes a method, device, electronic device and storage medium for processing black screen gestures to solve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a method for processing a black screen gesture, which is applied to an electronic device, wherein the electronic device includes a touch screen, and the method includes: when the electronic device is in a first mode, detecting whether a black screen gesture function of the electronic device is turned on, and the first mode is to use a first processing method to process the abnormal event when an abnormal event occurs on the touch screen; when it is detected that the black screen gesture function is turned on, switching from the first mode to a second mode, and the second mode is to use a second processing method to process the abnormal event when an abnormal event occurs on the touch screen, wherein the second processing method has a higher processing priority for the abnormal event than the first processing method.

[0005] In a second aspect, an embodiment of the present application provides a device for processing a black screen gesture, which is applied to an electronic device, wherein the electronic device includes a touch screen, and the device includes: a black screen gesture function detection module, which is used to detect whether the black screen gesture function of the electronic device is turned on when the electronic device is in a first mode, and the first mode is to use a first processing method to process the abnormal event when an abnormal event occurs on the touch screen; a mode switching module, which is used to switch from the first mode to the second mode when it is detected that the black screen gesture function is turned on, and the second mode is to use a second processing method to process the abnormal event when an abnormal event occurs on the touch screen, wherein the second processing method has a higher priority for processing the abnormal event than the first processing method.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, including a touch screen, a memory and a processor, wherein the touch screen and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.

[0008] The embodiments of the present application provide a method, device, electronic device and storage medium for processing black screen gestures. When the electronic device is in a first mode, it is detected whether the black screen gesture function of the electronic device is turned on. The first mode is to use a first processing method to process the abnormal event when an abnormal event occurs on the touch screen. When it is detected that the black screen gesture function is turned on, the first mode is switched to a second mode. The second mode is to use a second processing method to process the abnormal event when an abnormal event occurs on the touch screen. The second processing method has a higher processing priority for abnormal events than the first processing method. Therefore, the embodiment solves the problem of abnormal failure of the black screen gesture by switching from the first mode to the second mode if it is detected that the black screen gesture function is turned on when the electronic device is in the first mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0010] Figure 1 A schematic diagram showing a process flow of a method for processing a black screen gesture provided by an embodiment of the present application is shown;

[0011] Figure 2 A schematic diagram showing a flow chart of a method for processing a black screen gesture provided by yet another embodiment of the present application;

[0012] Figure 3 This application shows that the Figure 2 The flowchart of step S230 of the method for processing a black screen gesture is shown as an embodiment;

[0013] Figure 4 This application shows that the Figure 2 A flowchart diagram of another embodiment of step S230 of the method for processing a black screen gesture is shown;

[0014] Figure 5 This application shows that the Figure 2 FIG. 1 is a flow chart of another embodiment of step S230 of the method for processing a black screen gesture;

[0015] Figure 6 This application shows that the Figure 2 The flowchart of step S250 of the method for processing a black screen gesture is shown;

[0016] Figure 7 This application shows that the Figure 6 The flowchart of step S252 of the method for processing a black screen gesture is shown;

[0017] Figure 8 A schematic flow chart of a method for processing a black screen gesture provided by another embodiment of the present application is shown;

[0018] Fig. 9 A schematic diagram of an interface of an electronic device provided in an embodiment of the present application is shown;

[0019] Fig.10 A module block diagram of a black screen gesture processing device provided in an embodiment of the present application is shown;

[0020] Fig.11 A block diagram of an electronic device according to an embodiment of the present application for executing a method for processing a black screen gesture according to an embodiment of the present application is shown;

[0021] Fig.12 A storage unit for storing or carrying a program code for implementing a method for processing a black screen gesture according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0023] At present, electronic devices provide people with a convenient input method by adopting touch technology, which brings great convenience to people. Among them, with the development of electronic device technology, the functions developed based on touch screens are also increasing. Black screen gestures are one of the most representative and technologically futuristic ones. The so-called black screen gesture refers to the function that when the electronic device does not light up the screen, the user can draw some specific patterns on the touch screen to quickly open a certain application. However, while the black screen gesture brings convenience to users, it also causes some problems. For example, when the electronic device turns on the black screen gesture function, if an abnormal event occurs on the touch screen, it may cause a low probability of misidentification as a touch that has been pressed on the surface of the touch screen. Then, the touch screen will think that there is an object (finger, touch pen, etc.) pressing on the surface of the touch screen, and will not respond to other black screen gesture events, causing the touch screen to be forced into the doze state, resulting in no response to real touch events.

[0024] In view of the above problems, the inventor has discovered after long-term research and proposed a method, device, electronic device and storage medium for processing black screen gestures provided in the embodiments of the present application. When the electronic device is in the first mode, if it is detected that the black screen gesture function is turned on, the first mode is switched to the second mode to solve the problem of abnormal failure of the black screen gesture. The specific method for processing the black screen gesture is described in detail in the subsequent embodiments.

[0025] See also Figure 1 , Figure 1 The flowchart of a method for processing a black screen gesture provided by an embodiment of the present application is shown. The method is used to solve the problem of abnormal failure of black screen gestures by switching from the first mode to the second mode when the electronic device is in the first mode and detecting that the black screen gesture function is turned on. In a specific embodiment, the method for processing a black screen gesture is applied to Fig.10 The processing device 200 for black screen gesture and the electronic device 100 ( Fig.11 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment can be a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited here. Figure 1 The process shown is described in detail, wherein the electronic device includes a touch screen, and the method for processing the black screen gesture may specifically include the following steps:

[0026] Step S110: When the electronic device is in a first mode, detecting whether a black screen gesture function of the electronic device is turned on, wherein the first mode is to process the abnormal event in a first processing manner when an abnormal event is detected on the touch screen.

[0027] In some embodiments, the electronic device may be in the first mode by default, that is, the electronic device may default to using the first processing method to handle the abnormal event when an abnormal event occurs on the touch screen. The electronic device may be in the first mode based on the user's settings, that is, the electronic device may receive the setting instructions input by the user, and based on the user's setting instructions, when an abnormal event occurs on the touch screen, the electronic device may use the first processing method to handle the abnormal event. The electronic device may also be in the first mode based on a pre-set rule, that is, the electronic device may use the first processing method to handle the abnormal event when an abnormal event occurs on the touch screen based on the pre-set rule. Of course, in this embodiment, the electronic device may also be in the first mode based on more other methods, which are not limited here.

[0028] In this embodiment, the pre-set rule may include automatically being in the first mode at a preset time, automatically being in the first mode at a preset scene, etc., which are not limited here. Specifically, when the pre-set rule is to automatically be in the first mode at a preset time, then the electronic device can, for example, automatically be in the first mode between 9 am and 9 pm every day. When the pre-set rule is to automatically be in the first mode at a preset scene, then the electronic device can, for example, automatically be in the first mode in a preset area, automatically be in the first mode in a preset place, automatically be in the first mode at a preset light intensity, automatically be in the first mode at a preset temperature, etc., which are not limited here.

[0029] In some embodiments, when the electronic device is in the first mode, it can detect whether the black screen gesture function of the electronic device is turned on, wherein it can be understood that when the black screen gesture function of the electronic device is turned on, it means that when the electronic device is not in the state of lighting the screen, the user can draw some specific patterns on the touch screen to quickly open an application, and when the black screen gesture function of the electronic device is turned off, it means that when the electronic device is not in the state of lighting the screen, the user cannot draw specific patterns on the touch screen to quickly open an application.

[0030] As a method, the electronic device can turn off the black screen gesture function of the electronic device by default to reduce the power consumption of the electronic device. Therefore, when the electronic device is in the first mode, it can detect whether the electronic device has received a black screen gesture function activation instruction, and respond to the black screen gesture function activation instruction to activate the black screen gesture function. Among them, the black screen gesture function activation instruction can be input by the user, for example, the black screen gesture function activation instruction can be voice information input by the user, text information input by the user, or selection information input by the user, etc., which is not limited here. In addition, the black screen gesture function activation instruction can also be automatically triggered according to a pre-set rule, for example, the black screen gesture function activation instruction can be automatically triggered at a specified time, can be automatically triggered in a specified scene, etc., which is not limited here.

[0031] Step S120: When it is detected that the black screen gesture function is turned on, the first mode is switched to the second mode. The second mode is that when an abnormal event is detected on the touch screen, a second processing method is used to process the abnormal event, wherein the second processing method has a higher processing priority for the abnormal event than the first processing method.

[0032] In some embodiments, when the detection result indicates that the black screen gesture function is turned on, the electronic device switches from the first mode to the second mode, that is, when the black screen gesture function is detected to be turned on, the electronic device can be converted from processing the abnormal event by the first processing method to processing the abnormal event by the second processing method, wherein the processing priority of the abnormal event by the second processing method is higher than the processing priority of the abnormal event by the first processing method. Therefore, in this embodiment, when the detection result indicates that the black screen gesture function is turned on, it indicates that the current electronic device can respond to the black screen gesture input by the user. Therefore, when an abnormal event occurs on the touch screen, the abnormal event can be processed first to solve the problem of abnormal failure of the black screen gesture as soon as possible, and prevent the electronic device from not responding to the black screen gesture input by the user for a long time, affecting the user experience; when the detection result indicates that the black screen gesture function is turned off, it indicates that the current electronic device itself does not respond to the black screen gesture input by the user. Therefore, when an abnormal event occurs on the touch screen, the abnormal event can be processed when the electronic device meets the preset conditions to meet the normal function of the electronic device in different scenarios.

[0033] For example, in this embodiment, when the electronic device is in the first mode, that is, when the black screen gesture function of the electronic device is not turned on, if an abnormal event occurs on the touch screen, it can be detected whether the electronic device meets the preset conditions, and when the electronic device meets the preset conditions, the abnormal event is processed. When the electronic device is in the second mode, that is, when the black screen gesture function of the electronic device is turned on, when an abnormal event occurs on the touch screen, the abnormal event can be processed immediately, that is, the processing real-time performance of the second processing method is higher than the processing real-time performance corresponding to the first processing method.

[0034] For another example, in this embodiment, when the electronic device is in the first mode, that is, when the black screen gesture function of the electronic device is not turned on, when an abnormal event occurs on the touch screen, it is possible to detect whether the electronic device meets the first preset condition, and when the electronic device meets the first preset condition, the abnormal event is processed. When the electronic device is in the second mode, that is, when the black screen gesture function of the electronic device is turned on, when an abnormal event occurs on the touch screen, it is possible to detect whether the electronic device meets the second preset condition, and when the electronic device meets the second preset condition, the abnormal event is processed. When the first preset condition is different from the second preset condition, the waiting time required for the first preset condition is longer than the waiting time required for the second preset condition, that is, the processing real-time performance of the second processing method is higher than the processing real-time performance corresponding to the first processing method.

[0035] An embodiment of the present application provides a method for processing a black screen gesture. When the electronic device is in a first mode, it is detected whether the black screen gesture function of the electronic device is turned on. The first mode is to detect that an abnormal event occurs on the touch screen and use a first processing method to process the abnormal event. When it is detected that the black screen gesture function is turned on, the first mode is switched to a second mode. The second mode is to detect that an abnormal event occurs on the touch screen and use a second processing method to process the abnormal event. The second processing method has a higher processing priority for abnormal events than the first processing method. Therefore, the embodiment solves the problem of abnormal failure of the black screen gesture by switching from the first mode to the second mode if it is detected that the black screen gesture function is turned on when the electronic device is in the first mode.

[0036] See also Figure 2 , Figure 2 A schematic diagram of a process for processing a black screen gesture provided by another embodiment of the present application is shown. The method is applied to the above electronic device, which includes a touch screen. Figure 2 The process shown in FIG. 1 is described in detail, and the method for processing the black screen gesture may specifically include the following steps:

[0037] Step S210: When the electronic device is in a first mode, detect whether the black screen gesture function of the electronic device is turned on. The first mode is to use a first processing method to process an abnormal event when an abnormal event occurs on the touch screen.

[0038] Step S220: When it is detected that the black screen gesture function is turned on, the first mode is switched to the second mode. The second mode is that when an abnormal event is detected on the touch screen, a second processing method is used to process the abnormal event, wherein the second processing method has a higher processing priority for the abnormal event than the first processing method.

[0039] For the detailed description of step S210 to step S220, please refer to step S110 to step S120, which will not be repeated here.

[0040] Step S230: When an abnormal event is detected on the touch screen, the abnormal event is processed by the second processing method.

[0041] In some embodiments, when the electronic device is in the second mode, when an abnormal event is detected on the touch screen, the abnormal event can be processed by the second processing method to quickly solve the problem of abnormal failure of the black screen gesture due to the abnormal event on the touch screen. In this embodiment, when the electronic device is in the second mode, if an abnormal event is detected on the touch screen, the data and firmware can be reset immediately, wherein resetting the data or resetting the firmware means that the touch screen re-resets the firmware and calibrates the current data to normal data, so that when a black screen gesture is detected, the black screen gesture can be quickly responded to, thereby improving the user experience.

[0042] See also Figure 3 , Figure 3 The embodiment of the present application provides Figure 2 The flowchart of step S230 of the method for processing a black screen gesture is shown in FIG. Figure 3 The process shown in FIG. 1 is described in detail, and the method for processing the black screen gesture may specifically include the following steps:

[0043] Step S231A: Acquire the self-capacitance data of the capacitive touch screen.

[0044] In some embodiments, the touch screen is a capacitive touch screen. The capacitive sensing function of the capacitive touch screen is to use the capacitive sensing principle of the capacitive touch screen to determine whether the object (finger, touch pen, etc.) contacts the touch screen and then report the state of the object, wherein the state of the object includes "pressed state", "lifted state" and "moving state after pressing". Using the capacitive sensing principle of the capacitive touch screen, the coordinates of the object are identified by calculating the capacitance difference between the current object contacting the capacitive touch screen and not contacting the capacitive touch screen, and by calculating the area of ​​the capacitance difference, the peak difference value of the area is found, so as to determine whether it is within a certain reporting point threshold, and then send the reporting point coordinates from the system of the electronic device, wherein the reported data includes: coordinate data and event status. In this embodiment, the capacitive touch screen is mainly composed of a transmitting channel and a receiving channel, wherein the self-capacitance data of the capacitive touch screen refers to the capacitance data of the transmitting channel and the receiving channel to the ground, and the mutual capacitance data of the capacitive touch screen refers to the flashlight data between the transmitting channel and the receiving channel.

[0045] In some implementations, the self-capacitance data of the capacitive touch screen may be obtained. In this embodiment, the self-capacitance data of the capacitive touch screen may be obtained in real time, the self-capacitance data of the capacitive touch screen may be obtained at intervals of a specified time, or the self-capacitance data of the capacitive touch screen may be obtained according to other preset rules, etc., which are not limited here.

[0046] Step S232A: Determine whether the self-capacitance data conforms to a first preset range.

[0047] In some embodiments, the electronic device is pre-set with a first preset range, and the first preset range is used as a basis for judging the self-capacitance data of the capacitive touch screen. Therefore, in this embodiment, when the self-capacitance data of the capacitive touch screen is obtained, the self-capacitance data can be compared with the first preset range to determine whether the self-capacitance data meets the first preset range. For example, the self-capacitance data when a normal object presses the capacitive touch screen is 5000. When the self-capacitance data of the capacitive touch screen obtained is lower than 3000, it indicates that the self-capacitance data does not meet the first preset range.

[0048] Step S233A: When the self-capacitance data does not conform to the first preset range, it is determined that an abnormal event occurs on the capacitive touch screen.

[0049] When the self-capacitance data does not conform to the first preset range, the self-capacitance data representing the capacitive touch screen is abnormal, so that it can be determined that an abnormal event occurs in the capacitive touch screen.

[0050] See also Figure 4 , Figure 4 The embodiment of the present application provides Figure 2 FIG. 1 is a flow chart of another embodiment of the method for processing a black screen gesture in step S230. Figure 4 The process shown in FIG. 1 is described in detail, and the method for processing the black screen gesture may specifically include the following steps:

[0051] Step S231B: Acquire mutual capacitance data of the capacitive touch screen.

[0052] In some implementations, mutual capacitance data of a capacitive touch screen may be obtained. In this embodiment, the mutual capacitance data of the capacitive touch screen may be obtained in real time, at specified intervals, or according to other preset rules, etc., which are not limited here.

[0053] Step S232B: Determine whether the mutual compatibility data conforms to a second preset range.

[0054] In some embodiments, the electronic device is pre-set with a second preset range, and the second preset range is used as a basis for judging the mutual capacitance data of the capacitive touch screen. Therefore, in this embodiment, when the mutual capacitance data of the capacitive touch screen is obtained, the mutual capacitance data can be compared with the second preset range to determine whether the mutual capacitance data meets the second preset range. For example, the mutual capacitance data when a normal object presses the capacitive touch screen is 900. When the mutual capacitance data of the capacitive touch screen obtained is less than 500, it indicates that the mutual capacitance data does not meet the second preset range.

[0055] Step S233B: When the mutual capacitance data does not conform to the second preset range, it is determined that an abnormal event occurs on the capacitive touch screen.

[0056] When the mutual capacitance data does not conform to the second preset range, the mutual capacitance data representing the capacitive touch screen is abnormal, so that it can be determined that an abnormal event occurs in the capacitive touch screen.

[0057] See also Figure 5 , Figure 5 The embodiment of the present application provides Figure 2 FIG. 1 is a flow chart of another embodiment of the method for processing a black screen gesture in step S230. Figure 5 The process shown in FIG. 1 is described in detail, and the method for processing the black screen gesture may specifically include the following steps:

[0058] Step S231C: Obtaining self-capacitance data and mutual-capacitance data of the capacitive touch screen.

[0059] In some implementations, the self-capacitance data and mutual-capacitance data of the capacitive touch screen may be obtained. In this embodiment, the self-capacitance data and mutual-capacitance data of the capacitive touch screen may be obtained in real time, the self-capacitance data and mutual-capacitance data of the capacitive touch screen may be obtained at intervals of a specified time, or the self-capacitance data and mutual-capacitance data of the capacitive touch screen may be obtained according to other preset rules, etc., which are not limited here.

[0060] Step S232C: Determine whether the self-capacitance data conforms to a first preset range, and determine whether the mutual-capacitance data conforms to a second preset range.

[0061] In some embodiments, the electronic device is pre-set with a first preset range, and the first preset range is used as a basis for judging the self-capacitance data of the capacitive touch screen. Therefore, in this embodiment, when the self-capacitance data of the capacitive touch screen is obtained, the self-capacitance data can be compared with the first preset range to determine whether the self-capacitance data meets the first preset range. For example, the self-capacitance data when a normal object presses the capacitive touch screen is 5000. When the self-capacitance data of the capacitive touch screen obtained is lower than 3000, it indicates that the self-capacitance data does not meet the first preset range.

[0062] In some embodiments, the electronic device is pre-set with a second preset range, and the second preset range is used as a basis for judging the mutual capacitance data of the capacitive touch screen. Therefore, in this embodiment, when the mutual capacitance data of the capacitive touch screen is obtained, the mutual capacitance data can be compared with the second preset range to determine whether the mutual capacitance data meets the second preset range. For example, the mutual capacitance data when a normal object presses the capacitive touch screen is 900. When the mutual capacitance data of the capacitive touch screen obtained is less than 500, it indicates that the mutual capacitance data does not meet the second preset range.

[0063] Step S233C: When the self-capacitance data does not conform to the first preset range and the mutual-capacitance data does not conform to the second preset range, it is determined that an abnormal event occurs on the capacitive touch screen.

[0064] When the self-capacitance data does not conform to the first preset range and the mutual-capacitance data does not conform to the second preset range, both the self-capacitance data and the mutual-capacitance data representing the capacitive touch screen are abnormal, thereby determining that an abnormal event has occurred in the capacitive touch screen.

[0065] Step S240: When it is detected that the black screen gesture function is turned off, continue to be in the first mode.

[0066] In some embodiments, when the detection result indicates that the black screen gesture function is turned off, the electronic device can continue to be in the first mode. That is, when it is detected that the black screen gesture function is turned off, the electronic device can continue to process the abnormal event through the first processing method when an abnormal event occurs on the touch screen, so as to improve the user experience in non-black screen gesture scenarios and increase system stability.

[0067] Step S250: When an abnormal event is detected on the touch screen, the touch event acting on the touch screen is monitored.

[0068] In some implementations, when the electronic device is in the first mode and detects an abnormal event on the touch screen, the abnormal event can be processed in a first processing manner to improve the user experience in non-black screen gesture scenarios and increase system stability. In this embodiment, when the electronic device is in the first mode and detects an abnormal event on the touch screen, the touch event acting on the touch screen can be monitored, where the touch event can include ending the touch operation (lifting operation) and the touch operation (pressing operation, moving operation after pressing), etc., which are not limited here.

[0069] See also Figure 6 , Figure 6 The embodiment of the present application provides Figure 2 The process diagram of step S250 of the method for processing a black screen gesture is shown in FIG. Figure 6 The process shown in FIG. 1 is described in detail, and the method for processing the black screen gesture may specifically include the following steps:

[0070] Step S251: when an abnormal event occurs on the capacitive touch screen, monitoring a difference between two adjacent frames of mutual capacitance data of the capacitive touch screen.

[0071] In some embodiments, the electronic device can determine the touch event acting on the touch screen by detecting the mutual capacitance data of the capacitive touch screen, that is, the electronic device can determine whether the touch event acting on the touch screen is to end the touch operation or to start the touch operation by detecting the mutual capacitance data of the capacitive touch screen. Specifically, in this embodiment, when an abnormal event is detected on the capacitive touch screen, the difference between two adjacent frames of capacitance data of the capacitive touch screen can be monitored, for example, the first frame capacitance data and the second frame capacitance data of the capacitive touch screen can be monitored, and the difference between the first frame capacitance data and the second frame capacitance data can be obtained, the second frame capacitance data and the third frame capacitance data of the capacitive touch screen can be monitored, and the difference between the second frame capacitance data and the third frame capacitance data can be obtained, etc., which is not limited here.

[0072] Step S252: determining a touch event acting on the capacitive touch screen based on a difference between the two adjacent frames of mutual capacitance data.

[0073] In some implementations, after acquiring the difference between two adjacent frames of mutual capacitance data of the capacitive touch screen, the electronic device may determine a touch event acting on the capacitive touch screen based on the difference between the two adjacent frames of mutual capacitance data.

[0074] See also Figure 7 , Figure 7 The embodiment of the present application provides Figure 6 The flowchart of step S252 of the method for processing a black screen gesture is shown in FIG. Figure 7 The process shown in FIG. 1 is described in detail, and the method for processing the black screen gesture may specifically include the following steps:

[0075] Step S2521: Determine whether the difference between the two adjacent frames of mutual-capacity data is greater than a preset difference.

[0076] In some implementations, the electronic device is pre-set with a preset difference value, and the preset difference value is used as a basis for judging the difference value of two adjacent frames of mutual capacitance data of the monitored capacitive touch screen. Therefore, in this embodiment, after obtaining the difference value of two adjacent frames of mutual capacitance data of the capacitive touch screen, the difference value of the two adjacent frames of mutual capacitance data can be compared with the preset difference value to determine whether the difference value of the two adjacent frames of mutual capacitance data is greater than the preset difference value.

[0077] Step S2522: when the difference between the two adjacent frames of mutual capacitance data is greater than the preset difference, determining that the touch event acting on the capacitive touch screen is a touch operation end.

[0078] In some embodiments, when the judgment result indicates that the difference between two adjacent frames of mutual capacitance data is greater than a preset difference, indicating that the difference between two adjacent frames of mutual capacitance data is too large, it can be considered that the object acting on the capacitive touch screen switches from pressing to non-pressing, that is, the touch event acting on the capacitive touch screen is determined to be the end of the touch operation (lifting operation).

[0079] Step S2523: when the difference between the two adjacent frames of mutual capacitance data is not greater than the preset difference, determining that the touch event acting on the capacitive touch screen is a touch operation.

[0080] In some embodiments, when the judgment result indicates that the difference between two adjacent frames of mutual capacitance data is not greater than a preset difference, the difference between two adjacent frames of mutual capacitance data is small, and it can be considered that the object acting on the capacitive touch screen is always pressing, that is, the touch event acting on the capacitive touch screen is determined to be a touch operation (pressing operation, moving operation after pressing).

[0081] Step S260: When it is detected that the touch event acting on the touch screen is the end of the touch operation, a firmware reset process is performed.

[0082] In some implementations, the electronic device is in the first mode, and when an abnormal event is detected on the touch screen, and when the touch event acting on the touch screen is monitored to end the touch operation, the abnormal event can be processed. In this embodiment, when the electronic device is in the first mode, if an abnormal event is detected on the touch screen and the touch event acting on the touch screen is monitored to end the touch operation, the data and firmware can be reset to ensure normal detection of the electronic device.

[0083] Step S270: When the touch event acting on the touch screen is detected as a touch operation, continue to monitor the touch event acting on the touch screen until the touch event acting on the touch screen is detected as an end of the touch operation, and then perform a firmware reset process.

[0084] In some embodiments, the electronic device is in the first mode, and when an abnormal event is detected on the touch screen, and when the touch event acting on the touch screen is monitored as a touch operation, the touch event acting on the touch screen can continue to be monitored until the touch event acting on the touch screen is monitored to end the touch operation, and the abnormal event is processed. Among them, in this embodiment, when the electronic device is in the first mode, if an abnormal event is detected on the touch screen and the touch event acting on the touch screen is monitored as a touch operation, the touch event acting on the touch screen can continue to be monitored until the touch event acting on the touch screen is monitored to end the touch operation, and the data and firmware can be reset to ensure normal detection of the electronic device.

[0085] Another embodiment of the present application provides a method for processing a black screen gesture. When the electronic device is in the first mode, it is detected whether the black screen gesture function of the electronic device is turned on. When it is detected that the black screen gesture function is turned on, the first mode is switched to the second mode. When an abnormal event is detected on the touch screen, the abnormal event is processed by the second processing method. When it is detected that the black screen gesture function is turned off, the first mode continues to be in the first mode. When an abnormal event is detected on the touch screen, the touch event acting on the touch screen is monitored. When the touch event acting on the touch screen is monitored to end the touch operation, the firmware is reset. When the touch event acting on the touch screen is monitored to be a touch operation, the touch event acting on the touch screen continues to be monitored until the touch event acting on the touch screen is monitored to end the touch operation, and the firmware is reset. Compared to Figure 1 As shown in the processing method of the black screen gesture, this embodiment also immediately processes the abnormal event when the black screen gesture function is turned on and an abnormal event occurs on the touch screen, and when the black screen gesture function is turned off and an abnormal event occurs on the touch screen, determines to process the abnormal event based on the monitored touch event, so as to take into account the normal function of the touch screen in different usage scenarios, solve the problem of abnormal failure of the black screen gesture, and at the same time improve the user experience in non-black screen gesture scenarios and increase system stability.

[0086] See also Figure 8 , Figure 8 A schematic diagram of a process for processing a black screen gesture provided by another embodiment of the present application is shown. The method is applied to the above electronic device, which includes a touch screen. Figure 8 The process shown in FIG. 1 is described in detail, and the method for processing the black screen gesture may specifically include the following steps:

[0087] Step S310: When the electronic device is in a first mode, detect whether the black screen gesture function of the electronic device is turned on. The first mode is to use a first processing method to process an abnormal event when an abnormal event occurs on the touch screen.

[0088] In some embodiments, the electronic device may display a setting interface, the setting interface including a target control, the target control being used to control turning on or off the black screen gesture function. The electronic device receives a selection operation on the target control, and controls turning on or off the black screen gesture function according to the selection operation. For example, see Fig. 9 , Fig. 9 An interface schematic diagram of an electronic device provided in an embodiment of the present application is shown, wherein the electronic device displays a setting interface A, the setting interface includes a target control B, and accordingly, the electronic device can receive a selection operation acting on the target control B, and control the turning on or off of the black screen gesture function in response to the selection operation.

[0089] Step S320: When it is detected that the black screen gesture function is turned on, a prompt message is output, where the prompt message is used to prompt whether to switch modes.

[0090] In some implementations, when it is detected that the black screen gesture function is turned on, a prompt message may be output, and the prompt message is used to prompt the user to select whether to switch the mode, for example, the prompt message is used to prompt the user whether to switch the electronic device from the first mode to the second mode. In this embodiment, the prompt message may include at least one of voice prompt message, text prompt message, and pop-up prompt message. For example, the prompt message may include both pop-up prompt message and text prompt message, etc., which is not limited here.

[0091] Step S330: When instruction information indicating mode switching is received, the first mode is switched to the second mode. The second mode is that when an abnormal event is detected on the touch screen, a second processing method is used to process the abnormal event, wherein the second processing method has a higher processing priority for the abnormal event than the first processing method.

[0092] In some implementations, after the user obtains the prompt information from the electronic device, the user can input instruction information in the electronic device based on the prompt information, wherein the instruction information can include instruction information indicating mode switching and instruction information indicating not to switch the mode. In addition, the instruction information can include voice instruction information, text instruction information, selection instruction information, etc., which are not limited here. In this embodiment, when the electronic device receives the instruction information indicating mode switching, it can switch from the first mode to the second mode.

[0093] Step S340: when a black screen gesture is detected, determining whether the black screen gesture is consistent with a preset black screen gesture.

[0094] In some embodiments, the electronic device is pre-set with a preset black screen gesture, and the preset black screen gesture is used as a basis for judging the black screen gesture detected by the user input. Therefore, when the electronic device detects the black screen gesture, it can compare the detected black screen gesture with the preset black screen gesture to determine whether the detected black screen gesture is consistent with the preset black screen gesture. Among them, when there are multiple preset black screen gestures, the detected black screen gesture can be compared with multiple preset black screen gestures respectively to determine whether the detected black screen gesture is consistent with any preset black screen gesture.

[0095] Step S350: When the black screen gesture is consistent with the preset black screen gesture, respond to the black screen gesture.

[0096] Among them, when the judgment result indicates that the black screen gesture is consistent with the preset black screen gesture, it indicates that the black screen gesture verification is successful, and the black screen gesture can be responded to, for example, the corresponding application is launched in response to the black screen gesture, etc., which is not limited here.

[0097] Step S360: When the black screen gesture is inconsistent with the preset black screen gesture, the number of times the black screen gesture is continuously inconsistent with the preset black screen gesture is recorded.

[0098] When the judgment result indicates that the black screen gesture is inconsistent with the preset black screen gesture, it indicates that the black screen gesture verification has failed, and the black screen gesture may not be responded to, and the number of times the black screen gesture is inconsistent with the preset black screen gesture is recorded. For example, if the user inputs the black screen gesture three times in a row, and the three input black screen gestures are inconsistent with the preset black screen gesture, the number of times the black screen gesture is inconsistent with the preset black screen gesture is recorded as three times.

[0099] Step S370: When the number of times exceeds a preset number of times, the black screen gesture function is turned off and the second mode is switched to the first mode.

[0100] In some embodiments, the electronic device is pre-set with a preset number of times, and the preset number of times is used as a basis for judging the number of times the black screen gesture is inconsistent with the preset black screen gesture. Therefore, after obtaining the number of times the black screen gesture is inconsistent with the preset black screen gesture, the number of times can be compared with the preset number of times to determine whether the number of times exceeds the number threshold, wherein when the number of times exceeds the number threshold, the electronic device can turn off the black screen gesture function and switch from the second mode to the first mode to reduce the function of the electronic device.

[0101] Another embodiment of the present application provides a method for processing a black screen gesture. When the electronic device is in a first mode, it is detected whether the black screen gesture function of the electronic device is turned on. When it is detected that the black screen gesture function is turned on, a prompt message is output, and the prompt message is used to prompt whether to switch modes. When instruction information indicating mode switching is received, the first mode is switched to the second mode. When a black screen gesture is detected, it is determined whether the black screen gesture is consistent with a preset black screen gesture. When the black screen gesture is consistent with the preset black screen gesture, the black screen gesture is responded to. When the black screen gesture is inconsistent with the preset black screen gesture, the number of consecutive inconsistencies between the black screen gesture and the preset black screen gesture is recorded. When the number exceeds the preset number, the black screen gesture function is turned off and the second mode is switched to the first mode. Compared to Figure 1 The processing method of the black screen gesture shown in the figure, this embodiment also detects the black screen gesture, and when the number of black screen gesture errors exceeds a preset number, turns off the black screen gesture function to increase system stability and improve user experience.

[0102] See also Fig.10 , Fig.10The module block diagram of the black screen gesture processing device 200 provided in the embodiment of the present application is shown. The black screen gesture processing device 200 is applied to the above electronic device, which includes a touch screen. Fig.10 The block diagram shown in FIG. 1 is used to illustrate that the black screen gesture processing device 200 includes: a black screen gesture function detection module 210 and a mode switching module 220, wherein:

[0103] The black screen gesture function detection module 210 is used to detect whether the black screen gesture function of the electronic device is turned on when the electronic device is in a first mode. The first mode is to use a first processing method to process an abnormal event when an abnormal event occurs on the touch screen.

[0104] The mode switching module 220 is used to switch from the first mode to the second mode when it is detected that the black screen gesture function is turned on. The second mode is to use a second processing method to process the abnormal event when an abnormal event occurs on the touch screen, wherein the second processing method has a higher priority than the first processing method for processing the abnormal event. Further, the mode switching module 220 includes: a prompt information output submodule and a mode switching submodule, wherein:

[0105] The prompt information output submodule is used to output prompt information when it is detected that the black screen gesture function is turned on, and the prompt information is used to prompt whether to switch the mode.

[0106] The mode switching submodule is used to switch from the first mode to the second mode when receiving instruction information instructing mode switching.

[0107] Furthermore, the black screen gesture processing device 200 includes: an exception processing module, wherein:

[0108] The abnormality handling module is used to handle the abnormality event by the second processing method when an abnormal event occurs on the touch screen. Further, the abnormality handling module includes: a reset firmware module, wherein:

[0109] The reset firmware submodule is used to perform a reset firmware process when an abnormal event is detected on the touch screen.

[0110] Furthermore, the black screen gesture processing device 200 includes: a mode maintaining module, a touch event monitoring module, a reset firmware module and a continuous monitoring module, wherein:

[0111] A mode maintaining module is used to continue in the first mode when it is detected that the black screen gesture function is turned off.

[0112] The touch event monitoring module is used to monitor the touch event acting on the touch screen when an abnormal event is detected on the touch screen. Further, the touch screen is a capacitive touch screen, and the touch event monitoring module includes: a difference monitoring submodule and a touch event determination submodule, wherein:

[0113] The difference monitoring submodule is used to monitor the difference between two adjacent frames of mutual capacitance data of the capacitive touch screen when an abnormal event is detected on the capacitive touch screen.

[0114] A touch event determination submodule is used to determine the touch event acting on the capacitive touch screen based on the difference between the two adjacent frames of mutual capacitance data. Further, the touch event determination submodule includes: a difference judgment unit, a touch operation end determination unit and a touch operation determination unit, wherein:

[0115] The difference judgment unit is used to judge whether the difference between the two adjacent frames of mutual-capacity data is greater than a preset difference.

[0116] The touch operation end determination unit is used to determine that the touch event acting on the capacitive touch screen is a touch operation end when the difference between the two adjacent frames of mutual capacitance data is greater than the preset difference.

[0117] The touch operation determining unit is used to determine that the touch event acting on the capacitive touch screen is a touch operation when the difference between the two adjacent frames of mutual capacitance data is not greater than the preset difference.

[0118] The reset firmware module is used to perform a reset firmware process when it is monitored that the touch event acting on the touch screen is the end of the touch operation.

[0119] The continuing monitoring module is used to continue monitoring the touch event acting on the touch screen when it is monitored that the touch event acting on the touch screen is a touch operation, until it is monitored that the touch event acting on the touch screen is an end of the touch operation, and then reset the firmware processing.

[0120] Furthermore, the black screen gesture processing device 200 further includes: a self-capacity data acquisition module, a self-capacity data judgment module and a first abnormal event determination module, wherein:

[0121] The self-capacitance data acquisition module is used to acquire the self-capacitance data of the capacitive touch screen.

[0122] The self-capacitance data judging module is used to judge whether the self-capacitance data conforms to a first preset range.

[0123] The first abnormal event determination module is configured to determine that an abnormal event occurs on the capacitive touch screen when the self-capacitance data does not conform to the first preset range.

[0124] Furthermore, the black screen gesture processing device 200 further includes: a mutual tolerance data acquisition module, a mutual tolerance data judgment module and a second abnormal event determination module, wherein:

[0125] The mutual capacitance data acquisition module is used to acquire the mutual capacitance data of the capacitive touch screen.

[0126] The mutual compatibility data judging module is used to judge whether the mutual compatibility data conforms to a second preset range.

[0127] A second abnormal event determination module is configured to determine that an abnormal event occurs on the capacitive touch screen when the mutual capacitance data does not conform to the second preset range.

[0128] Furthermore, the black screen gesture processing device 200 further includes: a self-mutual capacity data acquisition module, a self-mutual capacity data judgment module and a third abnormal event determination module, wherein:

[0129] The self-capacitance and mutual-capacitance data acquisition module is used to acquire the self-capacitance data and mutual-capacitance data of the capacitive touch screen.

[0130] The self-mutual-capacity data judging module is used to judge whether the self-capacity data conforms to a first preset range, and judge whether the mutual-capacity data conforms to a second preset range.

[0131] A third abnormal event determination module is configured to determine that an abnormal event occurs on the capacitive touch screen when the self-capacitance data does not conform to the first preset range and the mutual-capacitance data does not conform to the second preset range.

[0132] Furthermore, the black screen gesture processing device 300 includes: a setting interface display module and a selection operation receiving module, wherein:

[0133] The setting interface display module is used to display the setting interface, and the setting interface includes a target control.

[0134] A selection operation receiving module is used to receive a selection operation acting on the target control, and control the opening or closing of the black screen gesture function according to the selection operation.

[0135] Furthermore, the black screen gesture processing device 300 includes: a black screen gesture judgment module, a black screen gesture response module, a times recording module and a black screen gesture function closing module, wherein:

[0136] The black screen gesture judgment module is used to judge whether the black screen gesture is consistent with the preset black screen gesture when the black screen gesture is detected.

[0137] The black screen gesture response module is used to respond to the black screen gesture when the black screen gesture is consistent with the preset black screen gesture.

[0138] The number recording module is used to record the number of times the black screen gesture is inconsistent with the preset black screen gesture when the black screen gesture is inconsistent with the preset black screen gesture.

[0139] The black screen gesture function closing module is used to close the black screen gesture function and switch from the second mode to the first mode when the number of times exceeds a preset number.

[0140] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0141] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0142] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0143] See also Fig.11 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a touch screen 130, and one or more applications, wherein one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0144] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts within the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0145] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 100 during use.

[0146] The touch screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one example, the touch screen 130 can be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited here.

[0147] See also Fig.12, which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 300 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0148] The computer readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in an appropriate form.

[0149] In summary, the black screen gesture processing method, device, electronic device and storage medium provided in the embodiments of the present application, when the electronic device is in a first mode, detects whether the black screen gesture function of the electronic device is turned on, the first mode is to detect an abnormal event on the touch screen and adopt a first processing method to process the abnormal event, and when it is detected that the black screen gesture function is turned on, the first mode is switched to the second mode, and the second mode is to detect an abnormal event on the touch screen and adopt a second processing method to process the abnormal event, wherein the second processing method has a higher processing priority for the abnormal event than the first processing method. Thus, the embodiment solves the problem of abnormal failure of the black screen gesture by switching from the first mode to the second mode if it is detected that the black screen gesture function is turned on when the electronic device is in the first mode.

[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for processing a black screen gesture, characterized in that: Applied to an electronic device, the electronic device includes a touch screen, and the method includes: When the electronic device is in a first mode, detecting whether a black screen gesture function of the electronic device is turned on, wherein the first mode is to process an abnormal event on the touch screen in a first processing manner when an abnormal event occurs, and the electronic device supports opening an application by drawing a specific pattern on the touch screen without lighting the screen when the black screen gesture function is turned on; When it is detected that the black screen gesture function is turned on, the first mode is switched to the second mode, and the second mode is that when an abnormal event is detected on the touch screen, the abnormal event is processed in a second processing manner, wherein the second processing manner processes the abnormal event in a higher real-time manner than the first processing manner processes the abnormal event in a higher real-time manner; When an abnormal event occurs on the touch screen, the abnormal event is immediately processed; When a black screen gesture is detected, determining whether the black screen gesture is consistent with a preset black screen gesture; When the black screen gesture is consistent with the preset black screen gesture, responding to the black screen gesture; When the black screen gesture is inconsistent with the preset black screen gesture, recording the number of times the black screen gesture is continuously inconsistent with the preset black screen gesture; When the number of times exceeds a preset number of times, turning off the black screen gesture function and switching from the second mode to the first mode; When it is detected that the black screen gesture function is turned off, continuing in the first mode; When an abnormal event occurs on the touch screen, monitoring the touch event on the touch screen; When it is monitored that the touch event acting on the touch screen is the end of the touch operation, a firmware reset process is performed.

2. The method according to claim 1, characterized in that When an abnormal event occurs on the touch screen, processing the abnormal event by using the second processing method includes: When an abnormal event occurs on the touch screen, a firmware reset process is performed.

3. The method according to claim 1, characterized in that The method further comprises: When the touch event acting on the touch screen is monitored to be a touch operation, the touch event acting on the touch screen continues to be monitored until the touch event acting on the touch screen is monitored to be the end of the touch operation, and then the firmware is reset.

4. The method according to claim 1, characterized in that: The touch screen is a capacitive touch screen, and when an abnormal event is detected on the touch screen, monitoring the touch event acting on the touch screen includes: When an abnormal event occurs on the capacitive touch screen, monitoring a difference between two adjacent frames of mutual capacitance data of the capacitive touch screen; A touch event acting on the capacitive touch screen is determined based on a difference between the two adjacent frames of mutual capacitance data.

5. The method according to claim 4, characterized in that The step of determining a touch event acting on the capacitive touch screen based on a difference between two adjacent frames of mutual capacitance data includes: Determine whether the difference between the two adjacent frames of mutual-capacity data is greater than a preset difference; When the difference between the two adjacent frames of mutual capacitance data is greater than the preset difference, determining that the touch event acting on the capacitive touch screen is a touch operation end; When the difference between the two adjacent frames of mutual capacitance data is not greater than the preset difference, it is determined that the touch event acting on the capacitive touch screen is a touch operation.

6. The method according to claim 1 or 2, characterized in that: The touch screen is a capacitive touch screen, and the method further includes: Acquiring self-capacitance data of the capacitive touch screen; Determining whether the self-capacity data conforms to a first preset range; When the self-capacitance data does not conform to the first preset range, it is determined that an abnormal event occurs on the capacitive touch screen.

7. The method according to claim 1 or 2, characterized in that: The touch screen is a capacitive touch screen, and the method further includes: Acquiring mutual capacitance data of the capacitive touch screen; Determining whether the mutual compatibility data conforms to a second preset range; When the mutual capacitance data does not conform to the second preset range, it is determined that an abnormal event occurs on the capacitive touch screen.

8. The method according to claim 1 or 2, characterized in that: The touch screen is a capacitive touch screen, and the method further includes: Acquiring self-capacitance data and mutual-capacitance data of the capacitive touch screen; Determining whether the self-capacitance data conforms to a first preset range, and determining whether the mutual-capacitance data conforms to a second preset range; When the self-capacitance data does not conform to the first preset range and the mutual-capacitance data does not conform to the second preset range, it is determined that an abnormal event occurs on the capacitive touch screen.

9. The method according to claim 1 or 2, characterized in that: When detecting that the black screen gesture function is turned on, switching from the first mode to the second mode includes: When it is detected that the black screen gesture function is turned on, a prompt message is output, where the prompt message is used to prompt whether to switch the mode; When instruction information indicating mode switching is received, the first mode is switched to the second mode.

10. The method according to claim 9, characterized in that The prompt information includes at least one of voice prompt information, text prompt information and pop-up window prompt information.

11. The method according to claim 1 or 2, characterized in that: The method further comprises: Display a settings interface, wherein the settings interface includes a target control; A selection operation acting on the target control is received, and the black screen gesture function is turned on or off according to the selection operation.

12. A black screen gesture processing device, characterized in that: Applied to an electronic device, the electronic device includes a touch screen, and the device includes: a black screen gesture function detection module, used to detect whether the black screen gesture function of the electronic device is turned on when the electronic device is in a first mode, wherein the first mode is to process the abnormal event in a first processing manner when an abnormal event occurs on the touch screen, and the electronic device supports opening an application by drawing a specific pattern on the touch screen without lighting the screen when the black screen gesture function is turned on; a mode switching module, configured to switch from the first mode to a second mode when it is detected that the black screen gesture function is turned on, wherein the second mode is to process the abnormal event in a second processing manner when an abnormal event occurs on the touch screen, wherein the second processing manner has a higher real-time processing performance than the first processing manner; An abnormality processing module, used for immediately processing an abnormality event when an abnormality event occurs on the touch screen; A black screen gesture judgment module, used to judge whether the black screen gesture is consistent with a preset black screen gesture when a black screen gesture is detected; A black screen gesture response module, used for responding to the black screen gesture when the black screen gesture is consistent with the preset black screen gesture; A times recording module, used for recording the times that the black screen gesture is inconsistent with the preset black screen gesture when the black screen gesture is inconsistent with the preset black screen gesture; A black screen gesture function closing module, used to close the black screen gesture function and switch from the second mode to the first mode when the number of times exceeds a preset number; A mode maintaining module, configured to continue in the first mode when it is detected that the black screen gesture function is turned off; A touch event monitoring module, used for monitoring the touch event acting on the touch screen when an abnormal event is detected on the touch screen; The reset firmware module is used to perform a reset firmware process when it is monitored that the touch event acting on the touch screen is the end of the touch operation.

13. An electronic device, characterized in that: The method comprises a touch screen, a memory and a processor, wherein the touch screen and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Method for avoiding touch screen invalidation

    CN103002154A