CN116521016A - Baseline updating method and device, electronic equipment and storage medium - Google Patents

Baseline updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116521016A
CN116521016A CN202310476601.9A CN202310476601A CN116521016A CN 116521016 A CN116521016 A CN 116521016A CN 202310476601 A CN202310476601 A CN 202310476601A CN 116521016 A CN116521016 A CN 116521016A
Authority
CN
China
Prior art keywords
baseline
candidate
working frequency
touch panel
offset
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
Application number
CN202310476601.9A
Other languages
Chinese (zh)
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202310476601.9A priority Critical patent/CN116521016A/en
Publication of CN116521016A publication Critical patent/CN116521016A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Abstract

The disclosure provides a baseline updating method, a baseline updating device, electronic equipment and a storage medium, and relates to the technical field of sensors. Comprising the following steps: determining the current first working frequency of the touch panel; acquiring a second baseline associated with the first working frequency under the condition that the first working frequency is different from a second working frequency associated with the first baseline currently used; and performing touch detection on the touch panel based on the second base line. Therefore, the baseline is dynamically updated based on the actual working frequency of the touch panel, so that the accuracy of the baseline is improved, and the performance and reliability of the touch panel are improved.

Description

Baseline updating method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of sensors, and in particular relates to a baseline updating method, a baseline updating device, electronic equipment and a storage medium.
Background
Existing touch controllers measure data from an Analog Front End (AFE) of the touch controller to formulate an algorithm. The instability of AFE data can affect touch performance. The aging degree of the touch panel can affect the accuracy of the base line, which is an important parameter of the panel. How to accurately determine the current baseline of the touch panel is a key for improving touch performance.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
An embodiment of a first aspect of the present disclosure provides a baseline updating method, including:
determining the current first working frequency of the touch panel;
acquiring a second baseline associated with the first working frequency under the condition that the first working frequency is different from a second working frequency associated with a first baseline currently used;
and based on the second baseline, performing touch detection on the touch panel.
Embodiments of a second aspect of the present disclosure provide a baseline updating apparatus, including:
the determining module is used for determining the current first working frequency of the touch panel;
the acquisition module is used for acquiring a second baseline associated with the first working frequency under the condition that the first working frequency is different from a second working frequency associated with a first baseline which is currently used;
and the detection module is used for carrying out touch detection on the touch panel based on the second base line.
Embodiments of a third aspect of the present disclosure provide a computer device comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed, implements a baseline updating method as set forth in embodiments of the first aspect of the present disclosure.
An embodiment of a fourth aspect of the present disclosure proposes a computer readable storage medium storing a computer program which, when executed by a processor, implements a baseline updating method as proposed by an embodiment of the first aspect of the present disclosure.
Embodiments of a fifth aspect of the present disclosure propose a computer program product comprising a computer program which, when executed by a processor, implements a baseline updating method as proposed by embodiments of the first aspect of the present disclosure.
The baseline updating method, the baseline updating device, the computer equipment and the storage medium provided by the disclosure have the following beneficial effects:
in the embodiment of the disclosure, first, a current first operating frequency of the touch panel is determined. Then, when the first operating frequency is different from the second operating frequency associated with the currently used first baseline, the second baseline associated with the first operating frequency is acquired. And finally, based on the second base line, performing touch detection on the touch panel. Therefore, the baseline is dynamically updated based on the actual working frequency of the touch panel, so that the accuracy of the baseline is improved, and the performance and reliability of the touch panel are improved.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flowchart of a baseline updating method according to an embodiment of the disclosure;
FIG. 2 is a flowchart of a baseline updating method according to an embodiment of the disclosure;
FIG. 3 is a flowchart of a baseline updating method according to an embodiment of the disclosure;
FIG. 4 is a schematic diagram of a baseline updating device according to an embodiment of the disclosure;
fig. 5 illustrates a block diagram of an exemplary computer device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
Since the touch detection principle of a capacitive touch screen is to detect a change in capacitance of the touch screen, that is, to detect a difference between a capacitance value in a touched state and a capacitance value in a non-touched state. Wherein the capacitance value in the absence of a touch may be referred to as a baseline. Since the touch panel is a touch array composed of a plurality of detection points, the corresponding base line is composed of the capacitance value of each detection point in the array in the non-touch state.
Baseline updating methods, apparatuses, electronic devices, and storage media of embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a baseline updating method according to an embodiment of the disclosure.
As shown in fig. 1, the baseline updating method may include the steps of:
step 101, determining a current first operating frequency of the touch panel.
The touch panel is an interactive input device, and a user can control the operation of the computer only by touching a certain position of the touch screen with a finger or a light pen.
The first operating frequency is the frequency actually used when the touch panel works, namely the frequency for touch detection scanning, and is controlled by another program or system. The present disclosure is not limited in this regard. The first working frequency is a specific frequency point. For example, the first operating frequency is 397 kilohertz (KHz).
Step 102, obtaining a second baseline associated with the first operating frequency when the first operating frequency is different from the second operating frequency associated with the first baseline currently used.
The first baseline is a capacitance value based on which the touch panel is currently subjected to touch detection. That is, under the current aging degree, the capacitance value of each detection point is measured when the touch panel is not touched.
And the second working frequency is the frequency at which the touch panel is controlled to work when the first base line is determined.
In the disclosure, if it is determined that the current actual first operating frequency of the touch panel is different from the second operating frequency associated with the first baseline based on which the touch detection is performed, the second baseline may be acquired from the candidate baseline storage area by taking the first operating frequency as an index. The candidate baseline storage area comprises a plurality of candidate working frequency and candidate baseline pairs.
The candidate working frequency is a working frequency which can be used by the touch panel and is set in advance for a service system. For example, the candidate frequencies may be 437KHz, 348KHz, 289KHz, etc., which is not limiting of the present disclosure.
Wherein the candidate baseline is a baseline associated with the candidate operating frequency.
For example, the first operating frequency of the touch panel currently operates at 397KHz, and the second operating frequency 428KHz associated with the first baseline is different, that is, the service baseline monitors that the operating frequency of the touch panel hops from 428KHz to 397KHz. The business system may then obtain a second baseline, i.e., capacitance, associated therewith from the candidate baseline storage area based on the first operating frequency 397KHz.
Step 103, performing touch detection on the touch panel based on the second baseline.
In the disclosure, when the service system acquires the second baseline, the second baseline is used to replace the first baseline, and is used as the currently used baseline to perform touch monitoring on the touch panel.
In the embodiment of the disclosure, first, a current first operating frequency of the touch panel is determined, and when the first operating frequency is different from a second operating frequency associated with a first currently used baseline, a second baseline associated with the first operating frequency is acquired, and then touch detection is performed on the touch panel based on the second baseline. Therefore, the baseline is dynamically updated based on the actual working frequency of the touch panel, so that the accuracy of the baseline is improved, and the performance and reliability of the touch panel are improved.
According to the analysis, a plurality of candidate baselines associated with the candidate frequencies can be stored in the storage area, so that when the working frequency of the touch panel is determined to be changed, the candidate baselines associated with the changed working frequency can be directly obtained from the storage area, and touch detection is performed based on the newly determined candidate baselines. In actual use, as the touch panel changes with the environment or continuously ages, the corresponding base line also changes, so in the disclosure, in order to ensure the accuracy of each candidate base line in the storage area, each candidate base line in the storage area can be periodically updated. The process of updating the candidate baselines in the storage area described above is described in detail below in conjunction with fig. 2.
Fig. 2 is a flowchart of a baseline updating method according to an embodiment of the disclosure.
As shown in fig. 2, the baseline updating method may include the steps of:
step 201, determining a current first operating frequency of the touch panel.
Step 202, when the first working frequency is different from the second working frequency associated with the first baseline in use currently, and the time interval between the current time and the measurement time of the first candidate baseline stored in the storage area is equal to or greater than the preset time interval, acquiring a second candidate baseline of the touch panel at each candidate working frequency at the current time.
The preset time interval is a period of baseline updating which is configured in advance for the service system. The present disclosure does not limit this time interval value. For example, the preset time interval is 1 hour, and then every 1 hour, the service system needs to update the candidate baseline stored in the storage area once.
The first candidate baseline is a baseline obtained by measuring the service system before the current moment. For example, the preset time interval is 1 hour, the current time is 13:00, the baseline obtained by scanning measurement at 12:00 is the first candidate baseline, and the measurement time of the first candidate baseline is 12:00.
The second candidate baseline is a baseline obtained by measuring the service system at the current moment.
For example, the current time is 13:00, and the baseline obtained by scanning measurement at the current time is the second candidate baseline.
It should be noted that, because the storage area stores the candidate baselines respectively associated with the plurality of candidate operating frequencies, in the present disclosure, the first candidate baseline refers to the candidate baselines associated with each candidate operating frequency, and the second candidate baseline is the candidate baseline measured at the current moment under each candidate operating frequency.
For example, the service system sets a time interval of 1 hour. The time interval between the current time and the measurement time of the first candidate baseline is 1 hour, which is equal to the preset time interval. The service system will scan each candidate frequency in the memory area at the current time to obtain a corresponding baseline, i.e. a second candidate baseline.
In some possible implementations, to ensure accuracy of the measured baseline, the service needs to determine that the touch panel is not currently in a touched state before acquiring a second candidate baseline of the touch panel at each candidate operating frequency at the current time.
In some possible implementations, the service system may determine that the touch panel is not currently in the touched state when the current tracking number of touches is 0.
The tracking touch times is a parameter for tracking and recording the touch times when the service system detects the touch.
Or, the service system may also determine that the touch panel is not currently in the touched state when the number of currently detected contacts is 0.
The touch point is the position, detected by the service system, of the touch panel, and is represented in a coordinate form.
Or, the service system may also determine that the touch panel is not currently in the touched state when the current wake-up measurement value is greater than the second threshold value.
The wake-up measured value is a capacitance value obtained by measuring when the touch panel is subjected to wake-up service.
The second threshold is a critical baseline value of the awakening touch panel set by the service system according to the property of the touch panel. The present disclosure is not limited in this regard. For example, the second threshold is set at 30 picofarads (pF).
In the disclosure, if the interval between the current time and the time of the last baseline update is greater than the baseline update period, the service system first determines whether the touch panel is currently in a touched state, and if not, the service system may acquire a second candidate baseline of the touch panel at each candidate operating frequency at the current time.
It should be noted that, if the interval between the current time and the last baseline updating time is greater than the baseline updating period, but the touch panel is currently in the touched state, the service system may suspend to perform the baseline updating operation, and perform the baseline updating operation again when it is determined that the touch panel is not in the touched state. Alternatively, at this time, the service system may skip the current baseline updating period, and then measure the second candidate baseline in the next updating period, which is not limited in the present disclosure.
In step 203, touch detection is performed on the touch panel based on the second candidate baseline associated with the first operating frequency.
It can be appreciated that if the interval between the current time and the last baseline updating time is smaller than the baseline updating period, the service system may directly obtain the associated second candidate baseline from the storage area based on the current first operating frequency, and then perform touch detection on the touch panel based on the second candidate baseline.
Step 204, updating each corresponding first candidate baseline in the storage area based on each second candidate baseline.
In some possible implementations, the measured second candidate baseline may include a certain noise, and in this disclosure, to avoid storing the candidate baselines including the noise in the storage area, the service system may first determine a difference between the second candidate baseline and the first candidate baselines associated with each candidate operating frequency after obtaining the second candidate baseline.
Then, under the condition that the difference value corresponding to any candidate working frequency is smaller than a first threshold value, replacing a corresponding first candidate baseline in a storage area by a second candidate baseline associated with any candidate working frequency;
or if the difference value corresponding to any candidate working frequency is greater than or equal to the first threshold value, keeping the first candidate baseline associated with any candidate working frequency unchanged.
The first threshold is preset and is used for judging whether a touch event occurs to the touch panel or not or whether a measurement result contains a reference value of noise or not when the baseline of the touch panel is measured. This value may be set by the business system according to the specific nature of the touch panel, which is not limited by the present disclosure. For example, the first threshold is set to 2pF.
For example, the business system sets the first threshold to 2pF. It was detected that the first candidate baseline was 25pF and the second candidate baseline was 26pF, the difference between them being 1pF, and the first threshold was not exceeded, at a candidate operating frequency of 356 KHz. The corresponding first candidate baseline is replaced with the second candidate baseline. And for other candidate working frequencies in the storage area, calculating the difference between the first candidate base line and the second candidate base line, and comparing the difference with a first threshold value. And if the difference value is smaller than the first threshold value, replacing the corresponding first candidate base line with the second candidate base line. If the difference is greater than the first threshold, the first candidate baseline is unchanged.
It should be noted that the above examples are merely illustrative, and should not be taken as limiting the baseline updates in the embodiments of the present disclosure.
The step 203 and the step 204 may be performed simultaneously, or the step 204 may be performed first and then the step 203 may be performed, which is not limited in this disclosure.
In the embodiment of the disclosure, first, a current first operating frequency of a touch panel is determined, when the first operating frequency is different from a second operating frequency associated with a first baseline in current use and a time interval between a current time and a measurement time of a first candidate baseline stored in a storage area is equal to or greater than a preset time interval, the touch panel is measured, a second candidate baseline of the touch panel at each candidate operating frequency at the current time is obtained, then touch detection is performed based on the second candidate baselines associated with the first operating frequency, and each corresponding first candidate baseline in the storage area is updated based on each second candidate baseline. Therefore, the candidate baselines associated with the candidate working frequencies in the storage area are dynamically updated, and the baselines based on the touch detection are updated based on the actual working frequency of the touch panel, so that the accuracy of the baselines used for the touch detection is further ensured, and the performance and the reliability of the touch panel are improved.
According to the analysis, when the actual first working frequency of the touch panel is different from the second working frequency associated with the first baseline used for touch detection, the service system can acquire the second baseline associated with the first working frequency from the storage area so as to perform touch detection on the touch panel based on the second baseline. It will be appreciated that the greater the number of operating frequency and baseline pairs stored in the storage area, the more accurate the touch detection of the touch panel can be, but the greater the storage space required. Therefore, in order to reduce the working frequency and the storage space occupied by the baseline pair as much as possible, the baseline may be stored in a compressed manner in the present disclosure, and then the baseline read from the storage area may be decompressed when used, which will be described in detail below with reference to fig. 3.
Fig. 3 is a flowchart of a baseline updating method according to an embodiment of the disclosure.
As shown in fig. 3, the baseline updating method may include the steps of:
in step 301, a current first operating frequency of the touch panel is determined.
Step 302, under the condition that the first working frequency is different from the second working frequency associated with the currently used first baseline, the second baseline is obtained from a candidate baseline storage area by taking the first working frequency as an index, wherein the candidate baseline storage area comprises a plurality of candidate working frequency and candidate baseline pairs.
The specific implementation manner of steps 301 to 302 may refer to the detailed descriptions in other embodiments of the disclosure, and will not be described in detail herein.
Step 303, determining a first offset corresponding to the second baseline.
The first offset is an offset used by the service system when compressing the second baseline. The first offset is used to ensure that the maximum and minimum baseline values of the compressed baselines are approximately zero centered as much as possible, maximizing the available headroom in the event that the signal range increases with increasing temperature or between devices.
In some possible implementations, the first offset may be a fixed value that is set in advance. Alternatively, the first offset may be calculated by the service system according to a maximum baseline value, a minimum baseline value, and a preset offset in the historical baseline associated with the first operating frequency. The historical baseline associated with the first working frequency may be any baseline before the second baseline is measured, or may be a baseline measured before the second baseline is measured, which is not limited in this disclosure.
It should be noted that, as the touch panel ages, the baseline values associated with different operating frequencies change, and the corresponding associated offsets also change. In the present disclosure, the associated offset may also be periodically updated based on the update frequency of each baseline associated with the operating frequency, so that the offset used when compressing or decompressing each baseline is calculated from the baseline of the last measurement of the operating frequency associated with the baseline, thereby further ensuring that the maximum baseline value and the minimum baseline value in the compressed baseline are approximately centered around zero.
Alternatively, the business system may calculate the first offset using the baseline value in the historical baseline based on the following calculation formula: ((max+min)/2) > > a preset offset.
The preset offset bit is the bit number which is configured in advance for the service system and performs bit offset compression on the base line. In addition, since a large shift may cause an increase in background variation (granularity) after frequency hopping, thereby affecting the accuracy of touch detection, it is necessary to ensure that the granularity of background variation after frequency hopping is kept at a level well below the touch threshold. Accordingly, the preset offset in the present disclosure preferably does not exceed 5, for example, the preset offset may be 4, i.e., the baseline is "compressed" from the int16 format to the int8 format, which is not limited by the present disclosure.
Where > is signed right shift. If the base line value is a negative number, because the negative number exists in the memory in the form of a complement, the complement of the negative number is firstly calculated according to the original code of the negative number (the sign bit is unchanged, the rest bits are reversely added with 1 according to the original code), then the sign bit is unchanged, the rest bits are moved to the right by X bits, and in the moving process, the high bit is complemented with 1. After the shifting is completed, the sign bit is kept unchanged, and the rest bits are inverted and added with 1 to obtain the original code of the corresponding number after the shifting, namely the original code is obtained. If the sign bit is right-shifted by positive number, the sign bit is directly kept unchanged, the rest bits are right-shifted by X bits, and the high order is zero-filled, thus obtaining the required sign bit. Wherein, X bit is a preset offset.
For example, the maximum baseline value, the minimum baseline value, and the preset offset in the historical baseline associated with the first working frequency are respectively: 600. 1600, 4. From the ((max+min)/2) > > preset offset bits, it can be determined that
((600+ (-1600))/2) > 4 = -31. Then-31 is the first offset.
Step 304, decompressing the second baseline based on the first offset and the preset offset to obtain a third baseline.
And decompressing, namely, the reverse process of compressing the compressed second baseline by the service system, and recovering the baseline value of the second baseline to the value before compression.
In the disclosure, the service system may first compensate the baseline value in the second baseline based on the first offset, obtain a compensated baseline value, and then shift the compensated baseline value to the left by the number of bits indicated by the offset, so as to obtain the baseline value in the third baseline.
Wherein, compensation, when decompressing the second baseline for the service system, needs to add the first offset subtracted during compression to the second baseline.
The left shift is the process of decompressing the compressed second baseline by the service system. Unlike right shifting, the baseline number of the second baseline shifts left, either positive or negative, low zero padding.
For example, the second baseline value in memory is 68, which is stored in binary 01000100 (the most significant bit 0 is the sign bit, representing a positive number). The preset offset is 4 and the first offset is-31. The first offset of-31 is added to 68 to obtain 37, the binary value is 0100101, the binary value is positive, the binary value is directly shifted to the left by 4 bits, the low order is zero-filled to obtain 01001010000, the binary value is converted into 592, and 592 is the baseline value of the third baseline.
In step 305, touch detection is performed on the touch panel based on the third baseline.
In the disclosure, when the service system acquires the third baseline, the third baseline is used as the currently used baseline to perform touch monitoring on the touch panel.
And 306, storing the second working frequency and the first baseline association in a candidate baseline storage area.
In the present disclosure, since the current touch panel no longer operates based on the second operating frequency, the business system may store the second operating frequency in association with the first baseline in the candidate baseline storage area.
Optionally, the service system may calculate the second offset according to the maximum baseline value, the minimum baseline value and the preset offset in the historical baseline associated with the second working frequency, so as to obtain the second offset corresponding to the first baseline. And then, based on the second offset and a preset offset, compressing the first baseline to obtain a compressed fourth baseline. And finally, the fourth baseline is stored in a candidate baseline storage area by taking the second working frequency as an index.
For example, the maximum baseline value, the minimum baseline value and the preset offset in the historical baseline associated with the second working frequency are respectively: 500. -1500, 4. According to ((max+min)/2) > > preset offset, ((500+ (-1500))/2) > > 4= -31, then-31 is the second offset. The first baseline value is 500, which is stored in binary 0111110100 (the most significant 0 is the sign bit, representing a positive number). The preset offset is 4 and the second offset is-31. The 0111110100 shift was then right by 4 bits to yield 0000011111, which had a decimal value of 31, and the second offset was subtracted to yield 62. 62 is the fourth baseline after compression. Finally, the business system associates the fourth baseline with the second operating frequency and stores the fourth baseline as an association pair in the candidate baseline storage area.
In the embodiment of the disclosure, when it is determined that the current first working frequency of the touch panel is different from the second working frequency associated with the first baseline currently used, the second baseline associated with the first working frequency may be first obtained from the storage area, meanwhile, the second working frequency and the first baseline association are stored in the candidate baseline storage area, then, a first offset corresponding to the second baseline is determined, the second baseline is decompressed based on the first offset and a preset offset, a third baseline is obtained, and finally, touch detection is performed on the touch panel based on the third baseline. Therefore, the matched baselines are dynamically read from the storage area based on the actual working frequency of the touch panel, decompressed and used for touch detection of the touch panel, and the baselines which are not applicable at present are compressed and stored in the storage area, so that the accuracy of the baselines is improved, the performance and the reliability of the touch panel are improved, and the storage pressure of the storage area of the touch panel is reduced.
In order to implement the above embodiment, the present disclosure further proposes a baseline updating device.
Fig. 4 is a schematic structural diagram of a baseline updating device according to an embodiment of the disclosure.
As shown in fig. 4, the baseline updating apparatus 400 may include:
a determining module 410, configured to determine a current first operating frequency of the touch panel;
an obtaining module 420, configured to obtain a second baseline associated with the first operating frequency when the first operating frequency is different from a second operating frequency associated with a first baseline currently used;
the detection module 430 performs touch detection on the touch panel based on the second baseline.
Optionally, the baseline updating apparatus 400 further includes:
an updating module (not shown in the figure) is configured to update each corresponding first candidate baseline in the storage area based on each second candidate baseline.
A replacing module (not shown in the figure) is configured to replace the corresponding first candidate baseline in the storage area with the second candidate baseline if the difference value corresponding to any candidate operating frequency is smaller than the first threshold value.
And the compression module (not shown in the figure) is used for decompressing the first baseline and the second baseline based on the first offset and a preset offset bit to obtain a third baseline.
A displacement module (not shown in the figure) is configured to shift the compensated baseline value to the left by a bit number indicated by the offset, so as to obtain a baseline value in the third baseline.
A calculating module (not shown in the figure) for calculating the second offset according to the maximum baseline value, the minimum baseline value and the preset offset in the historical baseline associated with the second working frequency.
A processing module (not shown) for storing the second operating frequency and the first baseline association in the candidate baseline storage area.
Optionally, the determining module 410 is further configured to:
determining a difference between a second candidate baseline and a first candidate baseline associated with each candidate operating frequency;
under the condition that the current tracking touch times are 0, determining that the touch panel is not in a touch state currently; or alternatively, the process may be performed,
under the condition that the number of the currently detected contacts is 0, determining that the touch panel is not in a touch state currently; or alternatively, the process may be performed,
under the condition that the current wake-up measured value is larger than a second threshold value, determining that the touch panel is not in a touch state currently;
determining a first offset corresponding to the second baseline;
a second offset corresponding to the first baseline is determined.
Optionally, the acquiring module 420 is further configured to:
taking the first working frequency as an index, and acquiring a second baseline from a candidate baseline storage area, wherein the candidate baseline storage area comprises a plurality of candidate working frequency and candidate baseline pairs;
acquiring a second candidate baseline of the touch panel at the current moment under each candidate working frequency under the condition that the time interval between the current moment and the measurement moment of the stored first candidate baseline in the storage area is equal to or larger than a preset time interval;
When the touch panel is not in the touch state currently, acquiring a second candidate baseline of the touch panel at each candidate working frequency at the current moment;
compensating the baseline value in the second baseline based on the first offset, and acquiring a compensated baseline value;
and compressing the first baseline based on the second offset and a preset offset, and obtaining a compressed fourth baseline.
Optionally, the detection module 430 is further configured to:
and based on the third baseline, performing touch detection on the touch panel.
Optionally, the update module is further configured to:
and under the condition that the difference value corresponding to any candidate working frequency is greater than or equal to a first threshold value, keeping the first candidate baseline associated with any candidate working frequency unchanged.
Optionally, the compression module is further configured to:
and compressing the first baseline based on the second offset and a preset offset, and obtaining a compressed fourth baseline.
Optionally, the processing module is further configured to:
and storing the fourth baseline into a candidate baseline storage area by taking the second working frequency as an index.
The functions and specific implementation principles of the foregoing modules in the embodiments of the present disclosure may refer to the foregoing method embodiments, and are not repeated herein.
According to the baseline updating device, firstly, the current first working frequency of the touch panel is determined, under the condition that the first working frequency is different from the second working frequency related to the first baseline which is currently used, the second baseline related to the first working frequency is obtained, and then touch detection is carried out on the touch panel based on the second baseline. Therefore, the baseline is dynamically updated based on the actual working frequency of the touch panel, so that the accuracy of the baseline is improved, and the performance and reliability of the touch panel are improved.
In order to achieve the above embodiments, the present disclosure further proposes an electronic device including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the baseline updating method according to the previous embodiment of the disclosure when executing the program.
To achieve the above embodiments, the present disclosure further proposes a computer readable storage medium storing a computer program, which when executed by a processor, implements a baseline updating method as proposed in the foregoing embodiments of the present disclosure.
In order to implement the above-described embodiments, the present disclosure also proposes a computer program product comprising a computer program which, when executed by a processor, implements a charging method as proposed in the above-described embodiments of the present disclosure.
Fig. 5 illustrates a block diagram of an exemplary computer device suitable for use in implementing embodiments of the present disclosure. The computer device 12 shown in fig. 5 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in FIG. 5, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection; hereinafter PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard disk drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a compact disk read only memory (Compact Disc Read Only Memory; hereinafter CD-ROM), digital versatile read only optical disk (Digital Video Disc Read Only Memory; hereinafter DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the various embodiments of the disclosure.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods in the embodiments described in this disclosure.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, the computer device 12 may also communicate with one or more networks such as a local area network (Local Area Network; hereinafter LAN), a wide area network (Wide Area Network; hereinafter WAN) and/or a public network such as the Internet via the network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the methods mentioned in the foregoing embodiments.
According to the technical scheme, firstly, the current first working frequency of the touch panel is determined, under the condition that the first working frequency is different from the second working frequency related to the first base line which is currently used, the second base line related to the first working frequency is obtained, and then touch detection is carried out on the touch panel based on the second base line. Therefore, the baseline is dynamically updated based on the actual working frequency of the touch panel, so that the accuracy of the baseline is improved, and the performance and reliability of the touch panel are improved.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a 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. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium upon which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or part of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, where the program when executed includes one or a combination of the steps of the method embodiments.
Furthermore, each functional unit in the embodiments of the present disclosure may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented as software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (15)

1. A baseline updating method, comprising:
determining the current first working frequency of the touch panel;
acquiring a second baseline associated with the first working frequency under the condition that the first working frequency is different from a second working frequency associated with a first baseline currently used;
and based on the second baseline, performing touch detection on the touch panel.
2. The method of claim 1, wherein the obtaining a second baseline associated with the first operating frequency comprises:
and taking the first working frequency as an index, and acquiring the second baselines from a candidate baseline storage area, wherein the candidate baseline storage area comprises a plurality of candidate working frequency and candidate baseline pairs.
3. The method as recited in claim 2, further comprising:
acquiring a second candidate baseline of the touch panel under each candidate working frequency at the current moment under the condition that the time interval between the current moment and the measuring moment of the stored first candidate baseline in the storage area is equal to or larger than a preset time interval;
and updating each corresponding first candidate baseline in the storage area based on each second candidate baseline.
4. The method of claim 3, wherein updating each corresponding first candidate baseline in the memory area based on each of the second candidate baselines comprises:
determining a difference between a second candidate base line and a first candidate base line associated with each candidate operating frequency;
replacing a corresponding first candidate baseline in the storage area by using a second candidate baseline associated with any candidate working frequency under the condition that the difference value corresponding to the any candidate working frequency is smaller than a first threshold value;
and under the condition that the difference value corresponding to any candidate working frequency is greater than or equal to the first threshold value, keeping a first candidate baseline associated with any candidate working frequency unchanged.
5. The method of claim 3, wherein the obtaining a second candidate baseline for the touch panel at each of the candidate operating frequencies at the current time comprises:
and when the touch panel is not in the touch state currently, acquiring a second candidate baseline of the touch panel at each candidate working frequency at the current moment.
6. The method of claim 5, wherein the determining that the touch panel is not currently in a touched state comprises:
Under the condition that the current tracking touch times are 0, determining that the touch panel is not in a touched state currently; or alternatively, the process may be performed,
under the condition that the number of the currently detected contacts is 0, determining that the touch panel is not in a touch state currently; or alternatively, the process may be performed,
and under the condition that the current wake-up measured value is larger than a second threshold value, determining that the touch panel is not in a touch state currently.
7. The method of any of claims 1-6, wherein the touch detection of the touch panel based on the second baseline comprises:
determining a first offset corresponding to the second baseline;
decompressing the second base line based on the first offset and a preset offset to obtain a third base line;
and based on the third baseline, performing touch detection on the touch panel.
8. The method of claim 7, wherein decompressing the second baseline based on the first offset and offset amount to obtain a third baseline comprises:
compensating the baseline value in the second baseline based on the first offset, and obtaining a compensated baseline value;
and shifting the compensated baseline value leftwards by the bit number indicated by the offset bit to obtain the baseline value in the third baseline.
9. The method of any of claims 1-6, further comprising, after said obtaining a second baseline associated with said first operating frequency:
and storing the second working frequency and the first baseline association into a candidate baseline storage area.
10. The method of claim 9, wherein said storing said second operating frequency and said first baseline association in a candidate baseline storage area comprises:
determining a second offset corresponding to the first baseline;
compressing the first base line based on the second offset and a preset offset, and obtaining a compressed fourth base line;
and storing the fourth baseline into a candidate baseline storage area by taking the second working frequency as an index.
11. The method of claim 10, wherein the determining the second offset corresponding to the first baseline comprises:
and calculating the second offset according to the maximum baseline value, the minimum baseline value and the preset offset in the historical baseline related to the second working frequency.
12. A baseline updating processing apparatus, comprising:
the determining module is used for determining the current first working frequency of the touch panel;
The acquisition module is used for acquiring a second baseline associated with the first working frequency under the condition that the first working frequency is different from a second working frequency associated with a first baseline which is currently used;
and the detection module is used for carrying out touch detection on the touch panel based on the second base line.
13. An electronic device, comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions that are likely to be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-11.
14. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-11.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-11.
CN202310476601.9A 2023-04-27 2023-04-27 Baseline updating method and device, electronic equipment and storage medium Pending CN116521016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310476601.9A CN116521016A (en) 2023-04-27 2023-04-27 Baseline updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310476601.9A CN116521016A (en) 2023-04-27 2023-04-27 Baseline updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116521016A true CN116521016A (en) 2023-08-01

Family

ID=87400638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310476601.9A Pending CN116521016A (en) 2023-04-27 2023-04-27 Baseline updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116521016A (en)

Similar Documents

Publication Publication Date Title
CN102968217B (en) The datum renewal method of touch-screen, system and touch control terminal
US9921668B1 (en) Touch panel controller integrated with host processor for dynamic baseline image update
CN106919333B (en) Method and device for recording writing content on electronic writing board
KR20120112799A (en) Touch sensor panel negative pixel compensation
CN103677452A (en) Capacitive touch screen calibration method and capacitive touch device
WO2019023882A1 (en) Touch detection method and apparatus, touchscreen and electronic terminal
US20110128251A1 (en) Method and system for detecting a contact on a touch screen
US20190369803A1 (en) Method of detecting liquid on a capacitive touchpad and controller thereof
JP2016095648A (en) Input device
CN110658935B (en) Data detection method and device, storage medium and touch device
CN116521016A (en) Baseline updating method and device, electronic equipment and storage medium
US10915209B2 (en) Liquid detecting method and controller for a capacitive touch pad
CN111189564A (en) Pressure measuring device
KR20140082927A (en) Touch Panel Device and Touch Detection Method for Touch Panel
CN116521015A (en) Baseline processing method, baseline processing device, electronic equipment and storage medium
US11507270B2 (en) Touch input device, touch input method and recording medium recording touch input program
CN107943536B (en) Method and device for adjusting threshold, storage medium and electronic equipment
CN114420190A (en) EMMC loss degree detection method and device, electronic equipment and storage medium
TWI709897B (en) Detecting method of touch device and detecting module thereof
CN116954403A (en) Touch detection compensation method and device, electronic equipment and storage medium
EP2657827A2 (en) Touch detection method and touch control device using the same
US9195355B2 (en) Method for increasing accuracy of touch coordinate calculation in a capacitive multi-touch system
CN110633020B (en) Sensing method of touch control identification device and sensing module thereof
EP4350490A1 (en) Capacitive touch screen calibration
CN115904139A (en) Touch position determination method and device, electronic equipment and storage medium

Legal Events

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