Disclosure of Invention
It is an object of embodiments of the present application to solve the above problems and provide advantages that will be described later.
The embodiment of the application provides an anti-interference method of a capacitive touch screen, which comprises the following steps:
determining a pulse frequency band based on a preset frequency for enabling the driving electrode to send out pulse waveforms in a normal working state of the capacitive touch screen; wherein the predetermined frequency is within the frequency range of the pulse frequency band;
in the interfered state of the capacitive touch screen, determining a plurality of frequency points according to the pulse frequency band; the plurality of frequency points comprise a starting frequency point and a terminal frequency point of the pulse frequency band, and N intermediate frequency points positioned between the starting frequency point and the terminal frequency point;
obtaining interference quantity information generated when a driving electrode sends out pulse waveforms under each frequency point, and obtaining a plurality of interference quantity information; the interference quantity is a capacitance value variation quantity formed by the pulse waveform sent by the driving electrode in the interfered state of the capacitive touch screen relative to the normal working state;
selecting a frequency point with the capacitance value variation smaller than a preset threshold value from a plurality of frequency points as a candidate frequency point to obtain at least one candidate frequency point;
when the capacitive touch screen is interfered, a clean frequency point is obtained from at least one candidate frequency point;
the frequency of the clean frequency point is determined as the emission frequency of the driving electrode for emitting the pulse waveform.
In some technical schemes, the preset frequency is 150-250K, the initial frequency is smaller than the preset frequency, the terminal frequency is 20-80K, and the terminal frequency is larger than the preset frequency by 20-80K.
In some embodiments, the predetermined frequency is 200K, the start frequency is less than the predetermined frequency 50K, and the end frequency is greater than the predetermined frequency 50K.
In some technical schemes, among the plurality of frequency points, the frequency difference values of two adjacent frequency points are equal.
In some technical schemes, the capacitance change amount corresponding to each frequency point is obtained according to the following steps:
determining a predetermined reference capacitance value on a capacitive sensor of the capacitive touch screen before the driving electrode emits a pulse waveform;
for each frequency point, acquiring a real-time capacitance value generated on the capacitance sensor when the driving electrode under the frequency point sends out pulse waveforms;
and obtaining the capacitance value variation according to the difference value of the real-time capacitance value and the reference capacitance value.
In some technical solutions, when the capacitive touch screen is interfered, acquiring a clean frequency point from at least one candidate frequency point includes:
and selecting the candidate frequency point with the minimum noise as a clean frequency point.
The embodiment of the application also provides an anti-interference method of the capacitive touch screen, which comprises the following steps:
determining a pulse frequency band based on a preset frequency for enabling the driving electrode to send out pulse waveforms in a normal working state of the capacitive touch screen; wherein the predetermined frequency is within the frequency range of the pulse frequency band;
in the interfered state of the capacitive touch screen, determining a plurality of frequency points according to the pulse frequency band; the plurality of frequency points comprise a starting frequency point and a terminal frequency point of the pulse frequency band, and N intermediate frequency points positioned between the starting frequency point and the terminal frequency point;
obtaining interference quantity information generated when a driving electrode sends out pulse waveforms under each frequency point, and obtaining a plurality of interference quantity information; generating an interference quantity information linked list according to the plurality of frequency points and the corresponding interference quantity information, and storing the interference quantity information linked list in a memory of a touch chip of the capacitive touch screen to form the interference quantity information linked list; the interference quantity is a capacitance value variation quantity formed by the pulse waveform sent by the driving electrode in the interference state of the capacitive touch screen relative to the normal working state;
analyzing an interference quantity information linked list, and selecting a frequency point with a capacitance value variation smaller than a preset threshold value from a plurality of frequency points as a candidate frequency point to obtain at least one candidate frequency point; storing at least one candidate frequency point and the corresponding capacitance value variation as a candidate frequency point linked list;
searching a candidate frequency point linked list when the capacitive touch screen is interfered, and acquiring a clean frequency point from at least one candidate frequency point;
the frequency of the clean frequency point is determined as the emission frequency of the driving electrode for emitting the pulse waveform.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium is stored with a computer instruction program, and the computer instruction program realizes the steps of the anti-interference method of the capacitive touch screen when being executed by a processor.
The embodiment of the application also provides a capacitive touch screen, which comprises a screen, a touch chip and a capacitive sensor, wherein the touch chip is used for executing the steps of the anti-interference method of the capacitive touch screen.
The embodiment of the application also provides a touch device which comprises the capacitive touch screen and a shell.
The embodiment of the application has the beneficial effects that:
in summary, the embodiment of the application selects the frequency of the proper clean frequency point with strong anti-interference capability from the pulse frequency band of the preset frequency to replace the preset frequency which is easy to be interfered, and takes the frequency of the clean frequency point as the transmitting frequency of the driving electrode when being interfered, thereby effectively reducing the influence of interference signals and preventing the irregular jumping points on the screen.
Additional advantages, objects, and features of the application will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the application.
Detailed Description
The present application is described in further detail below with reference to the drawings to enable those skilled in the art to practice the application by referring to the description.
The terms "first", "second" in embodiments of the application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. It should also be noted that in the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Furthermore, the terms "comprise," "include," and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
In addition to the foregoing, it should be emphasized that the references herein to "an embodiment" are intended to mean that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In a conventional mutual capacitance touch screen, the driving electrode (TX) typically emits a pulse waveform according to a predetermined frequency, and the capacitor sensor group of the capacitive touch screen is charged, and the predetermined frequency is a scanning frequency. A schematic diagram of the driving electrode pulsing according to the scanning frequency can be seen in fig. 1. In fig. 1, T0, T1, T2, and T3 refer to the 0 th, 1 st, 2 nd, and 3 rd drive electrodes, respectively.
The driving electrode TX pulses the capacitor sensor group to charge the capacitor sensor. The sensing electrode (RX) also converts the charge quantity of the capacitance sensor group to a certain degree according to fixed frequency, and then outputs the converted charge quantity after ADC processing.
In the use of capacitive touch screens in complex scenarios, the most common disturbance is power supply noise transmitted through the power supply line. When the interference frequency is the same as or close to the TX scanning frequency of the touch chip (IC), the interference signal is directly superimposed on the TX scanning waveform, resulting in an increase in the amplitude of the TX pulse waveform and an increase in the amount of charge charged into the capacitive sensor. When the power supply interference signal is coupled to the TX pulse waveform, the default reference value of the capacitance on the capacitance sensor is not changed, so that the change amount of the capacitance is changed and even exceeds the point reporting threshold, at the moment, the touch control chip considers that touch operation occurs, the data of the touch point is reported to the system, and irregular jump points are generated on the screen.
In order to solve the foregoing problems, in a first aspect, as shown in fig. 2, an embodiment of the present application provides an anti-interference method of a capacitive touch screen, including the following steps S101 to S106:
s101, determining a pulse frequency band based on a preset frequency for enabling a driving electrode to send out pulse waveforms in a normal working state of the capacitive touch screen; wherein the predetermined frequency is within the frequency range of the pulse band.
The predetermined frequency is within the frequency range of the pulse band, meaning that the beginning frequency of the pulse band is less than the predetermined frequency and the end frequency of the pulse band is greater than the predetermined frequency. Illustratively, the frequency range of the pulse band is P (start) to P (end), the frequency of the beginning of the pulse band is P (start), the frequency of the end of the pulse band is P (end), and the predetermined frequency is P (X), then P (start) < P (X) < P (end).
Because the pulse frequency band comprises similar frequencies near the preset frequency, the pulse waveforms sent by the similar frequencies are similar to the preset frequency in the normal working state of the capacitive touch screen. Therefore, when the capacitive touch screen is interfered, the clean frequency which is less interfered in the similar frequencies is found, and the clean frequency is used for replacing the interfered preset frequency, so that the influence of an interference signal can be reduced.
Therefore, the S101 can be used for acquiring the clean frequency with smaller interference through the set pulse frequency band so as to replace the preset frequency with interference, and the influence of the interference signal on the capacitive touch screen is reduced.
In some embodiments, the predetermined frequency is 150-250K, the start frequency is less than the predetermined frequency, 20-80K, and the end frequency is greater than the predetermined frequency, 20-80K. Further, the predetermined frequency is 200K, the initial frequency is smaller than the predetermined frequency 50K, and the final frequency is larger than the predetermined frequency 50K.
S102, determining a plurality of frequency points according to the pulse frequency band in the interfered state of the capacitive touch screen; the plurality of frequency points comprise a start frequency point and a terminal frequency point of the pulse frequency band, and N intermediate frequency points positioned between the start frequency point and the terminal frequency point.
The initial frequency point is the frequency point corresponding to the initial frequency, and the terminal frequency point is the frequency point corresponding to the terminal frequency. The intermediate frequency points are frequency points with frequencies within the frequency range of the pulse frequency band. The frequency point corresponding to the preset frequency is one of N intermediate frequency points.
Among the N intermediate frequency points, the frequencies of two adjacent frequency points are unequal.
In some embodiments, a frequency modulation operation may be implemented, where a plurality of frequency points are determined by frequency hopping.
In some embodiments, the frequency difference between two adjacent frequency points is equal among the plurality of frequency points.
S103, obtaining interference quantity information generated when a driving electrode sends out pulse waveforms under each frequency point, and obtaining a plurality of interference quantity information; the interference quantity is a capacitance value variation quantity formed by the pulse waveform sent by the driving electrode in the interference state of the capacitive touch screen relative to the normal working state.
Further, after a plurality of frequency points are determined by frequency hopping, the interference amount of each frequency point, that is, the capacitance value variation amount under the frequency point is recorded.
In some embodiments, as shown in fig. 3, the capacitance change amount corresponding to each frequency point may be obtained as follows:
s1031, determining a predetermined reference capacitance value on a capacitance sensor of the capacitive touch screen before the driving electrode does not send out pulse waveforms;
s1032, for each frequency point, acquiring a real-time capacitance value generated on the capacitance sensor when the driving electrode under the frequency point sends out a pulse waveform;
s1033, obtaining the capacitance value variation according to the difference value of the real-time capacitance value and the reference capacitance value.
For example, the correspondence between frequency points, frequencies, and capacitance value variation amounts can be seen in table 1.
Table 1:
s104, selecting a frequency point with the capacitance value variation smaller than a preset threshold value from the plurality of frequency points as a candidate frequency point, and obtaining at least one candidate frequency point.
Specifically, judging whether the capacitance transformation amount of each frequency point is smaller than a preset threshold value, and if so, determining the frequency point as a candidate frequency point; and then counting all the candidate frequency points to obtain the at least one candidate frequency point.
In some embodiments, the preset threshold is 10.
S105, when the capacitive touch screen is interfered, a clean frequency point is obtained from at least one candidate frequency point.
When the number of candidate frequency points is plural, one may be optionally selected as a clean frequency point. But in some embodiments the candidate frequency point with the least noise may also be selected as the clean frequency point. The candidate frequency point with the smallest noise is the frequency point with the smallest capacitance value variation. S106, determining the frequency of the clean frequency point as the emission frequency of the driving electrode, and sending out a pulse waveform.
In summary, the embodiment of the application selects the frequency of the proper clean frequency point with strong anti-interference capability from the pulse frequency band of the preset frequency to replace the preset frequency which is easy to be interfered, and takes the frequency of the clean frequency point as the transmitting frequency of the driving electrode when being interfered, thereby effectively reducing the influence of interference signals, preventing point reporting errors and avoiding generating irregular jumping points on a screen.
In a second aspect, as shown in fig. 4, an embodiment of the present application further provides an anti-interference method for a capacitive touch screen, including the following steps:
s201, determining a pulse frequency band based on a preset frequency for enabling a driving electrode to send out pulse waveforms in a normal working state of the capacitive touch screen; wherein the predetermined frequency is within the frequency range of the pulse band.
Reference may be made specifically to step S101.
S202, determining a plurality of frequency points according to the pulse frequency band in the state that the capacitive touch screen is interfered; the plurality of frequency points comprise a start frequency point and a terminal frequency point of the pulse frequency band, and N intermediate frequency points positioned between the start frequency point and the terminal frequency point.
Reference may be made specifically to step S102.
S203, obtaining interference quantity information generated when the driving electrode sends out pulse waveforms under each frequency point, and obtaining a plurality of interference quantity information; generating an interference quantity information linked list according to the plurality of frequency points and the corresponding interference quantity information, and storing the interference quantity information linked list in a memory of a touch chip of the capacitive touch screen to form the interference quantity information linked list; the interference amount is a capacitance value variation amount formed by the pulse waveform sent by the driving electrode in the interference state of the capacitive touch screen relative to the normal working state.
In addition to the interference amount information linked list, reference may be made specifically to step S103.
In some implementations, the memory is a Flash memory.
S204, analyzing an interference quantity information linked list, and selecting a frequency point with the capacitance value variation smaller than a preset threshold value from a plurality of frequency points as a candidate frequency point to obtain at least one candidate frequency point; and storing all the candidate frequency points in the at least one candidate frequency point and the corresponding capacitance value variation as a candidate frequency point linked list.
S205, searching a candidate frequency point linked list when the capacitive touch screen is interfered, and acquiring a clean frequency point from at least one candidate frequency point.
When the power supply interference arrives and the data of the capacitance value generates larger jitter, the candidate frequency points with small interference are automatically searched through the set frequency hopping selectable scanning candidate frequency point linked list and used as clean frequency points.
The process is substantially the same as step S105 except that the candidate frequency bin linked list is searched.
S206, determining the frequency of the clean frequency point as the emission frequency of the driving electrode, and sending out a pulse waveform.
The frequency of the clean frequency point is determined as the transmitting frequency of the driving electrode, so that the influence of the interference noise signal on capacitance value data can be avoided, and the purpose of processing the interference noise is achieved.
Reference may be made specifically to step S106.
In summary, the embodiment of the application selects the frequency of the proper clean frequency point with strong anti-interference capability from the pulse frequency band of the preset frequency to replace the preset frequency which is easy to be interfered, and takes the frequency of the clean frequency point as the transmitting frequency of the driving electrode when being interfered, thereby effectively reducing the influence of interference signals and preventing the irregular jumping points on the screen.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
Therefore, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer instruction program, and the computer instruction program realizes the steps of the anti-interference method of the capacitive touch screen when being executed by a processor.
In addition, the embodiment of the application also provides a capacitive touch screen, which comprises a screen, a touch chip and a capacitive sensor, wherein the touch chip is used for executing the steps of the anti-interference method of the capacitive touch screen.
The embodiment of the application also provides a touch device which is characterized by comprising the capacitive touch screen and a shell. The touch control device can be a smart phone, a tablet computer and other devices.
Although embodiments of the present application have been disclosed above, it is not limited to the details and embodiments shown and described, it is well suited to various fields of use for which the application would be readily apparent to those skilled in the art, and accordingly, the application is not limited to the specific details and illustrations shown and described herein, without departing from the general concepts defined in the claims and their equivalents.