CN110727370A - Touch screen resetting method and device, storage medium and terminal equipment - Google Patents
Touch screen resetting method and device, storage medium and terminal equipment Download PDFInfo
- Publication number
- CN110727370A CN110727370A CN201910834179.3A CN201910834179A CN110727370A CN 110727370 A CN110727370 A CN 110727370A CN 201910834179 A CN201910834179 A CN 201910834179A CN 110727370 A CN110727370 A CN 110727370A
- Authority
- CN
- China
- Prior art keywords
- touch screen
- data
- preset
- self
- mutual
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Abstract
The embodiment of the application discloses a touch screen resetting method, a touch screen resetting device, a storage medium and terminal equipment, wherein the method comprises the following steps: acquiring self-tolerant data and mutual-tolerant data of the touch screen based on the application programs in the white list; if the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition, determining a touch state corresponding to the touch screen; and when the touch control state corresponding to the touch screen is the lifting state, resetting the touch screen.
Description
Technical Field
The application relates to the technical field of intelligent terminals, in particular to a touch screen resetting method and device, a storage medium and terminal equipment.
Background
Touch screens (also called touch screens and touch panels) are inductive liquid crystal display devices capable of receiving input signals such as contacts. With the continuous development of terminal technology, the performance of a touch screen in terminal equipment is also greatly improved. However, the touch interruption phenomenon has been a problem that cannot be completely solved by the touch screen. The reason for causing the touch interruption phenomenon of the touch screen includes external factors, such as the existence of foreign matters on the touch screen, poor adhesion of the touch screen, and the like, and also includes internal factors, such as the incompatibility of the terminal and a third-party application program, the existence of defects in a reset mechanism of the touch screen, and the like.
When the type of inconsistency between the self-capacitance data and the mutual capacitance data is triggered, the abnormal reset of the touch screen can cause the finger to slide on the touch screen to lose effectiveness, and the touch screen has a touch interruption phenomenon. Therefore, how to avoid the touch interruption phenomenon of the touch screen to the maximum extent is a problem which needs to be solved urgently at present.
Disclosure of Invention
The embodiment of the application provides a touch screen resetting method and device, a storage medium and terminal equipment, which can avoid the touch interruption phenomenon of the touch screen to the greatest extent, improve the performance and quality of the touch screen and achieve the purposes of reducing the shutdown of a user and saving the cost.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a touch screen reset method, where the method includes:
acquiring self-tolerant data and mutual-tolerant data of the touch screen based on the application programs in the white list;
if the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition, determining a touch state corresponding to the touch screen;
and when the touch control state corresponding to the touch screen is the lifting state, resetting the touch screen.
In a second aspect, embodiments of the present application provide a touch screen resetting device, which includes an obtaining unit, a determining unit, and a processing unit, wherein,
the acquisition unit is configured to acquire self-tolerant data and mutual-tolerant data of the touch screen based on the application programs in the white list;
the judging unit is configured to determine a touch state corresponding to the touch screen if the self-capacitance data and the mutual capacitance data do not meet a preset consistency condition;
the processing unit is configured to perform reset processing on the touch screen when the touch state corresponding to the touch screen is a lifted state.
In a third aspect, an embodiment of the present application provides a touch screen resetting device, which includes a memory and a processor; wherein,
the memory for storing a computer program operable on the processor;
the processor, when executing the computer program, is adapted to perform the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a touch screen reset program, where the touch screen reset program, when executed by at least one processor, implements the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a terminal device, which includes at least a touch screen and the touch screen resetting apparatus according to the second aspect or the third aspect.
According to the touch screen resetting method, the touch screen resetting device, the storage medium and the terminal equipment, self-tolerant data and mutual-tolerant data of the touch screen are obtained based on application programs in a white list; if the self-contained data and the mutual-contained data do not meet the preset consistency condition, determining a touch state corresponding to the touch screen; when the touch state corresponding to the touch screen is a lifted state, resetting the touch screen; therefore, when the self-contained data and the mutual-contained data do not meet the preset consistency condition, the touch screen is not immediately reset, and the touch state corresponding to the touch screen needs to be further determined; only when the determined touch control state is the lifting state, resetting the touch screen; therefore, the phenomenon of touch interruption of the touch screen can be avoided to the greatest extent, the performance and the quality of the touch screen are improved, the user experience is improved, and the purposes of reducing the machine withdrawal of a user and saving the cost can be achieved.
Drawings
Fig. 1 is a schematic flowchart of a touch screen resetting method according to an embodiment of the present disclosure;
fig. 2 is a schematic topological structure diagram of another touch screen reset method according to an embodiment of the present application;
fig. 3 is a schematic detailed flowchart of a touch screen resetting method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a touch screen resetting device according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a specific hardware structure of a touch screen resetting device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
Touch screens (also called touch screens and touch panels) are inductive liquid crystal display devices capable of receiving input signals such as contacts. According to the working principle of the touch screen and the information transmission medium, the touch screen can be divided into a plurality of types, including a resistance type touch screen, a capacitance type touch screen, an infrared ray type touch screen, a surface acoustic wave touch screen and the like; among them, the capacitive touch screen is one of the most widely used touch screen types in the terminal device.
With the continuous development of terminal technology, the performance of a touch screen in terminal equipment is also greatly improved. However, the touch interruption phenomenon has been a problem that cannot be completely solved by the touch screen. For touch screens, the concept of the touch interruption phenomenon is general, and most of the touch screens mean that the touch screen operation is insensitive, for example, the direction joystick operation fails in the game process. The touch interruption phenomenon may be caused by various reasons, for example, a foreign object exists in the touch screen, a poor film of the touch screen, the terminal is charged by using a non-original charger or a data line, the terminal is not adapted to a third-party application program, and a reset mechanism of the touch screen has a defect.
At present, in the using process of a touch screen, when the difference exists between the self-capacitance data and the mutual capacitance data of the touch screen, the inconsistent type of the self-capacitance data and the mutual capacitance data is triggered, and the current solution is to immediately reset the touch screen and release an up event in advance; however, in practice, the object (such as a finger, a stylus, etc.) does not leave the touch screen, thereby causing the touch screen to be broken. For example, in some game scenes such as the glory of the royal, the fingers of the user do not leave the touch screen for a long time, so that the difference exists between the self-capacitance data and the mutual capacitance data, and when the type of inconsistency between the self-capacitance data and the mutual capacitance data is triggered, the fingers can be failed to slide on the touch screen due to the immediate reset of the touch screen; when the finger continues to slide on the touch screen, the touch screen is reset to cause sliding failure, so that the touch screen is disconnected.
The embodiment of the application provides a touch screen resetting method, which is applied to terminal equipment. Acquiring self-tolerant data and mutual-tolerant data of the touch screen based on application programs in the white list; if the self-contained data and the mutual-contained data do not meet the preset consistency condition, determining a touch state corresponding to the touch screen; when the touch state corresponding to the touch screen is a lifted state, resetting the touch screen; therefore, when the self-contained data and the mutual-contained data do not meet the preset consistency condition, the touch screen is not immediately reset, and the touch state corresponding to the touch screen needs to be determined; only when the touch control state is the lifting state, the touch screen is reset; therefore, the phenomenon of touch interruption of the touch screen can be avoided to the greatest extent, the performance and the quality of the touch screen are improved, the user experience is improved, and the purposes of reducing the machine withdrawal of a user and saving the cost can be achieved.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
In an embodiment of the present application, referring to fig. 1, a flowchart of a touch screen resetting method provided in an embodiment of the present application is shown. As shown in fig. 1, the method may include:
s101: acquiring self-tolerant data and mutual-tolerant data of the touch screen based on the application programs in the white list;
it should be noted that the touch screen is located in the terminal device. The terminal device may be implemented in various forms, for example, the terminal device may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), an electronic reader, a vehicle-mounted device, a navigation device, a wearable device, and other devices including a touch screen.
It should also be noted that the touch screen may be a capacitive touch screen. The touch screen works by utilizing the capacitance induction principle of the touch screen, and can judge whether an object contacts the touch screen and report touch information. Here, the object mainly refers to a finger, a stylus, and the like, and the reported touch information includes coordinate information, an event state, and the like, and the event state includes a press (down) state, a lift (up) state, a movement state, and the like.
In addition, the capacitive touch screen mainly comprises a transmitting channel and a receiving channel. The capacitance data of the acquisition transmitting channel and the acquisition receiving channel to the ground are self-capacitance data, and the capacitance data between the acquisition transmitting channel and the acquisition receiving channel are mutual capacitance data. That is, the self-capacitance is the capacitance between the sense mass relative to the circuit's ground, which is always present, although it may be very close or very far from the sense mass. When an excitation signal is applied to the sensing block, an electric field varying with the excitation signal is generated between the sensing block and the ground due to the self-capacitance. The mutual capacitance is the capacitance between one sensing block and another sensing block, when an excitation signal is applied to one sensing block, the excitation signal can be sensed and received on the other sensing block due to the existence of the mutual capacitance, and the magnitude and the phase shift of the received signal are related to the frequency of the excitation signal and the magnitude of the mutual capacitance.
Specifically, the capacitive touch screen generally determines whether the touch state of the object is pressed, lifted or moved according to mutual capacitance data; that is, the mutual capacitance data can be used to determine whether the touch state corresponding to the touch screen is a pressing state, a lifting state or a moving state; in addition, the capacitive touch screen can also realize the judgment of other auxiliary functions, such as a proximity sensing function and the like, through self-capacitance data.
It should be noted that the application mainly refers to a third party application installed in the terminal device, such as a royal glory application. In the running process of the application program, the fingers of the user need to be in contact with the touch screen for a long time, so that the self-compatibility data and the mutual-compatibility data can be obtained by collecting data. Here, the self-compatibility data and the mutual-compatibility data may be acquired in real time or periodically, and the embodiment of the present application is not particularly limited.
Therefore, for the application program in the white list, in the running process of the application program, the self-capacitance data and the mutual capacitance data of the touch screen can be acquired, so that the self-capacitance data and the mutual capacitance data can be obtained, and the subsequent judgment of the reset processing of the touch screen is facilitated.
S102: if the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition, determining a touch state corresponding to the touch screen;
it should be noted that the preset consistency condition is a preset measurement index for determining whether the self-compatibility data and the mutual-compatibility data are consistent. Specifically, based on a preset consistency condition, if the self-contained data is normal and the mutual-contained data does not conform to a preset mutual-contained range corresponding to the mutual-contained data, it may be determined that the self-contained data and the mutual-contained data are inconsistent, that is, the self-contained data and the mutual-contained data do not satisfy the preset consistency condition; correspondingly, if the mutual capacitance data is normal and the self-capacitance data does not meet the preset self-capacitance range corresponding to the self-capacitance data, the self-capacitance data and the mutual capacitance data can also be judged to be inconsistent, namely the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition.
It should be further noted that, when an object is pressed on the touch screen, a touch state corresponding to the touch screen is called a pressed state; when an object is pressed on the touch screen and slides, the touch state corresponding to the touch screen is called as a moving state; when the object leaves the touch screen, the touch state corresponding to the touch screen is called a lifted state; here, the pressed state and the moved state may be referred to as a non-lifted state; in this way, the touch states corresponding to the touch screen may include a lifted state and a non-lifted state.
Therefore, after the self-contained data and the mutual-contained data are obtained, whether the self-contained data and the mutual-contained data meet the preset consistency condition or not can be judged. When the self-contained data and the mutual-contained data meet the preset consistency condition, the fact that the touch screen does not need to be reset is indicated, and the process of the method can be directly ended; when the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition, the fact that the touch screen needs to be reset is indicated, and at the moment, the flow of the method needs to be continuously executed, namely, the touch state corresponding to the touch screen is determined.
S103: and when the touch control state corresponding to the touch screen is the lifting state, resetting the touch screen.
It should be noted that when the self-capacitance data and the mutual capacitance data do not satisfy the preset consistency condition, the determination of the touch state corresponding to the touch screen needs to be continuously executed at this time; and only when the touch control state corresponding to the touch screen is the lifting state, resetting the touch screen. Therefore, even if the self-contained data and the mutual-contained data do not meet the preset consistency condition, if the touch state corresponding to the touch screen is in a non-lifting state, the touch screen still cannot be reset at this time, and therefore error reset processing under abnormal conditions in the existing solution can be avoided.
Specifically, in the current solution, when there is a difference between the self-capacitance data and the mutual capacitance data obtained from the touch screen, that is, the self-capacitance data and the mutual capacitance data do not satisfy the preset consistency condition, the touch screen is immediately reset at this time; however, in some specific scenes (such as a royal glory game, etc.), the finger of the user does not leave the touch screen for a long time, so that the self-capacitance data and the mutual capacitance data are different, and at this time, if the immediate reset processing is performed, the finger may slide on the touch screen to fail, so that the touch screen is disconnected.
In the embodiment of the application, when the touch screen is reset, whether the preset consistency condition is met or not can be judged according to the self-contained data and the mutual-contained data, if the self-contained data and the mutual-contained data do not meet the preset consistency condition, the touch state corresponding to the touch screen is determined at this time, and the touch screen is reset only when the touch state corresponding to the touch screen is determined to be a lifted state. Therefore, according to the touch screen resetting method provided by the embodiment of the application, when the self-capacitance data and the mutual-capacitance data are judged not to meet the preset consistency condition, resetting cannot be directly carried out, and therefore the touch interruption phenomenon of the touch screen can be avoided to the greatest extent.
It should be further noted that, when the touch screen is reset, the preset touch data corresponding to the touch screen may be specifically reset, and meanwhile, the preset touch firmware corresponding to the touch screen may also be reset. That is, in the embodiment of the present application, the reset process may be reset data and/or reset firmware.
In the embodiment of the application, self-tolerant data and mutual-tolerant data of the touch screen are obtained based on application programs in a white list; if the self-contained data and the mutual-contained data do not meet the preset consistency condition, determining a touch state corresponding to the touch screen; when the touch state corresponding to the touch screen is a lifted state, resetting the touch screen; therefore, when the self-contained data and the mutual-contained data do not meet the preset consistency condition, the touch screen is not immediately reset, and the touch state corresponding to the touch screen needs to be determined; only when the touch control state is the lifting state, the touch screen is reset; therefore, the phenomenon of touch interruption of the touch screen can be avoided to the greatest extent, the performance and the quality of the touch screen are improved, the user experience is improved, and the purposes of reducing the machine withdrawal of a user and saving the cost can be achieved.
In some embodiments, before the self-content data and the mutual-content data of the touch screen are acquired, a white list can be established, and then whether the current application program is in the white list or not is judged according to the white list. Therefore, before S101, the method may further include:
s101 a: establishing a white list; wherein, the white list comprises at least one application program with the touch screen resetting method.
It should be noted that the white list is created according to some scenes or application programs that need to use the touch screen resetting method according to the embodiment of the present application; that is, the white list may be a list containing scenes or applications. Specifically, at least one application program with the touch screen resetting method is included in the white list. Further, if an application needs to start the touch screen reset method, the application can also be added into a white list.
In this way, after the white list is established, the white list may be stored in the terminal device. The terminal system corresponding to the terminal device is a large system with a memory and a processor, and the touch screen system corresponding to the touch screen is a small system with a memory and a processor. In this way, the white list may be stored in a memory in the terminal system or in a memory in the touch screen system. Therefore, whether the currently running application program is in the white list or not can be judged according to the obtained white list.
Further, for S101, acquiring self-content data and mutual-content data of the touch screen based on the application programs in the white list may include:
s101 b: determining whether an application is in the white list based on the white list;
s101 c: and when the application program is in the white list, executing the step of acquiring the self-content data and the mutual-content data of the touch screen.
It should be noted that after the white list is obtained, whether the application program is in the white list may be determined. If the application program is not in the white list, the application program does not need to execute the touch screen resetting method of the embodiment of the application, and the flow of the method can be directly ended at this time; if the application program is in the white list, it is described that the application program needs to execute the touch screen resetting method of the embodiment of the application, that is, the step of acquiring the self-compatibility data and the mutual compatibility data of the touch screen is executed.
Further, in some embodiments, a preset reset mode may be set for the application program, and when the application program is in the white list, it is further required to determine whether the application program starts the preset reset mode, so as to determine whether the application program executes the touch screen reset method according to the embodiment of the present application. Thus, for S101c, when the application is in the whitelist, the method may further include:
s101 d: judging whether the application program starts a preset reset mode or not;
s101 e: if the application program starts a preset reset mode, sending a first instruction to a touch screen, wherein the first instruction is used for indicating the touch screen to trigger the preset reset mode;
s101 f: and if the application program exits the preset reset mode, sending a second instruction to the touch screen, wherein the second instruction is used for indicating the touch screen to close the preset reset mode.
It should be noted that after S101d, by determining whether the application program starts the preset reset mode; if the application program starts the preset reset mode, S101e is executed; if the application program exits the preset reset mode, S101f is executed.
It should be further noted that the preset reset mode refers to a touch screen reset method according to an embodiment of the present application. Specifically, in the preset reset mode, whether a preset consistency condition is met or not is judged according to the self-contained data and the mutual-contained data, then the touch state corresponding to the touch screen is determined, and only when the preset consistency condition is judged according to the self-contained data and the mutual-contained data and the touch state corresponding to the touch screen is in a lifted state, the touch screen is reset.
Therefore, whether the application program starts the preset reset mode is judged, if the application program starts the preset reset mode, the fact that the application program needs to execute the touch screen reset method of the embodiment of the application is indicated, at the moment, a first instruction can be sent to the touch screen, and the first instruction is used for indicating the touch screen to trigger the preset reset mode; if the application program exits the preset reset mode, it indicates that the application program does not need to execute the touch screen reset method according to the embodiment of the present application, at this time, a second instruction may be sent to the touch screen, where the second instruction is used to instruct the touch screen to close the preset reset mode.
Thus, for S101, the acquiring self-capacitance data and mutual capacitance data of the touch screen may include:
s101 g: when the application program is in the white list and a preset reset mode is started by the application program, acquiring self-tolerant data and mutual-tolerant data of the touch screen;
s101 h: and acquiring the self-compatibility data and the mutual-compatibility data according to the acquired result.
That is to say, when the application program is in the white list, the application program starts the preset reset mode, and at this time, the self-content data and the mutual-content data can be acquired on the touch screen, so that the self-content data and the mutual-content data are obtained.
Referring to fig. 2, a schematic topological structure diagram of another touch screen reset method provided in the embodiment of the present application is shown. In fig. 2, the topology includes a white list 201, a terminal system 202, and a touch screen system 203, where the white list 201 includes an application, and the application starts a preset reset mode; the terminal system 202 includes an upper system and a lower system, and when the application program starts the preset reset mode, the upper system sends an instruction to the lower system to notify the lower system that the preset reset mode needs to be started, and then the lower system sends an instruction to the touch screen system to notify the touch screen system to trigger the preset reset mode.
It should also be noted that the terminal system is a large system with a memory and a processor, and the touch screen system is a small system with a memory and a processor. The terminal system comprises an upper system and a bottom system which are in a software hierarchical relationship; the underlying system and the touch screen system are in interactive communication via an Inter-Integrated Circuit (I2C) Interface or a Serial Peripheral Interface (SPI) Interface. For example, an address of a register in the touch screen system is used to set whether the touch screen triggers the preset reset mode, and if the address is set to 1, the application program needs to start the preset reset mode; if the address is set to 0, the application program needs to exit the preset reset mode.
In some embodiments, before determining the touch state corresponding to the touch screen, it is further required to determine whether the self-capacitance data and the mutual capacitance data satisfy a preset consistency condition. Wherein, the determining whether the self-contained data and the mutual-contained data satisfy a preset consistency condition may include:
s102 a: acquiring a preset self-capacitance range corresponding to the self-capacitance data and a preset mutual-capacitance range corresponding to the mutual-capacitance data;
s102 b: if the self-contained data does not accord with the preset self-contained range or the mutual-contained data does not accord with the preset mutual-contained range, determining that the self-contained data and the mutual-contained data do not accord with a preset consistency condition;
s102 c: and if the self-capacitance data conforms to the preset self-capacitance range and the mutual capacitance data conforms to the preset mutual capacitance range, determining that the self-capacitance data and the mutual capacitance data meet a preset consistency condition.
It should be noted that before determining whether the self-capacitance data and the mutual capacitance data satisfy the preset consistency condition, a preset self-capacitance range corresponding to the self-capacitance data and a preset mutual capacitance range corresponding to the mutual capacitance data need to be obtained; therefore, whether the self-capacity data and the mutual capacity data meet the preset consistency condition or not is judged according to the preset self-capacity range and the preset mutual capacity range.
Specifically, after the preset self-capacitance range and the preset mutual-capacitance range are obtained, the self-capacitance data and the preset self-capacitance range can be compared to determine whether the self-capacitance data conforms to the preset self-capacitance range, and the mutual-capacitance data and the preset mutual-capacitance range can be compared to determine whether the mutual-capacitance data conforms to the preset mutual-capacitance range; thus, if the self-capacity data do not accord with the preset self-capacity range or the mutual capacity data do not accord with the preset mutual capacity range, the self-capacity data and the mutual capacity data can be determined not to meet the preset consistency condition; if the self-capacitance data conforms to the preset self-capacitance range and the mutual capacitance data conforms to the preset mutual capacitance range, it can be determined that the self-capacitance data and the mutual capacitance data meet the preset consistency condition.
It should be further noted that when the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition, the touch screen reset method in the embodiment of the present application needs to be continuously executed at this time; when the self-contained data and the mutual-contained data meet the preset consistency condition, the touch screen does not need to be reset at this time, and the touch screen resetting method in the embodiment of the application does not need to be executed continuously.
Further, for S102b, if the self-content data does not conform to the preset self-content range or the mutual-content data does not conform to the preset mutual-content range, the determining that the self-content data and the mutual-content data do not satisfy a preset consistency condition may include:
if the self-capacitance data are in accordance with the preset self-capacitance range and the mutual capacitance data are not in accordance with the preset mutual capacitance range, determining that the self-capacitance data and the mutual capacitance data do not meet a preset consistency condition; or,
if the self-capacitance data do not accord with the preset self-capacitance range and the mutual capacitance data accord with the preset mutual capacitance range, determining that the self-capacitance data and the mutual capacitance data do not accord with a preset consistency condition; or,
and if the self-capacitance data do not accord with the preset self-capacitance range and the mutual capacitance data do not accord with the preset mutual capacitance range, determining that the self-capacitance data and the mutual capacitance data do not accord with a preset consistency condition.
That is, for the self-contained data and the mutual-contained data not satisfying the preset consistency condition, there are three cases: the first condition is that the self-capacitance data accords with a preset self-capacitance range, and the mutual capacitance data does not accord with the preset mutual capacitance range; the second condition is that the self-capacitance data does not accord with the preset self-capacitance range, and the mutual capacitance data accords with the preset mutual capacitance range; in the third case, the self-capacitance data does not conform to the preset self-capacitance range, and the mutual-capacitance data does not conform to the preset mutual-capacitance range.
For example, normally, after a finger presses the touch screen, the mutual capacitance data is usually 900, the self-capacitance data is usually 5000, and the unit is the corresponding data after capacitance conversion. Assuming that the preset self-tolerance range is (3000, 5000) and the preset mutual-tolerance range is (500, 900 ]; that is, when the mutual-tolerance data is 900 and the self-tolerance data is less than 3000, it is stated that the mutual-tolerance data conforms to the preset mutual-tolerance range and the self-tolerance data does not conform to the preset self-tolerance range, it can be determined that the self-tolerance data and the mutual-tolerance data do not conform to the preset consistency condition, when the self-tolerance data is 5000 and the mutual-tolerance data is less than 500, it is stated that the self-tolerance data conforms to the preset self-tolerance range and the mutual-tolerance data does not conform to the preset mutual-tolerance range, it can also be determined that the self-tolerance data and the mutual-tolerance data do not conform to the preset consistency condition, besides, when the mutual-tolerance data is less than 500 and the self-tolerance data is less than 3000, it is stated that the mutual-tolerance data does not conform to the preset self-tolerance range, it may also be determined that the self-capacitance data and the mutual-capacitance data are inconsistent, that is, the self-capacitance data and the mutual-capacitance data do not satisfy the preset consistency condition.
In some embodiments, when it is determined that the self-capacitance data and the mutual capacitance data do not satisfy the preset consistency condition, a touch state corresponding to the touch screen, such as a lifted state or a non-lifted state, may also be determined through the mutual capacitance data. Therefore, for S102, when the self-capacitance data and the mutual capacitance data do not satisfy the preset consistency condition, the determining the touch state corresponding to the touch screen may include:
s102 d: acquiring first mutual capacitance data corresponding to a first frame and second mutual capacitance data corresponding to a second frame; wherein the first frame and the second frame are front and rear adjacent frames;
s102 e: calculating a difference value of the first mutual capacitance data and the second mutual capacitance data to obtain a capacitance difference value;
s102 f: if the capacitance difference value is larger than or equal to a preset reporting threshold value, determining that the touch state corresponding to the touch screen is a non-lifting state;
s102 g: and if the capacitance difference value is smaller than a preset reporting threshold value, determining that the touch state corresponding to the touch screen is a lifted state.
It should be noted that after S102e, if the capacitance difference value is greater than or equal to the preset threshold according to the obtained capacitance difference value, S102f is executed; if the capacitance difference value is smaller than the preset threshold value, S102g is executed.
It should be further noted that, when the touch state corresponding to the touch screen is determined according to the mutual capacitance data, the mutual capacitance data of two adjacent frames before and after the touch screen is acquired first, and then the capacitance difference value between the two frames is calculated. Therefore, the touch control state corresponding to the touch screen can be determined by comparing the capacitance difference value with the preset reporting threshold value. Specifically, if the capacitance difference value is greater than or equal to the preset report point threshold value, it can be determined that the touch state is a non-lifted state; if the capacitance difference value is smaller than the preset threshold value, the touch state can be determined to be the lifting state.
For example, assuming that the mutual capacitance data of the first frame is 1000, the mutual capacitance data of the second frame is 900, and the preset threshold is 80, then, since the capacitance difference value between the first frame and the second frame is 1000-; if the mutual capacitance data of the first frame is 900, the mutual capacitance data of the second frame is 1000, and the preset threshold is still 80, then, since the capacitance difference value between the first frame and the second frame is 900 minus 100, the capacitance difference value is smaller than the preset threshold, and at this time, it can be determined that the touch state is the lifted state.
Further, after S102, the method may further include:
and if the touch state corresponding to the touch screen is a non-lifted state, not resetting the touch screen, and continuing to execute the step of determining the touch state corresponding to the touch screen.
It should be noted that after the touch state corresponding to the touch screen is determined, if the touch state is the lifted state, the touch screen needs to be reset, that is, the pre-stored touch data and/or the pre-set touch firmware needs to be reset; correspondingly, if the touch state is a non-lifted state, the touch screen does not need to be reset at this time, that is, the pre-stored touch data and/or the pre-set touch firmware does not need to be reset temporarily, the touch state corresponding to the touch screen is continuously determined, and the touch screen is reset when the touch state is the lifted state.
It should be noted that, in the current solution, when there is a difference between the self-capacitance data and the mutual capacitance data acquired from the touch screen, that is, the self-capacitance data and the mutual capacitance data do not satisfy the preset consistency condition, at this time, the touch screen is immediately reset, that is, the firmware is immediately reset, so that the lift-up event is released in advance; thereby causing a touch interruption phenomenon of the touch screen. In the embodiment of the application, when the self-volume data and the mutual-volume data are judged not to meet the preset consistency condition, the reset processing cannot be directly performed, at this time, the touch state corresponding to the touch screen needs to be determined, and only when the touch state corresponding to the touch screen is determined to be the lifted state, the reset processing is performed on the touch screen; therefore, the touch screen can avoid the touch interruption phenomenon to the maximum extent.
The embodiment provides a touch screen resetting method, which is based on an application program in a white list, and self-tolerant data and mutual-tolerant data of a touch screen are obtained; if the self-contained data and the mutual-contained data do not meet the preset consistency condition, determining a touch state corresponding to the touch screen; when the touch state corresponding to the touch screen is a lifted state, resetting the touch screen; therefore, when the self-contained data and the mutual-contained data do not meet the preset consistency condition, the touch screen is not immediately reset, and the touch state corresponding to the touch screen needs to be determined; only when the touch control state is the lifting state, the touch screen is reset; therefore, the touch screen can be prevented from being broken to the greatest extent, the performance and the quality of the touch screen are improved, the game experience of a user is improved, and the purposes of reducing the machine withdrawal of the user and saving the cost can be achieved.
In another embodiment of the present application, referring to fig. 3, a detailed flowchart of a touch screen resetting method provided in an embodiment of the present application is shown. As shown in fig. 3, the detailed flow may include:
s301: establishing a white list;
it should be noted that the white list is created according to some scenes or application programs that need to use the touch screen resetting method according to the embodiment of the present application; that is, the white list may be a list containing scenes or applications. For example, a royal glory application requires the use of the touch screen reset method, and the royal glory application is included in the whitelist.
S302: judging whether the current application program is in the white list or not;
s303: if the application program is not in the white list, exiting the process;
s304: if the application program is in the white list, judging whether the application program starts a preset reset mode or not;
it should be noted that, after S302, by determining whether the current application program is in the white list, if the current application program is not in the white list, S303 is executed; if the application is in the white list, S304 is performed.
That is, after the white list is obtained, it may be determined whether the application is within the white list. If the application program is not in the white list, the application program does not need to execute the touch screen resetting method of the embodiment of the application, and the process can be directly ended at this time; if the application program is in the white list, it is indicated that the application program needs to execute the touch screen reset method of the embodiment of the application, that is, the step of judging whether the application program starts the preset reset mode is continuously executed.
S305: if the application program starts the preset reset mode, the application program is in a starting stage, an upper layer system in the terminal system informs a bottom layer system to start the preset reset mode, and the bottom layer system sends a first instruction to a touch screen system to indicate the touch screen to trigger the preset reset mode;
s306: if the application program exits the preset reset mode, the application program is in an exit stage, an upper layer system in the terminal system informs a bottom layer system to close the preset reset mode, and the bottom layer system sends a second instruction to the touch screen system to instruct the touch screen to close the preset reset mode;
it should be noted that after S304, by determining whether the application program starts the preset reset mode, if the application program starts the preset reset mode, S305 is executed; if the application program exits the preset reset mode, S306 is performed. It is further noted that after S305, execution continues with S307-S310; after S306, execution continues with S311.
Specifically, if the application program starts a preset reset mode, at the starting stage, the upper layer system informs the bottom layer system to start the preset reset mode, and then the bottom layer system sets a touch screen system to trigger the preset reset mode; if the application program exits the preset reset mode, at the exit stage, the upper layer system informs the bottom layer system to close the preset reset mode, and then the bottom layer system sets the touch screen system to close the preset reset mode.
It should also be noted that the terminal system is a large system with a memory and a processor, and the touch screen system is a small system with a memory and a processor. The terminal system is generally divided into two software hierarchical relationships, namely an upper system and a bottom system. The underlying system may set registers within the touchscreen system through the I2C interface or the SPI interface. For example, an address of a register in the touch screen system is used to set whether the touch screen triggers the preset reset mode, and if the address is set to 1, the application program needs to start the preset reset mode; if the address is set to 0, the application program needs to exit the preset reset mode.
S307: acquiring self-capacitance data and mutual capacitance data of the touch screen by collection in the running process of the application program;
s308: when the self-contained data and the mutual-contained data do not meet the preset consistency condition, judging whether the touch state corresponding to the touch screen is a lifted state or not;
s309: if the touch state corresponding to the touch screen is a lifted state, resetting the touch screen;
s310: if the touch state corresponding to the touch screen is a non-lifting state, resetting the touch screen is not carried out, and whether the touch state corresponding to the touch screen is a lifting state or not is continuously judged;
it should be noted that, the capacitance data collected to ground through the transmitting channel and the receiving channel during self-capacitance data, and the capacitance data between the transmitting channel and the receiving channel during mutual capacitance data are collected. The detection of the inconsistency between the self-capacitance data and the mutual capacitance data is an error handling mechanism for judging whether the current touch screen is abnormal or not by the capacitive touch screen. The abnormal condition of inconsistency of the self-tolerant data and the mutual-tolerant data comprises the following steps: when the mutual capacitance data is normal (namely the mutual capacitance data conforms to the preset mutual capacitance range) and the self-capacitance data is abnormal (namely the self-capacitance data does not conform to the preset self-capacitance range), the self-capacitance data is inconsistent with the mutual capacitance data; when the self-capacitance data is normal (i.e. the self-capacitance data conforms to the preset self-capacitance range) and the mutual capacitance data is abnormal (i.e. the mutual capacitance data does not conform to the preset mutual capacitance range), the self-capacitance data and the mutual capacitance data are inconsistent.
Further, when it is determined that the self-volume data and the mutual-volume data do not meet the preset consistency condition, whether a touch state corresponding to the touch screen is a lifted state or not needs to be judged; if the touch state is the lifted state, executing S309, namely performing reset processing on the touch screen, specifically, resetting data and firmware; if the touch state is the non-lifted state, executing S310, that is, not resetting the touch screen, specifically not resetting data and firmware, and at this time, continuously determining whether the touch state corresponding to the touch screen is the lifted state, that is, circularly executing S308; and only when the touch control state is the lifting state, the touch screen is reset.
In the embodiment of the application, the reset data and the reset firmware mainly refer to whether the capacitive touch screen resets the firmware again or not, and the current data is calibrated to be normal data.
S311: and when the self-contained data and the mutual-contained data do not meet the preset consistency condition, immediately resetting the touch screen.
It should be noted that, if the application exits from the preset reset mode, at this time, in the exit stage, the upper system notifies the lower system to close the preset reset mode, and then the lower system sets the touch screen system to close the preset reset mode. In this case, the default mechanism of the touch screen system is restored without turning on the preset reset mode. In this way, after the touch screen system recovers the default mechanism, if the self-contained data and the mutual-contained data do not meet the preset consistency condition, the touch screen is immediately reset, namely, the data and the firmware are immediately reset.
In summary, in the embodiment of the present application, when an abnormal condition occurs in the touch screen, where the self-capacitance data and the mutual capacitance data are inconsistent, the touch screen is not directly reset, and a touch state corresponding to the touch screen needs to be further determined; only when the touch state corresponding to the touch screen is determined to be the lifting state, the touch screen is reset, and therefore the touch interruption phenomenon of the touch screen can be avoided to the greatest extent.
Through the embodiment, the specific implementation of the embodiment is elaborated, and it can be seen that through the technical scheme of the embodiment, when the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition, the touch screen is not immediately reset, and at this time, the touch state corresponding to the touch screen needs to be determined; only when the touch control state is the lifting state, the touch screen is reset; therefore, the touch screen can be prevented from being broken to the greatest extent, the performance and the quality of the touch screen are improved, the game experience of a user is improved, and the purposes of reducing the machine withdrawal of the user and saving the cost can be achieved.
In another embodiment of the present application, based on the same inventive concept as the previous embodiment, referring to fig. 4, a schematic structural diagram of a touch screen resetting device 40 provided in an embodiment of the present application is shown. As shown in fig. 4, the touch screen resetting device 40 may include: an acquisition unit 401, a determination unit 402 and a processing unit 403, wherein,
the obtaining unit 401 is configured to obtain self-content data and mutual-content data of the touch screen based on the application programs in the white list;
the determining unit 402 is configured to determine a touch state corresponding to the touch screen if the self-capacitance data and the mutual capacitance data do not satisfy a preset consistency condition;
the processing unit 403 is configured to perform reset processing on the touch screen when the touch state corresponding to the touch screen is a lifted state.
In the above solution, referring to fig. 4, the touch screen resetting apparatus 40 may further include an establishing unit 404 configured to establish a white list; wherein, the white list comprises at least one application program with the touch screen resetting method.
In the above solution, the determining unit 402 is further configured to determine whether an application program is in the white list based on the white list; and when the application program is in the white list, executing the step of acquiring the self-content data and the mutual-content data of the touch screen.
In the above solution, the determining unit 402 is further configured to determine whether the application program starts a preset reset mode; if the application program starts a preset reset mode, sending a first instruction to a touch screen, wherein the first instruction is used for indicating the touch screen to trigger the preset reset mode; and if the application program exits the preset reset mode, sending a second instruction to the touch screen, wherein the second instruction is used for indicating the touch screen to close the preset reset mode.
In the above solution, referring to fig. 4, the touch screen resetting device 40 may further include an acquisition unit 405 configured to acquire self-compatibility data and mutual compatibility data of the touch screen when the application program is in the white list and a preset resetting mode of the application program is started;
the obtaining unit 401 is specifically configured to obtain the self-compatibility data and the mutual-compatibility data according to an acquired result.
In the above solution, the determining unit 402 is further configured to determine whether the self-contained data and the mutual-contained data satisfy a preset consistency condition.
In the above scheme, the obtaining unit 401 is further configured to obtain a preset self-capacitance range corresponding to the self-capacitance data and a preset mutual-capacitance range corresponding to the mutual-capacitance data;
the determining unit 402 is specifically configured to determine that the self-contained data and the mutual-contained data do not satisfy a preset consistency condition if the self-contained data does not conform to the preset self-contained range or the mutual-contained data does not conform to the preset mutual-contained range; and if the self-capacitance data conforms to the preset self-capacitance range and the mutual capacitance data conforms to the preset mutual capacitance range, determining that the self-capacitance data and the mutual capacitance data meet a preset consistency condition.
In the above scheme, the determining unit 402 is specifically configured to determine that the self-contained data and the mutual-capacity data do not satisfy a preset consistency condition if the self-contained data conforms to the preset self-capacity range and the mutual-capacity data does not conform to the preset mutual-capacity range; or if the self-capacitance data does not accord with the preset self-capacitance range and the mutual capacitance data accords with the preset mutual capacitance range, determining that the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition.
In the above solution, referring to fig. 4, the touch screen resetting device 40 may further include a calculating unit 406, wherein,
the obtaining unit 401 is further configured to obtain first mutual capacitance data corresponding to a first frame and second mutual capacitance data corresponding to a second frame; wherein the first frame and the second frame are front and rear adjacent frames;
the calculating unit 406 is configured to perform difference calculation on the first mutual capacitance data and the second mutual capacitance data to obtain a capacitance difference value;
the determining unit 402 is further configured to determine that the touch state corresponding to the touch screen is a non-lifted state if the capacitance difference value is greater than or equal to a preset reporting threshold; and if the capacitance difference value is smaller than a preset reporting threshold value, determining that the touch state corresponding to the touch screen is a lifted state.
In the above solution, the processing unit 403 is further configured to, if the touch state corresponding to the touch screen is a non-lifted state, not perform reset processing on the touch screen, and continue to execute the step of determining the touch state corresponding to the touch screen.
In the above scheme, the processing unit 403 is specifically configured to perform a reset process on pre-stored touch data and/or preset touch firmware.
It is understood that in this embodiment, a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc., and may also be a module, or may also be non-modular. Moreover, each component in the embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Accordingly, the present embodiments provide a computer storage medium storing a touch screen reset program that, when executed by at least one processor, implements the method of any of the preceding embodiments.
Based on the composition of the touch screen resetting device 40 and the computer storage medium, referring to fig. 5, a specific hardware structure of the touch screen resetting device 40 provided in the embodiment of the present application is shown, and may include: a communication interface 501, a memory 502, and a processor 503; the various components are coupled together by a bus system 504. It is understood that the bus system 504 is used to enable communications among the components. The bus system 504 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 504 in fig. 5. The communication interface 501 is used for receiving and sending signals in the process of receiving and sending information with other external network elements;
a memory 502 for storing a computer program capable of running on the processor 503;
a processor 503 for executing, when running the computer program, the following:
acquiring self-tolerant data and mutual-tolerant data of the touch screen based on the application programs in the white list;
if the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition, determining a touch state corresponding to the touch screen;
and when the touch control state corresponding to the touch screen is the lifting state, resetting the touch screen.
It will be appreciated that the memory 502 in the embodiments of the subject application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 502 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the processor 503 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 503. The Processor 503 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 503 reads the information in the memory 502 and completes the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, as another embodiment, the processor 503 is further configured to perform the method of any one of the previous embodiments when running the computer program.
Referring to fig. 6, a schematic diagram of a composition structure of a terminal device provided in an embodiment of the present application is shown. As shown in fig. 6, the terminal device 60 may include at least a touch screen 601 and the touch screen resetting device 40 described in any of the foregoing embodiments; the touch screen resetting device 40 is mainly used for resetting the touch screen 601, can avoid the touch interruption phenomenon of the touch screen to the greatest extent, improves the performance and quality of the touch screen, and achieves the purposes of reducing the machine halt of a user and saving the cost.
It should be noted that, in the present application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (21)
1. A method for resetting a touch screen, the method comprising:
acquiring self-tolerant data and mutual-tolerant data of the touch screen based on the application programs in the white list;
if the self-capacitance data and the mutual capacitance data do not meet the preset consistency condition, determining a touch state corresponding to the touch screen;
and when the touch control state corresponding to the touch screen is the lifting state, resetting the touch screen.
2. The method of claim 1, wherein before the whitelist-based application program obtains self-content data and mutual-content data of the touch screen, the method further comprises:
establishing a white list; wherein, the white list comprises at least one application program with the touch screen resetting method.
3. The method of claim 2, wherein the obtaining self-content data and mutual-content data of the touch screen based on the application programs in the white list comprises:
determining whether an application is in the white list based on the white list;
and when the application program is in the white list, executing the step of acquiring the self-content data and the mutual-content data of the touch screen.
4. The method of claim 3, wherein when the application is in the whitelist, the method further comprises:
judging whether the application program starts a preset reset mode or not;
if the application program starts a preset reset mode, sending a first instruction to a touch screen, wherein the first instruction is used for indicating the touch screen to trigger the preset reset mode;
and if the application program exits the preset reset mode, sending a second instruction to the touch screen, wherein the second instruction is used for indicating the touch screen to close the preset reset mode.
5. The method of claim 4, wherein the obtaining of the self-capacitance data and the mutual capacitance data of the touch screen comprises:
when the application program is in the white list and a preset reset mode is started by the application program, acquiring self-tolerant data and mutual-tolerant data of the touch screen;
and acquiring the self-compatibility data and the mutual-compatibility data according to the acquired result.
6. The method according to claim 1, wherein before determining the touch state corresponding to the touch screen if the self-capacitance data and the mutual-capacitance data do not satisfy a preset consistency condition, the method further comprises:
and judging whether the self-contained data and the mutual-contained data meet a preset consistency condition.
7. The method according to claim 6, wherein the determining whether the self-capacitance data and the mutual capacitance data satisfy a preset consistency condition comprises:
acquiring a preset self-capacitance range corresponding to the self-capacitance data and a preset mutual-capacitance range corresponding to the mutual-capacitance data;
if the self-contained data does not accord with the preset self-contained range or the mutual-contained data does not accord with the preset mutual-contained range, determining that the self-contained data and the mutual-contained data do not accord with a preset consistency condition;
and if the self-capacitance data conforms to the preset self-capacitance range and the mutual capacitance data conforms to the preset mutual capacitance range, determining that the self-capacitance data and the mutual capacitance data meet a preset consistency condition.
8. The method according to claim 7, wherein if the self-content data does not conform to the preset self-content range or the mutual-content data does not conform to the preset mutual-content range, determining that the self-content data and the mutual-content data do not satisfy a preset consistency condition comprises:
if the self-capacitance data are in accordance with the preset self-capacitance range and the mutual capacitance data are not in accordance with the preset mutual capacitance range, determining that the self-capacitance data and the mutual capacitance data do not meet a preset consistency condition; or,
and if the self-capacitance data do not accord with the preset self-capacitance range and the mutual capacitance data accord with the preset mutual capacitance range, determining that the self-capacitance data and the mutual capacitance data do not accord with a preset consistency condition.
9. The method according to claim 1, wherein the determining the touch state corresponding to the touch screen comprises:
acquiring first mutual capacitance data corresponding to a first frame and second mutual capacitance data corresponding to a second frame; wherein the first frame and the second frame are front and rear adjacent frames;
calculating a difference value of the first mutual capacitance data and the second mutual capacitance data to obtain a capacitance difference value;
if the capacitance difference value is larger than or equal to a preset reporting threshold value, determining that the touch state corresponding to the touch screen is a non-lifting state;
and if the capacitance difference value is smaller than a preset reporting threshold value, determining that the touch state corresponding to the touch screen is a lifted state.
10. The method according to claim 9, wherein after the determining the touch state corresponding to the touch screen, the method further comprises:
and if the touch state corresponding to the touch screen is a non-lifted state, not resetting the touch screen, and continuing to execute the step of determining the touch state corresponding to the touch screen.
11. The method of claim 1, wherein the resetting the touch screen comprises:
and resetting the prestored touch data and/or preset touch firmware.
12. A touch screen resetting device is characterized by comprising an acquisition unit, a judgment unit and a processing unit,
the acquisition unit is configured to acquire self-tolerant data and mutual-tolerant data of the touch screen based on the application programs in the white list;
the judging unit is configured to determine a touch state corresponding to the touch screen if the self-capacitance data and the mutual capacitance data do not meet a preset consistency condition;
the processing unit is configured to perform reset processing on the touch screen when the touch state corresponding to the touch screen is a lifted state.
13. The touch screen resetting device according to claim 12, further comprising an establishing unit configured to establish a white list; wherein, the white list comprises at least one application program with the touch screen resetting method.
14. The touch screen resetting device according to claim 13, wherein the determining unit is further configured to determine whether an application is in the white list based on the white list; and when the application program is in the white list, executing the step of acquiring the self-content data and the mutual-content data of the touch screen.
15. The touch screen resetting device according to claim 14, wherein the determining unit is further configured to determine whether the application program starts a preset reset mode; if the application program starts a preset reset mode, sending a first instruction to a touch screen, wherein the first instruction is used for indicating the touch screen to trigger the preset reset mode; and if the application program exits the preset reset mode, sending a second instruction to the touch screen, wherein the second instruction is used for indicating the touch screen to close the preset reset mode.
16. The touch screen reset device of claim 12, further comprising a computing unit, wherein,
the acquiring unit is further configured to acquire first mutual capacitance data corresponding to a first frame and second mutual capacitance data corresponding to a second frame; wherein the first frame and the second frame are front and rear adjacent frames;
the calculating unit is configured to perform difference calculation on the first mutual capacitance data and the second mutual capacitance data to obtain a capacitance difference value;
the judging unit is further configured to determine that the touch state corresponding to the touch screen is a non-lifted state if the capacitance difference value is greater than or equal to a preset reporting threshold value; and if the capacitance difference value is smaller than a preset reporting threshold value, determining that the touch state corresponding to the touch screen is a lifted state.
17. The touch screen resetting device according to claim 16, wherein the processing unit is further configured to perform no resetting process on the touch screen and continue to perform the step of determining the touch state corresponding to the touch screen if the touch state corresponding to the touch screen is a non-lifted state.
18. The touch screen resetting device according to claim 12, wherein the processing unit is specifically configured to perform a resetting process on pre-stored touch data and/or pre-set touch firmware.
19. A touch screen resetting device is characterized by comprising a memory and a processor; wherein,
the memory for storing a computer program operable on the processor;
the processor, when running the computer program, is configured to perform the method of any of claims 1 to 11.
20. A computer storage medium storing a touch screen reset program that when executed by at least one processor implements the method of any one of claims 1 to 11.
21. A terminal device, characterized in that it comprises at least a touch screen and a touch screen reset device according to any one of claims 12 to 19.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910834179.3A CN110727370A (en) | 2019-09-04 | 2019-09-04 | Touch screen resetting method and device, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910834179.3A CN110727370A (en) | 2019-09-04 | 2019-09-04 | Touch screen resetting method and device, storage medium and terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110727370A true CN110727370A (en) | 2020-01-24 |
Family
ID=69217798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910834179.3A Pending CN110727370A (en) | 2019-09-04 | 2019-09-04 | Touch screen resetting method and device, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110727370A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486303A (en) * | 2020-11-27 | 2021-03-12 | 深圳创维汽车智能有限公司 | Vehicle-mounted display screen reset control method, device and system and computer storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101566901A (en) * | 2008-04-23 | 2009-10-28 | 索尼爱立信移动通信日本株式会社 | Contact-sensing device, mobile information terminal, and capacitance calibration program and method |
CN103593097A (en) * | 2012-11-29 | 2014-02-19 | 敦泰科技有限公司 | Terminal equipment and touch detection system thereof |
CN104063097A (en) * | 2013-03-21 | 2014-09-24 | 联咏科技股份有限公司 | Touch device and touch detection method thereof |
CN106873891A (en) * | 2017-01-24 | 2017-06-20 | 维沃移动通信有限公司 | The method and mobile terminal of a kind of touch control operation |
CN106959786A (en) * | 2017-04-18 | 2017-07-18 | 上海思立微电子科技有限公司 | Capacitive detection circuit, compensation method and electronic equipment |
CN107145257A (en) * | 2017-04-26 | 2017-09-08 | 努比亚技术有限公司 | A kind of touch threshold method to set up, equipment and storage medium |
US20170344178A1 (en) * | 2016-05-25 | 2017-11-30 | Josh Vekhter | Capacitive Sensing Patent |
CN107422899A (en) * | 2017-04-25 | 2017-12-01 | 努比亚技术有限公司 | A kind of terminal and the method for ensureing sensitivity of touch screen |
CN107515696A (en) * | 2017-08-31 | 2017-12-26 | 北京集创北方科技股份有限公司 | A kind of touch detecting method and touch module |
CN109716272A (en) * | 2016-12-14 | 2019-05-03 | 赛普拉斯半导体公司 | The uniformity correcting method of inexpensive and non-rectangle touch sensor matrix |
CN110134295A (en) * | 2018-02-09 | 2019-08-16 | 鹤壁天海电子信息系统有限公司 | Terminal device, capacitance touch screen and its touch identification method |
-
2019
- 2019-09-04 CN CN201910834179.3A patent/CN110727370A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101566901A (en) * | 2008-04-23 | 2009-10-28 | 索尼爱立信移动通信日本株式会社 | Contact-sensing device, mobile information terminal, and capacitance calibration program and method |
CN103593097A (en) * | 2012-11-29 | 2014-02-19 | 敦泰科技有限公司 | Terminal equipment and touch detection system thereof |
CN104063097A (en) * | 2013-03-21 | 2014-09-24 | 联咏科技股份有限公司 | Touch device and touch detection method thereof |
US20170344178A1 (en) * | 2016-05-25 | 2017-11-30 | Josh Vekhter | Capacitive Sensing Patent |
CN109716272A (en) * | 2016-12-14 | 2019-05-03 | 赛普拉斯半导体公司 | The uniformity correcting method of inexpensive and non-rectangle touch sensor matrix |
CN106873891A (en) * | 2017-01-24 | 2017-06-20 | 维沃移动通信有限公司 | The method and mobile terminal of a kind of touch control operation |
CN106959786A (en) * | 2017-04-18 | 2017-07-18 | 上海思立微电子科技有限公司 | Capacitive detection circuit, compensation method and electronic equipment |
CN107422899A (en) * | 2017-04-25 | 2017-12-01 | 努比亚技术有限公司 | A kind of terminal and the method for ensureing sensitivity of touch screen |
CN107145257A (en) * | 2017-04-26 | 2017-09-08 | 努比亚技术有限公司 | A kind of touch threshold method to set up, equipment and storage medium |
CN107515696A (en) * | 2017-08-31 | 2017-12-26 | 北京集创北方科技股份有限公司 | A kind of touch detecting method and touch module |
CN110134295A (en) * | 2018-02-09 | 2019-08-16 | 鹤壁天海电子信息系统有限公司 | Terminal device, capacitance touch screen and its touch identification method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486303A (en) * | 2020-11-27 | 2021-03-12 | 深圳创维汽车智能有限公司 | Vehicle-mounted display screen reset control method, device and system and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10955980B2 (en) | Terminal and method for touchscreen input correction | |
JP6155872B2 (en) | Terminal device, input correction program, and input correction method | |
CN107247538B (en) | Touch operation processing method and terminal device | |
EP3336678A1 (en) | Method and electronic device for preventing touch button from being false triggered | |
CN107466077A (en) | A kind of method for switching network and mobile terminal | |
EP3336679B1 (en) | Method and terminal for preventing unintentional triggering of a touch key and storage medium | |
KR20180097674A (en) | Memory reclaim method and apparatus | |
US10747369B2 (en) | Method and apparatus for responding to touch operation, storage medium and terminal | |
CN107357458B (en) | Touch key response method and device, storage medium and mobile terminal | |
US20230017370A1 (en) | User Interface Display Method of Terminal, and Terminal | |
CN104407799A (en) | Method and system for avoiding incorrect operation of touch screen in video playing process | |
CN113835558B (en) | Screen parameter adjustment method, device and electronic equipment | |
CN107087075B (en) | Prompting method based on screen fingerprint identification and mobile terminal | |
CN109298907B (en) | Application display method, application display device and terminal | |
CN104583903A (en) | Method, system and terminal for preventing faulty touch operation | |
CN110727370A (en) | Touch screen resetting method and device, storage medium and terminal equipment | |
WO2016086363A1 (en) | Operation processing method and terminal | |
CN114237420B (en) | Touch screen control method and device, electronic equipment and storage medium | |
CN113835551A (en) | Mobile terminal touch screen noise detection and processing method, device, terminal and medium | |
CN105511786B (en) | The removing method and system of touch-screen button failure | |
CN105278812A (en) | Interface adjustment method and terminal | |
CN114089868A (en) | Touch operation method and device and electronic equipment | |
CN108594705B (en) | State detection method and device of mobile terminal, storage medium and mobile terminal | |
CN111814586A (en) | Fingerprint module control method, device, electronic device and readable storage medium | |
US10430002B2 (en) | Touchscreen input method and terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200124 |
|
RJ01 | Rejection of invention patent application after publication |