Baseline establishment method, baseline establishment device and electronic equipment

CN116149503BActive Publication Date: 2026-08-21GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111394197.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-23
Publication Date
2026-08-21
Estimated Expiration
2041-11-23

AI Technical Summary

Technical Problem

然而,由于噪声在短时间内可能出现波动较大的情况,这会导致建立的基线过大或过小,从而出现屏幕自动触控跳点或触控无反应等不良现象

Benefits of technology

[0017]本申请与现有技术相比存在的有益效果是:首先获取电子设备的触摸屏的N帧噪声绝对值,所述N为大于1的整数,然后检测所述N帧噪声绝对值是否满足预设的基线计算条件,若所述N帧噪声绝对值满足所述基线计算条件,则根据所述N帧噪声绝对值计算基线值,并基于所述基线值建立基线。上述过程通过基线计算条件排除掉了波动较大的噪声对基线的影响,可使得所建立的基线更加符合正常使用需求,减少出现屏幕自动触控跳点或触控无反应等不良现象。可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116149503B_ABST
    Figure CN116149503B_ABST
Patent Text Reader

Abstract

The application discloses a baseline establishment method, a baseline establishment device, an electronic device and a computer readable storage medium. The method is applied to a touch screen, and the method comprises the following steps: acquiring N frames of noise absolute values of the touch screen, wherein N is an integer greater than 1; detecting whether the N frames of noise absolute values satisfy a preset baseline calculation condition; if the N frames of noise absolute values satisfy the baseline calculation condition, calculating a baseline value according to the N frames of noise absolute values; and establishing a baseline based on the baseline value. Through the application scheme, the influence of noise fluctuation on the baseline can be reduced, and adverse phenomena such as automatic screen touch jump or touch non-response can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of equipment control technology, and in particular relates to a baseline establishment method, a baseline establishment device, an electronic device, and a computer-readable storage medium. Background Technology

[0002] Most mainstream touchscreens are capacitive, whose touchscreen chips recognize touch operations performed by fingers or styluses by detecting changes in sensor signal intensity at different locations on the touchscreen in real time. However, changes in sensor signal intensity are not only affected by changes in capacitance between the finger or stylus and the sensor, but also by noise from factors such as the screen's drive signals, the overall metal materials, and other radio frequency signals. Since sensor interference sources are often unstable, touchscreens typically need to collect and identify noise under specific conditions to establish a noise baseline and mitigate its impact. However, noise can fluctuate significantly over a short period, leading to an excessively large or small baseline, resulting in issues such as automatic touch point skipping or no touch response. Summary of the Invention

[0003] This application provides a baseline establishment method, a baseline establishment device, an electronic device, and a computer-readable storage medium, which can reduce the impact of noise fluctuations on the baseline and reduce adverse phenomena such as screen automatic touch jumps or no touch response.

[0004] Firstly, this application provides a baseline establishment method, which is applied to a touchscreen. The baseline establishment method includes:

[0005] Obtain the absolute values ​​of the noise of the above touch screen for N frames, where N is an integer greater than 1;

[0006] Check whether the absolute values ​​of the noise in the above N frames meet the preset baseline calculation conditions;

[0007] If the absolute values ​​of the noise in the above N frames meet the baseline calculation conditions, then the baseline value is calculated based on the absolute values ​​of the noise in the above N frames.

[0008] A baseline is established based on the above baseline values.

[0009] Secondly, this application provides a baseline establishment apparatus, which is applied to a touch screen, and the baseline establishment apparatus includes:

[0010] The acquisition module is used to acquire the absolute values ​​of noise for N frames of the above-mentioned touch screen, where N is an integer greater than 1;

[0011] The first detection module is used to detect whether the absolute values ​​of the noise in the above N frames meet the preset baseline calculation conditions;

[0012] The calculation module is used to calculate the baseline value based on the absolute noise values ​​of the N frames if the absolute noise values ​​of the N frames meet the baseline calculation conditions.

[0013] A module is established to create a baseline based on the aforementioned baseline values.

[0014] Thirdly, this application provides an electronic device, which includes a memory, a processor, a touch screen, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the method described in the first aspect.

[0015] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method described in the first aspect above.

[0016] Fifthly, this application provides a computer program product comprising a computer program that, when executed by one or more processors, implements the steps of the method described in the first aspect.

[0017] The beneficial effects of this application compared to the prior art are as follows: First, the absolute noise values ​​of N frames of the touchscreen of the electronic device are obtained, where N is an integer greater than 1. Then, it is detected whether the absolute noise values ​​of the N frames meet the preset baseline calculation conditions. If the absolute noise values ​​of the N frames meet the baseline calculation conditions, a baseline value is calculated based on the absolute noise values ​​of the N frames, and a baseline is established based on the baseline value. The above process eliminates the influence of large fluctuations in noise on the baseline through the baseline calculation conditions, making the established baseline more in line with normal use requirements and reducing adverse phenomena such as automatic touch point skipping or no touch response. It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is an example diagram of a touchscreen template provided in an embodiment of this application;

[0020] Figure 2 This is a schematic diagram illustrating the implementation flow of the baseline establishment method provided in the embodiments of this application;

[0021] Figure 3 This is a structural block diagram of the baseline establishment apparatus provided in the embodiments of this application;

[0022] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0023] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0024] To illustrate the technical solution proposed in this application, specific embodiments are described below.

[0025] The baseline establishment method proposed in the embodiments of this application is described below. This baseline establishment method is applied to a touchscreen. To facilitate understanding of the scheme in the embodiments of this application, a brief introduction to the touchscreen is provided below: The touchscreen is actually composed of multiple touch panel sensors (TP sensors), each uniquely corresponding to a position on the touchscreen. Please refer to... Figure 1 , Figure 1 An example of a touchscreen template for a capacitive touchscreen is provided. Figure 1 The touchscreen comprises 48 rows and 42 columns of touchscreen sensors, totaling 2016 sensors. Each touchscreen sensor is connected to a corresponding touchscreen signal line via its own connection point, resulting in 2016 touchscreen signal lines. When the touchscreen requires baseline establishment, the steps proposed in the embodiments of this application can be executed.

[0026] When the touchscreen sensor is operational, it collects touch signals at a fixed frequency. For example, this frequency could be 240 Hz, meaning the sensor collects 240 frames of touch signals per second. When establishing a baseline, it is assumed that the user is not currently interacting with the touchscreen; that is, the touch signals collected by the sensor during baseline establishment are actually noise. Please refer to [link to relevant documentation]. Figure 2 The implementation process of this baseline establishment method is detailed below:

[0027] Step 201: Obtain the absolute value of the N frames of noise from the touchscreen.

[0028] In this embodiment, at each acquisition moment, the touchscreen obtains the signal quantity of the touch signals reported by each touchscreen sensor. It is understood that since the signal quantity here is actually noise, the value of the signal quantity can be positive or negative. After averaging all the signal quantities obtained at that acquisition moment, the noise value of one frame corresponding to the touchscreen at that acquisition moment can be obtained, and this noise value may be positive or negative. Since this embodiment mainly considers the fluctuation of noise, the absolute value of the obtained noise value can be taken to obtain the absolute noise value of one frame corresponding to the touchscreen at that acquisition moment. To eliminate occasional interference, this embodiment obtains the absolute noise values ​​of N frames of the touchscreen, where N is an integer greater than 1. As an example only, N can be 5.

[0029] In some embodiments, the absolute noise value of the N frames can specifically be: the absolute noise value of the N consecutive frames; that is, step 201 obtains the absolute noise value corresponding to the consecutive acquisition times.

[0030] Step 202: Detect whether the absolute value of noise in N frames meets the preset baseline calculation conditions.

[0031] In this embodiment, a baseline calculation condition can be preset. This baseline calculation condition is related to a preset first threshold and is mainly used to detect whether occasional excessive noise fluctuations occur. This first threshold can be set during the initial trial production of the touchscreen based on the absolute noise value captured under specific conditions and the absolute noise value captured during normal use (under non-specific conditions). The specific conditions can be: after the touchscreen changes from a sleep state to a wake-up state, such as after the touchscreen is powered on or after it is woken up.

[0032] As an example only, the maximum value of the absolute noise captured under specific conditions can be denoted as A; the median, average, or mode of the absolute noise captured during normal use can be denoted as B. Then, it can be set that: B ≤ first threshold < A.

[0033] In some embodiments, for the absolute values ​​of the N frames of noise to be detected, step 202 may specifically be as follows:

[0034] A1. Detect whether there is a first absolute noise value among the absolute noise values ​​of N frames.

[0035] A2. If there is no first absolute noise value among the absolute noise values ​​of N frames, then the absolute noise values ​​of N frames are determined to satisfy the baseline calculation conditions.

[0036] A3. If there is a first absolute noise value among the absolute noise values ​​of N frames, then it is determined that the absolute noise values ​​of N frames do not meet the baseline calculation conditions.

[0037] The first absolute noise value refers to the absolute noise value among the N frames that is greater than the first threshold. That is, step A1 can be understood as: for each frame of the N frames of absolute noise values, detecting whether the absolute noise value of that frame is greater than the first threshold; if so, the absolute noise value of that frame can be determined as the first absolute noise value. Only when there is no first absolute noise value among the N frames of absolute noise values ​​to be detected, that is, when all the absolute noise values ​​of the N frames are less than or equal to the first threshold, are the N frames of absolute noise values ​​considered to meet the baseline calculation conditions.

[0038] Step 203: If the absolute values ​​of noise in N frames meet the baseline calculation conditions, then calculate the baseline value based on the absolute values ​​of noise in N frames.

[0039] In this embodiment, when it is determined that the absolute noise values ​​of N frames meet the baseline calculation condition, the baseline value can be calculated based on these N absolute noise values. Specifically, the original values ​​(i.e., noise values) corresponding to the absolute noise values ​​of the N frames are averaged, and the result is the calculated baseline value. It can be understood that the previous steps were to determine whether the noise fluctuated significantly, thus considering the absolute noise value; while calculating the baseline value requires starting from the original value, that is, considering the N frame noise values ​​corresponding to the absolute noise values ​​of the N frames.

[0040] As an example only, assuming the noise values ​​of the 5 frames are X1, X2, X3, X4, and X5, the corresponding absolute noise values ​​of the 5 frames are |X1|, |X2|, |X3|, |X4|, and |X5|. Through step 202, if it is determined that |X1|, |X2|, |X3|, |X4|, and |X5| satisfy the baseline calculation conditions, then the baseline value... Obviously, the calculated baseline value X0 may be positive or negative.

[0041] Step 204: Establish a baseline based on the baseline value.

[0042] In this embodiment, a baseline can be established using the calculated baseline value. Based on the established baseline, it can be determined whether there is a touch operation. As an example, during normal use of the touchscreen, the formula used to determine whether a touchscreen location corresponding to any touchscreen sensor has been touched is: Judgment Signal Quantity = Detection Signal Quantity - X0. Here, the judgment signal quantity refers to the signal quantity used to determine whether the touchscreen location has been touched. Generally, when the judgment signal quantity is greater than a preset signal quantity threshold, it can be determined that the touchscreen location has been touched. The detection signal quantity refers to the signal quantity detected by the touchscreen sensor, including the signal quantity generated by noise and the signal quantity generated by actual touch. X0 refers to the baseline value used to establish the baseline.

[0043] Because existing technologies fail to account for significant noise fluctuations, the established baseline may be too high (i.e., a large positive number) or too low (i.e., a small negative number). If the baseline is too high, actual touch input may occur, but the calculated signal quantity is below a preset threshold, resulting in no touch response. If the baseline is too low, no actual touch input may occur, but the calculated signal quantity is above the preset threshold, leading to automatic touch skipping. To address this issue, this application fully considers significant noise fluctuations during baseline establishment. The baseline is calculated and established only when the absolute noise values ​​of N frames meet the baseline calculation conditions. This eliminates occasional large-amplitude noise, helping to establish a reasonable baseline.

[0044] In some embodiments, to ensure the normal establishment of the baseline and avoid the situation where baseline establishment is hindered when there are large fluctuations in noise, after detecting the presence of a first absolute noise value in the absolute noise values ​​of N frames, the baseline establishment method further includes:

[0045] Replace the first absolute noise value with the second absolute noise value, and return to step 202 based on the new N-frame absolute noise values ​​obtained after the replacement.

[0046] The second noise absolute value is acquired after the acquisition time of N frames of noise absolute values ​​where the first noise absolute value is detected, and the number of frames of the second noise absolute value is equal to the number of frames of the first noise absolute value. This process can be understood as follows: Assuming that there are M frames of first absolute noise values ​​(M is a positive integer not greater than N) among the N frames of absolute noise values, then M more frames of absolute noise values ​​can be obtained from the N frames of absolute noise values ​​in order of acquisition time from earliest to latest (and the acquisition times corresponding to the M frames of absolute noise values ​​are continuous). These M frames of absolute noise values ​​are the second absolute noise values. Then, the newly obtained M frames of second absolute noise values ​​replace the M frames of first absolute noise values ​​to obtain new N frames of absolute noise values. Based on the new N frames of absolute noise values, step 202 is executed again to detect whether the first absolute noise value still exists in the new N frames of absolute noise values ​​(which can be understood as: detecting whether the replaced second absolute noise value is greater than a preset first threshold, that is, detecting whether the replaced second absolute noise value contains the first absolute noise value). If the first absolute noise value is detected to still exist, new second absolute noise values ​​are obtained again until the first absolute noise value does not exist in the new N frames of absolute noise values.

[0047] As an example, assuming N is 5, the acquisition times are denoted as T1, T2, T3, ... in ascending order. The initial 5 frames of absolute noise values ​​are acquired at acquisition times T1 to T5, and these 5 frames of absolute noise values ​​are denoted as F1 to F5. If two first absolute noise values, F1 and F3, are detected among F1 to F5, then two consecutive frames of absolute noise values ​​will be acquired after T5, at acquisition times T6 and T7. T6 corresponds to the absolute noise value F6, and T7 corresponds to the absolute noise value F7, which are the second absolute noise values ​​in this case. F1 and F3 are replaced by F6 and F7, resulting in new 5 frames of absolute noise values: F2, F4, F5, F6, and F7. Based on these new 5 frames of absolute noise values, the presence of the first noise is then detected. The absolute value is determined by checking whether F6 and F7 are the first absolute noise values ​​(F2, F4, and F5 have already been checked). If F6 is also the first absolute noise value, one more frame of absolute noise values ​​is acquired after T7, at time T8. T8 corresponds to the acquisition of absolute noise value F8, which is the second absolute noise value in this case. F6 is replaced by F8, resulting in five new absolute noise values: F2, F4, F5, F7, and F8. Based on these five new absolute noise values, the existence of the first absolute noise value is checked again, specifically whether F8 is the first absolute noise value (F2, F4, F5, and F7 have already been checked). If F8 is not the first absolute noise value, subsequent steps can be performed based on these five new absolute noise values ​​(F2, F4, F5, F7, and F8).

[0048] In some embodiments, in order to further avoid the jitter that may be caused by low noise, after step 203, it can be detected whether the baseline value calculated in step 203 meets the preset baseline establishment conditions. If the baseline value does not meet the baseline establishment conditions, then return to execute step 201 and subsequent steps (that is, discard the current N frame noise absolute values ​​and re-acquire new N frame noise absolute values); accordingly, step 204 can be specifically manifested as: if the baseline value meets the baseline establishment conditions, then establish a baseline based on the baseline value.

[0049] The above process is a further detection of the baseline value calculated in step 203, which can be understood as detecting whether the baseline value is valid. If the baseline value meets the baseline establishment conditions, the baseline value is valid and a baseline can be established based on the baseline value. Otherwise, if the baseline value does not meet the baseline establishment conditions, the baseline value is invalid and it is necessary to return to step 201 and subsequent steps, that is, to re-obtain the absolute values ​​of the new N frames of noise to calculate the new baseline value, until the new baseline value meets the baseline establishment conditions, and then a baseline is established based on the new baseline value.

[0050] In the previous example, if the baseline values ​​calculated based on F2, F4, F5, F7, and F8 meet the baseline establishment conditions, then a baseline can be established based on these baseline values. Conversely, if the baseline values ​​calculated based on F2, F4, F5, F7, and F8 do not meet the baseline establishment conditions, then F2, F4, F5, F7, and F8 need to be discarded, and five new frames of absolute noise values ​​need to be acquired. The acquisition time of these five new frames of absolute noise values ​​is after the acquisition time of the original five frames of absolute noise values. As an example only, these five new frames of absolute noise values ​​can be acquired at acquisition times T9 to T13, corresponding to absolute noise values ​​F9 to F13 respectively, and steps 202 and subsequent steps can be continued based on F9 to F13, which will not be elaborated here.

[0051] In some embodiments, whether the baseline value meets the baseline establishment conditions can be detected in the following manner:

[0052] B1. Obtain the historical baseline value, where the historical baseline value is the baseline value used when the baseline was previously established.

[0053] The baseline values ​​used each time a baseline is established can be recorded in a pre-defined log file. This way, when establishing a new baseline, the baseline values ​​used in the previous baseline establishment can be retrieved from this log file. To avoid confusion, the baseline values ​​used in the previous baseline establishment will be referred to here as historical baseline values.

[0054] B2. Detect whether the absolute value of the difference between the historical baseline value and the baseline value obtained in step 203 is greater than the preset second threshold.

[0055] It is understandable that during normal use, the noise environment of each touchscreen sensor does not change significantly. Therefore, under normal circumstances, there will not be a large difference between two adjacent baseline values. Based on this, a certain number of baseline values ​​can be captured during the initial trial production phase to reference and set the second threshold. This second threshold can prevent excessive deviation in the overall absolute noise value captured during baseline establishment due to short-term abnormal fluctuations in external interference signals, thereby optimizing the baseline establishment process and reducing the occurrence of unsuitable baselines leading to automatic point jumps.

[0056] B3. If the absolute value of the difference is greater than the second threshold, then the baseline value obtained in step 203 is determined not to meet the baseline establishment conditions.

[0057] B4. If the absolute value of the difference is not greater than the second threshold, then the baseline value obtained in step 203 is determined to meet the baseline establishment conditions.

[0058] Since the touchscreen is most likely to generate significant noise fluctuations when it transitions from a screen-off state to a screen-on state, the baseline establishment method proposed in this application can be executed within a preset time after the touchscreen transitions from a screen-off state to a screen-on state. That is, the initial baseline after the touchscreen transitions from a screen-off state to a screen-on state can be established by executing step 201 and subsequent steps.

[0059] In addition, to address potential environmental changes during normal use of the touchscreen, the baseline establishment method proposed in this application embodiment can be periodically executed while the touchscreen is on. That is, the baseline can be updated during the touchscreen's on-screen process by periodically executing step 201 and subsequent steps. For example, while the touchscreen is on, the baseline establishment method proposed in this application embodiment can be executed every 2 seconds, allowing the touchscreen's baseline to be updated every 2 seconds.

[0060] It is understood that any electronic device equipped with a touchscreen can use the baseline establishment method provided in the embodiments of this application to establish a baseline for the touchscreen.

[0061] As can be seen from the above, through the embodiments of this application, the absolute noise values ​​of N frames of the touchscreen are first obtained, where N is an integer greater than 1. Then, it is detected whether the absolute noise values ​​of N frames meet the preset baseline calculation conditions. If the absolute noise values ​​of N frames meet the baseline calculation conditions, the baseline value is calculated based on the absolute noise values ​​of N frames, and a baseline is established based on the baseline value. The above process eliminates the influence of large fluctuations in noise on the baseline through the baseline calculation conditions, which makes the established baseline more in line with normal use requirements and reduces adverse phenomena such as automatic touch point jumps or no touch response.

[0062] Corresponding to the baseline establishment method provided above, this application also provides a baseline establishment apparatus. The baseline establishment apparatus described above is applied to a touchscreen. For example... Figure 3 As shown, the baseline establishment device 300 includes:

[0063] The acquisition module 301 is used to acquire the absolute value of N frames of noise of the above-mentioned touch screen, where N is an integer greater than 1;

[0064] The first detection module 302 is used to detect whether the absolute values ​​of the noise of the above N frames meet the preset baseline calculation conditions;

[0065] The calculation module 303 is used to calculate the baseline value based on the absolute values ​​of the noise of the N frames if the absolute values ​​of the noise of the N frames meet the baseline calculation conditions.

[0066] Module 304 is used to establish a baseline based on the above baseline values.

[0067] Optionally, the first detection module 302 mentioned above includes:

[0068] The first detection unit is used to detect whether there is a first absolute noise value among the above N frame noise absolute values, wherein the above first absolute noise value is greater than a preset first threshold.

[0069] The first determining unit is configured to determine that the absolute values ​​of the noise in the N frames satisfy the baseline calculation conditions if the first absolute value of noise does not exist in the absolute values ​​of the noise in the N frames.

[0070] The second determining unit is used to determine that if the absolute noise values ​​of the N frames contain the first absolute noise value, then the absolute noise values ​​of the N frames do not meet the baseline calculation conditions.

[0071] Optionally, the first detection module 302 further includes:

[0072] The replacement unit is configured to replace the first absolute noise value with a second absolute noise value if the first absolute noise value exists in the N frames of absolute noise values, wherein the acquisition time of the second absolute noise value is after the acquisition time of the N frames of absolute noise values, and the number of frames of the second absolute noise value is equal to the number of frames of the first absolute noise value.

[0073] The first detection unit is triggered to run again based on the new absolute noise values ​​of the N frames obtained after the replacement.

[0074] Optionally, the baseline establishment device 300 further includes:

[0075] The second detection module is used to detect whether the above baseline values ​​meet the preset baseline establishment conditions;

[0076] The aforementioned acquisition module 301 is triggered to run again when the aforementioned baseline value does not meet the aforementioned baseline establishment conditions;

[0077] Accordingly, the aforementioned establishment module 304 is specifically used to establish the baseline based on the aforementioned baseline value if the aforementioned baseline value meets the aforementioned baseline establishment conditions.

[0078] Optionally, the second detection module mentioned above includes:

[0079] An acquisition unit is used to acquire historical baseline values, wherein the historical baseline values ​​are the baseline values ​​used when the baseline was previously established;

[0080] The second detection unit is used to detect whether the absolute value of the difference between the above-mentioned historical baseline value and the above-mentioned baseline value is greater than a preset second threshold.

[0081] The third determining unit is used to determine that the baseline value does not meet the baseline establishment conditions if the absolute value of the difference is greater than the second threshold.

[0082] The fourth determining unit is used to determine that the baseline value satisfies the baseline establishment condition if the absolute value of the difference is not greater than the second threshold.

[0083] Optionally, the acquisition module 301 is triggered to run within a preset time after the touch screen changes from a screen-off state to a screen-on state.

[0084] Optionally, the acquisition module 301 is periodically triggered to run when the touch screen is on, so as to realize the periodic update of the baseline in the on screen state.

[0085] As can be seen from the above, through the embodiments of this application, the absolute noise values ​​of N frames of the touchscreen are first obtained, where N is an integer greater than 1. Then, it is detected whether the absolute noise values ​​of N frames meet the preset baseline calculation conditions. If the absolute noise values ​​of N frames meet the baseline calculation conditions, the baseline value is calculated based on the absolute noise values ​​of N frames, and a baseline is established based on the baseline value. The above process eliminates the influence of large fluctuations in noise on the baseline through the baseline calculation conditions, which makes the established baseline more in line with normal use requirements and reduces adverse phenomena such as automatic touch point jumps or no touch response.

[0086] Corresponding to the baseline establishment method provided above, this application also provides an electronic device. Please refer to... Figure 4 The electronic device 4 in this application embodiment includes: a memory 401, and one or more processors 402. Figure 4 (Only one is shown in the image), a touchscreen 403, and a computer program stored in memory 401 and executable on processor 402. Memory 401 stores software programs and units. Processor 402 executes various functional applications and diagnostics by running the software programs and units stored in memory 401 to obtain resources corresponding to the aforementioned preset events. Specifically, processor 402 performs the following steps when running the aforementioned computer program stored in memory 401:

[0087] Obtain the absolute value of the noise of the above touch screen 403 for N frames, where N is an integer greater than 1;

[0088] Check whether the absolute values ​​of the noise in the above N frames meet the preset baseline calculation conditions;

[0089] If the absolute values ​​of the noise in the above N frames meet the baseline calculation conditions, then the baseline value is calculated based on the absolute values ​​of the noise in the above N frames.

[0090] A baseline is established based on the above baseline values.

[0091] Assuming the above is the first possible implementation, in the second possible implementation provided based on the first possible implementation, the detection of whether the absolute value of the N frame noise meets the preset baseline calculation conditions includes:

[0092] Detect whether there is a first absolute noise value among the absolute noise values ​​of the above N frames, wherein the first absolute noise value is greater than a preset first threshold;

[0093] If the first absolute noise value is not present in the absolute noise values ​​of the above N frames, then the absolute noise values ​​of the above N frames are determined to satisfy the above baseline calculation conditions.

[0094] If the aforementioned first absolute noise value exists among the aforementioned N frame noise absolute values, then it is determined that the aforementioned N frame noise absolute values ​​do not meet the aforementioned baseline calculation conditions.

[0095] In a third possible implementation based on the second possible implementation described above, after detecting whether a first absolute noise value exists in the absolute noise values ​​of the N frames, the processor 402 further performs the following steps when running the computer program stored in the memory 401:

[0096] If the first absolute noise value exists in the above N frames of absolute noise values, then the second absolute noise value replaces the first absolute noise value, wherein the acquisition time of the second absolute noise value is after the acquisition time of the above N frames of absolute noise values, and the number of frames of the second absolute noise value is equal to the number of frames of the first absolute noise value.

[0097] Based on the new absolute noise values ​​of the N frames obtained after the replacement, return to the above steps of checking whether the absolute noise values ​​of the N frames meet the preset baseline calculation conditions and subsequent steps.

[0098] In the fourth possible implementation provided based on the first possible implementation described above, after calculating the baseline value based on the absolute value of the N frame noise, the processor 402 further performs the following steps when running the computer program stored in the memory 401:

[0099] Check whether the above baseline values ​​meet the preset baseline establishment conditions;

[0100] If the above baseline value does not meet the above baseline establishment conditions, then return to the above steps of obtaining the absolute value of the N frames of noise of the above touch screen 403 and subsequent steps.

[0101] Accordingly, the establishment of a baseline based on the aforementioned baseline values ​​includes:

[0102] If the above baseline values ​​meet the above baseline establishment conditions, then the above baselines are established based on the above baseline values.

[0103] In the fifth possible implementation provided based on the fourth possible implementation described above, the detection of whether the baseline value meets the preset baseline establishment conditions includes:

[0104] Obtain historical baseline values, where the historical baseline values ​​are the baseline values ​​used when the baseline was previously established;

[0105] Detect whether the absolute value of the difference between the above historical baseline value and the above baseline value is greater than a preset second threshold;

[0106] If the absolute value of the above difference is greater than the above second threshold, then it is determined that the above baseline value does not meet the above baseline establishment conditions;

[0107] If the absolute value of the above difference is not greater than the above second threshold, then the above baseline value is determined to meet the above baseline establishment conditions.

[0108] In the sixth possible implementation provided based on the first possible implementation, or the second possible implementation, or the third possible implementation, or the fourth possible implementation, or the fifth possible implementation, the step of obtaining the absolute value of the N frames of noise of the touch screen 403 and subsequent steps are executed within a preset time after the touch screen 403 changes from a screen-off state to a screen-on state.

[0109] In the seventh possible implementation provided based on the first possible implementation, or the second possible implementation, or the third possible implementation, or the fourth possible implementation, or the fifth possible implementation, the step of obtaining the absolute value of the N frames of noise of the touch screen 403 and subsequent steps are periodically executed in the screen-on state of the touch screen 403 to achieve periodic updates of the baseline in the screen-on state.

[0110] It should be understood that, in the embodiments of this application, the processor 402 may be a central processing unit (CPU), but it may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0111] Memory 401 may include read-only memory and random access memory, and provides instructions and data to processor 402. Some or all of memory 401 may also include non-volatile random access memory. For example, memory 401 may also store device category information.

[0112] As can be seen from the above, through the embodiments of this application, the absolute noise values ​​of N frames of the touchscreen are first obtained, where N is an integer greater than 1. Then, it is detected whether the absolute noise values ​​of N frames meet the preset baseline calculation conditions. If the absolute noise values ​​of N frames meet the baseline calculation conditions, the baseline value is calculated based on the absolute noise values ​​of N frames, and a baseline is established based on the baseline value. The above process eliminates the influence of large fluctuations in noise on the baseline through the baseline calculation conditions, which makes the established baseline more in line with normal use requirements and reduces adverse phenomena such as automatic touch point jumps or no touch response.

[0113] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the above device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0114] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0115] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of external device software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0116] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules or units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.

[0117] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0118] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing associated hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer-readable storage device, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the contents of the aforementioned computer-readable storage media may be appropriately added to or subtracted from the contents according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media may not include electrical carrier signals and telecommunication signals.

[0119] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A baseline establishment method, characterized in that, The baseline establishment method is applied to a touchscreen, and the baseline establishment method includes: Obtain the absolute values ​​of noise for N frames of the touchscreen, where N is an integer greater than 1; Detect whether the absolute value of the noise in the N frames meets the preset baseline calculation conditions; If the absolute values ​​of the noise in the N frames satisfy the baseline calculation conditions, then the baseline value is calculated based on the absolute values ​​of the noise in the N frames. A baseline is established based on the baseline value; The step of detecting whether the absolute value of the noise in the N frames meets the preset baseline calculation conditions includes: Detect whether there is a first absolute noise value among the absolute noise values ​​of the N frames, wherein the first absolute noise value is greater than a preset first threshold; If the first absolute noise value is not present in the absolute noise values ​​of the N frames, then the absolute noise values ​​of the N frames are determined to satisfy the baseline calculation condition. If the first absolute noise value exists in the N frames of absolute noise values, then it is determined that the N frames of absolute noise values ​​do not meet the baseline calculation conditions, and the first absolute noise value is replaced by the second absolute noise value. The second absolute noise value is acquired after the acquisition time of the N frames of absolute noise values, and the number of frames of the second absolute noise value is equal to the number of frames of the first absolute noise value. Based on the new N frames of absolute noise obtained after the replacement, return to the step of detecting whether the first absolute noise value exists among the N frames of absolute noise values ​​and subsequent steps.

2. The baseline establishment method as described in claim 1, characterized in that, After calculating the baseline value based on the absolute values ​​of the N frames of noise, the baseline establishment method further includes: Detect whether the baseline value meets the preset baseline establishment conditions; If the baseline value does not meet the baseline establishment condition, then return to the step of obtaining the absolute value of the N frames of noise of the touch screen and subsequent steps; Accordingly, establishing a baseline based on the baseline value includes: If the baseline value meets the baseline establishment conditions, then the baseline is established based on the baseline value.

3. The baseline establishment method as described in claim 2, characterized in that, The step of detecting whether the baseline value meets the preset baseline establishment conditions includes: Obtain historical baseline values, wherein the historical baseline values ​​are the baseline values ​​used when the baseline was previously established; Detect whether the absolute value of the difference between the historical baseline value and the baseline value is greater than a preset second threshold; If the absolute value of the difference is greater than the second threshold, then the baseline value is determined not to meet the baseline establishment conditions; If the absolute value of the difference is not greater than the second threshold, then the baseline value is determined to meet the baseline establishment condition.

4. The baseline establishment method as described in any one of claims 1 to 3, characterized in that, The step of obtaining the absolute value of the noise of the N frames of the touch screen and subsequent steps are executed within a preset time after the touch screen changes from the off state to the on state.

5. The baseline establishment method according to any one of claims 1 to 3, characterized in that, The step of obtaining the absolute value of the noise of the N frames of the touch screen and subsequent steps are periodically executed when the touch screen is on, so as to realize the periodic update of the baseline in the screen-on state.

6. A baseline establishment device, characterized in that, The baseline establishment device is applied to a touchscreen, and the baseline establishment device includes: The acquisition module is used to acquire the absolute noise values ​​of N frames of the touch screen, where N is an integer greater than 1; The first detection module is used to detect whether the absolute value of the noise of the N frames meets the preset baseline calculation conditions; The calculation module is used to calculate the baseline value based on the absolute noise values ​​of the N frames if the absolute noise values ​​of the N frames satisfy the baseline calculation conditions. Establishment module, used to establish a baseline based on the baseline value; The first detection module includes: The first detection unit is used to detect whether there is a first absolute noise value among the absolute noise values ​​of the N frames, wherein the first absolute noise value is greater than a preset first threshold. The first determining unit is configured to determine that the absolute noise values ​​of the N frames satisfy the baseline calculation condition if the first absolute noise value is not present in the absolute noise values ​​of the N frames. The second determining unit is configured to determine that the absolute noise values ​​of the N frames do not meet the baseline calculation conditions if the first absolute noise value exists in the absolute noise values ​​of the N frames. The replacement unit is configured to replace the first absolute noise value with a second absolute noise value if the first absolute noise value exists in the N frames of absolute noise values, wherein the acquisition time of the second absolute noise value is after the acquisition time of the N frames of absolute noise values, and the number of frames of the second absolute noise value is equal to the number of frames of the first absolute noise value. The first detection unit is triggered to run again based on the new absolute noise values ​​of the N frames obtained after the replacement.

7. An electronic device comprising a memory, a processor, a touchscreen, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Baseline updating method and touch device

    CN102855032A