Touch screen calibration method and apparatus, electronic device, medium, and program product

By calibrating the reference capacitance value in the touchscreen, the problem of touch operation misjudgment caused by water droplets, hand sweat, etc. is solved, and the reliability of touch operation response of electronic devices is improved.

CN122195280APending Publication Date: 2026-06-12GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2024-12-11
Publication Date
2026-06-12

Smart Images

  • Figure CN122195280A_ABST
    Figure CN122195280A_ABST
Patent Text Reader

Abstract

The application relates to a touch screen calibration method, device, electronic equipment, medium and program product. The method is used for an electronic equipment comprising a touch screen, and comprises the following steps: acquiring mutual capacitance values of each capacitive node in the touch screen and a self-capacitance value of the touch screen; in the case that a touch operation is detected according to the mutual capacitance values, determining whether a reference capacitance value of the touch screen needs to be calibrated according to the self-capacitance value; if the reference capacitance value needs to be calibrated, calibrating the reference capacitance value, and determining whether the touch operation is valid based on the calibrated reference capacitance value. The method can improve the response reliability of the electronic equipment to the touch operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of touch screen technology, and in particular to a touch screen calibration method, apparatus, electronic device, medium, and program product. Background Technology

[0002] Currently, many electronic devices such as smartphones and tablets are equipped with touchscreens. Users can touch the touchscreen to interact with the electronic device, and the electronic device responds to the detected touch operation to realize various functions of the electronic device.

[0003] However, in some use cases, electronic devices have poor reliability in responding to touch operations. Summary of the Invention

[0004] Therefore, it is necessary to provide a touchscreen calibration method, apparatus, electronic device, medium, and program product to address the aforementioned technical problems, thereby improving the reliability of electronic devices in responding to touch operations.

[0005] Firstly, this application provides a method for calibrating a touchscreen. This touchscreen calibration method is used in an electronic device, which includes a touchscreen, and the method includes:

[0006] Obtain the mutual capacitance value of each capacitive node in the touchscreen and the self-capacitance value of the touchscreen.

[0007] If a touch operation is detected based on the mutual capacitance values, the reference capacitance value of the touch screen is determined based on the self-capacitance value to determine whether calibration is required.

[0008] If the reference capacitance value needs to be calibrated, the reference capacitance value is calibrated, and the validity of the touch operation is determined based on the calibrated reference capacitance value.

[0009] Secondly, this application also provides a calibration device for a touchscreen. This touchscreen calibration device is used in an electronic device, which includes a touchscreen, and the device includes:

[0010] The acquisition module is used to acquire the mutual capacitance value of each capacitive node in the touch screen and the self-capacitance value of the touch screen.

[0011] The determination module is used to determine whether the reference capacitance value of the touch screen needs to be calibrated based on the self-capacitance value when a touch operation is detected based on each mutual capacitance value.

[0012] The calibration module is used to calibrate the reference capacitance value if calibration is required, and to determine whether the touch operation is valid based on the calibrated reference capacitance value.

[0013] Thirdly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in the first aspect above.

[0014] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect above.

[0015] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect above.

[0016] The aforementioned touchscreen calibration method, apparatus, electronic device, medium, and program product involve an electronic device acquiring the mutual capacitance values ​​of each capacitive node in its touchscreen and the self-capacitance value of the touchscreen. When a touch operation is detected based on the mutual capacitance values, the device determines whether the reference capacitance value of the touchscreen needs calibration based on the self-capacitance value. If calibration is required, the reference capacitance value is calibrated, and then the validity of the touch operation is determined based on the calibrated reference capacitance value. Thus, when the electronic device detects a touch operation, it first determines whether the reference capacitance value needs calibration based on the touchscreen's self-capacitance value. If calibration is required, the reference capacitance value is calibrated first, and then the validity of the touch operation is determined based on the calibrated reference capacitance value. This avoids the problem of incorrect verification of touch operations when the reference capacitance value is inaccurate, such as a situation where a user-input touch operation is valid, but the electronic device determines the touch operation as invalid based on the uncalibrated reference capacitance value, resulting in a touchscreen unresponsiveness. This embodiment improves the reliability of the electronic device's response to touch operations. Attached Figure Description

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

[0018] Figure 1 This is a schematic diagram of an electronic device in one embodiment;

[0019] Figure 2 This is a flowchart illustrating a touchscreen calibration method in one embodiment;

[0020] Figure 3This is a schematic diagram of an exemplary transmit channel and receive channel in another embodiment;

[0021] Figure 4 This is a schematic diagram illustrating the mutual capacitance values ​​of each capacitor node in another embodiment;

[0022] Figure 5 This is a flowchart illustrating step 202 in another embodiment;

[0023] Figure 6 This is a schematic diagram illustrating, in another embodiment, the mutual capacitance values ​​of each capacitor node, the first self-capacitance value of each transmitting channel, and the second self-capacitance value of each receiving channel.

[0024] Figure 7 This is a flowchart illustrating step 203 in another embodiment;

[0025] Figure 8 This is a flowchart illustrating a touchscreen calibration method in another embodiment;

[0026] Figure 9 This is a structural block diagram of a touchscreen calibration device in one embodiment;

[0027] Figure 10 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0029] With the development of touchscreen technology, many electronic devices such as smartphones and tablets are equipped with touchscreens. Users can touch the touchscreen to interact with the electronic device, and the electronic device responds to the detected touch operation to realize various functions of the electronic device.

[0030] The inventors of this application discovered through extensive experimental research during the research and development process that some current touch detection algorithms, when detecting a touch operation in the mutual capacitance area of ​​the touchscreen, use the self-capacitance value corresponding to the touch area to verify whether the touch operation is valid. However, the self-capacitance value is calculated based on the reference capacitance value of the touchscreen. In some cases, due to the presence of water droplets, hand sweat, or touch during power-on, the obtained reference capacitance value may be inaccurate. This leads to a deviation in the self-capacitance value, resulting in misjudgment of the touch operation. For example, the user's touch operation may be valid, but the electronic device may determine that the touch operation is invalid based on the deviated self-capacitance value, resulting in the touchscreen not responding and causing poor reliability of the electronic device's response to touch operations.

[0031] Therefore, embodiments of this application provide a calibration method, apparatus, electronic device, medium, and program product for a touch screen, which can improve the reliability of the electronic device's response to touch operations.

[0032] The touchscreen calibration method provided in this application can be applied to electronic devices, including but not limited to various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can include virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.

[0033] In this embodiment, the electronic device is equipped with a touchscreen, which may be a capacitive touchscreen (hereinafter referred to as a touchscreen). Taking a smartphone as an example, see [link to relevant documentation]. Figure 1 , Figure 1 This is a schematic diagram of an exemplary implementation environment for the touchscreen calibration method provided in this application embodiment, wherein the smartphone 10 includes a capacitive touchscreen 101.

[0034] Of course, the way touchscreens are set up in smartphones is not limited to this. This application does not impose specific limitations on this. For example, smartphones can also be foldable smartphones. As the form factor of smartphones changes, the way touchscreens are set up also changes, and so on.

[0035] In one exemplary embodiment, such as Figure 2 As shown, a calibration method for a touchscreen is provided, which is applied to... Figure 1 Taking the electronic device shown as an example, the calibration method for this touchscreen includes the following steps 201 to 203:

[0036] Step 201: Obtain the mutual capacitance value of each capacitor node in the touch screen and the self-capacitance value of the touch screen.

[0037] In this embodiment of the application, the touch screen may include multiple transmitting channels and multiple receiving channels. The multiple transmitting channels are arranged sequentially along a first direction in the touch screen, and the multiple receiving channels are arranged sequentially along a second direction in the touch screen to form a baseline array (or electrode matrix). The first direction and the second direction are perpendicular. The transmitting channel can be an emitter, and the receiving channel can be a receiver.

[0038] For example, such as Figure 3 As shown, multiple transmitting channels are arranged sequentially along the width direction of the touchscreen (a first direction, in an exemplary manner), and multiple receiving channels are arranged sequentially along the height direction of the touchscreen (a second direction, in an exemplary manner). The intersection of a transmitting channel and a receiving channel constitutes a capacitor node.

[0039] When a touchscreen is working, that is, when current flows through the drive line, mutual capacitance is formed between the transmitting and receiving channels. That is, a corresponding mutual capacitance value is formed at each capacitor node of the touchscreen. The electronic device can sample the capacitance data to obtain the mutual capacitance value of each capacitor node. When a finger or other conductor approaches or touches the touchscreen, the mutual capacitance value of each capacitor node in the corresponding touch area will change.

[0040] When a touchscreen is working, a self-capacitance is formed between the touchscreen surface and the interior of the touchscreen. This is because when a finger or other conductor touches the touchscreen surface, an electric field is formed between the touchscreen surface and the interior of the touchscreen, thereby generating capacitance. The size of this capacitance depends on factors such as the geometry, material, and surface condition of the touchscreen, and this size is the self-capacitance value of the touchscreen.

[0041] In this embodiment of the application, the self-capacitance value may refer to the self-capacitance value collected by the transmitting channel and / or the self-capacitance value collected by the receiving channel in the touch screen.

[0042] Optionally, the self-capacitance value of the touch screen acquired by the electronic device may include the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen, that is, it includes the self-capacitance values ​​of all transmitting channels and all receiving channels in the touch screen.

[0043] Optionally, the self-capacitance value of the touch screen acquired by the electronic device may include a first target self-capacitance value of the target transmitting channel corresponding to the touch area in the touch screen, and a second target self-capacitance value of the target receiving channel corresponding to the touch area. The touch area corresponds to the touch operation, and the touch area is the area touched by the touch operation in the touch screen.

[0044] Step 202: If a touch operation is detected based on the mutual capacitance values, determine whether the reference capacitance value of the touch screen needs to be calibrated based on the self-capacitance value.

[0045] As mentioned above, when a finger or other conductor approaches or touches the touchscreen, the mutual capacitance value of each capacitor node in the corresponding touch area changes. Therefore, the presence of a touch operation on the touchscreen can be detected by the change in the mutual capacitance value.

[0046] For example, the electronic device can identify the mutual capacitance value of each capacitor node. If it is found that the mutual capacitance value of at least N adjacent capacitor nodes is greater than a certain preset mutual capacitance threshold, it is determined that a touch operation has been detected. N can be set by the device during implementation, and the preset mutual capacitance threshold can be set as needed during implementation.

[0047] See Figure 4 , Figure 4 This is an example of the mutual capacitance values ​​of each capacitive node in a touchscreen.

[0048] like Figure 4 As shown, the mutual capacitance value of the capacitor node formed by the receiving channel R19 and the transmitting channel T12 is 450, the mutual capacitance value of the capacitor node formed by the receiving channel R20 and the transmitting channel T12 is 363, the mutual capacitance value of the capacitor node formed by the receiving channel R19 and the transmitting channel T13 is 430, and the mutual capacitance value of the capacitor node formed by the receiving channel R20 and the transmitting channel T13 is 491. These four capacitor nodes are adjacent in the touch screen, and the mutual capacitance values ​​of these four capacitor nodes are all relatively large (greater than the preset capacitance threshold). Therefore, the electronic device determines that a touch operation has been detected, and the area where these four capacitor nodes are located in the touch screen is the touch area corresponding to the touch operation.

[0049] After an electronic device detects a touch operation, it needs to verify the validity of the touch operation by checking the self-capacitance value of the touch screen. In related technologies, if all the self-capacitance values ​​corresponding to the touch area are greater than a preset self-capacitance threshold (e.g., 150), the touch operation is considered valid and the device responds; otherwise, the touch operation is considered invalid and no response is given. However, since the self-capacitance value is calculated based on the touch screen's reference capacitance value, which is the original mutual capacitance value sampled when the touch screen is in a stable state (without fingers, styluses, water droplets, etc.), this process is problematic.

[0050] However, in some cases, the presence of water droplets, sweaty hands, or touch during power-on on the touchscreen can cause the obtained reference capacitance value to be inaccurate. This leads to a deviation in the self-capacitance value, resulting in misjudgment of touch operations. For example, the user's touch input may be valid, but the electronic device may determine that the touch operation is invalid based on the deviated self-capacitance value, resulting in the touchscreen becoming unresponsive.

[0051] Therefore, in this embodiment of the application, after the electronic device detects a touch operation, it does not immediately verify whether the touch operation is valid by combining the self-capacitance value of the touch screen. Instead, it first determines whether the reference capacitance value of the touch screen needs to be calibrated, that is, whether the reference capacitance value is accurate. If the reference capacitance value is inaccurate, it needs to be calibrated. Conversely, if the reference capacitance value is accurate, it does not need to be calibrated.

[0052] As can be seen from the above, the self-capacitance value is calculated based on the reference capacitance value of the touch screen. If the reference capacitance value is inaccurate, the calculated self-capacitance value will also be abnormal. Therefore, in this embodiment, the electronic device can determine whether the reference capacitance value of the touch screen needs to be calibrated based on the self-capacitance value of the touch screen.

[0053] For example, an electronic device can input the self-capacitance value of the touch screen into a pre-trained prediction model. During the training process, the prediction model fully learns the correlation between the self-capacitance value of the touch screen and the data label, which indicates whether the reference capacitance value of the touch screen needs to be calibrated or not. In this way, after the prediction model is trained, it can output the result of whether the reference capacitance value needs to be calibrated based on the input self-capacitance value of the touch screen.

[0054] Other possible implementations of determining whether the reference capacitance value of the touchscreen needs to be calibrated based on the touchscreen's self-capacitance value will be described in the embodiments below.

[0055] Step 203: If the reference capacitance value needs to be calibrated, the reference capacitance value is calibrated, and based on the calibrated reference capacitance value, it is determined whether the touch operation is effective.

[0056] If the reference capacitance value of the touch screen needs to be calibrated, the electronic device first calibrates the reference capacitance value to obtain a calibrated reference capacitance value. Then, the electronic device determines whether the touch operation is valid based on the calibrated reference capacitance value. This avoids the problem of incorrect verification of touch operation when the reference capacitance value is inaccurate, which may lead to the problem of incorrect verification of touch operation. For example, it is possible that the touch operation input by the user is valid, but the electronic device determines that the touch operation is invalid based on the uncalibrated reference capacitance value, resulting in the phenomenon of touch screen not responding. The embodiments of this application improve the reliability of the electronic device's response to touch operation.

[0057] In one embodiment, based on Figure 2 In the embodiment shown, the number of self-capacitance values ​​is multiple; see [link to example]. Figure 5 Step 202 may include Figure 5 Steps 501 and 502 are shown below:

[0058] Step 501: If a touch operation is detected based on each mutual capacitance value, detect whether there is an abnormal self-capacitance value in each capacitance value.

[0059] Step 502: If there is an abnormal self-capacitance value among the individual capacitance values, then it is determined that the reference capacitance value needs to be calibrated.

[0060] In this embodiment of the application, optionally, the multiple self-capacitance values ​​include the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen.

[0061] For example, see Figure 6 , Figure 6 This is an exemplary schematic diagram of the mutual capacitance values ​​of each capacitive node in a touchscreen, as well as the first self-capacitance value (WsT) of each transmit channel TX and the second self-capacitance value (WsR) of each receive channel RX.

[0062] Please combine Figure 6T0, T1, ..., T16 are 17 transmitting channels. The first self-capacitance values ​​of transmitting channels T0 to T16 are 0, 10, 32, 25, -7, 21, 90, -109, -1, -17, -320, -628, -404, -926, -2495, -3955, and -5884, respectively. R0, R1, ..., R37 are 38 receiving channels. The second self-capacitance values ​​of receiving channels R0 to R37 are... The values ​​are 847, 622, 192, 135, 31, 35, 16, 13, -16, -15, 24, -50, 3, -40, -25, -13, -34, -34, 80, 794, 1088, 303, 91, -22, -7, 34, 9, -56, -16, -31, 2, 14, 1, 12, 15, -17, -56, and 62. Multiple self-capacitance values ​​can include the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel.

[0063] Optionally, the multiple self-capacitance values ​​may include only the first target self-capacitance value of the target transmitting channel corresponding to the touch area in the touch screen, and the second target self-capacitance value of the target receiving channel corresponding to the touch area.

[0064] Please continue to combine Figure 6 As mentioned above, the areas where the four capacitor nodes formed by the receiving channel R19 and the transmitting channel T12, the receiving channel R20 and the transmitting channel T12, the receiving channel R19 and the transmitting channel T13, and the receiving channel R20 and the transmitting channel T13 are located in the touch screen are the touch areas corresponding to the touch operation.

[0065] The target transmission channel corresponding to the touch area can be the transmission channel T12 and T13 where the touch area is located. The first target self-capacitance value of the target transmission channel corresponding to the touch area is the first self-capacitance value of transmission channel T12 -404 and the first self-capacitance value of transmission channel T13 -926. The target receiving channel corresponding to the touch area can be the receiving channel R19 and R20 where the touch area is located. The second target self-capacitance value of the target receiving channel corresponding to the touch area is the second self-capacitance value of receiving channel R19 794 and the second self-capacitance value of receiving channel R20 1088.

[0066] Optionally, the target transmission channel corresponding to the touch area may include, in addition to the transmission channel where the touch area is located, one or more transmission channels surrounding the transmission channel where the touch area is located; and the target receiving channel corresponding to the touch area may include, in addition to the receiving channel where the touch area is located, one or more receiving channels surrounding the receiving channel where the touch area is located.

[0067] For example, taking the target transmission channel corresponding to the touch area as an example, combined with Figure 6 In addition to the transmission channels T12 and T13 where the touch area is located, the target transmission channel corresponding to the touch area may also include the transmission channels T11 and T0 adjacent to the transmission channel T12, and the transmission channel T14 adjacent to the transmission channel T13.

[0068] To determine whether there are abnormal self-capacitance values ​​among the capacitance values ​​obtained by the electronic device, the following describes three methods for detecting abnormal self-capacitance values ​​in the electronic device, combining the two forms of multiple self-capacitance values ​​mentioned above.

[0069] 1) The first method:

[0070] In the case of multiple self-capacitance values, including the first target self-capacitance value of the target transmission channel corresponding to the touch area in the touch screen and the second target self-capacitance value of the target reception channel corresponding to the touch area, the electronic device can detect whether there is a target self-capacitance value less than the first capacitance threshold among the first target self-capacitance value and the second target self-capacitance value. If there is at least one target self-capacitance value among the first target self-capacitance value and the second target self-capacitance value, it is determined that there is an abnormal self-capacitance value in each capacitance value, so as to realize the process of detecting whether there is an abnormal self-capacitance value in each capacitance value.

[0071] In this embodiment, the electronic device can detect whether there is a target self-capacitance value among the first target self-capacitance values ​​of multiple target transmission channels corresponding to the touch area and the second target self-capacitance values ​​of multiple target reception channels corresponding to the touch area. The target self-capacitance value can be a self-capacitance value that is less than a first capacitance threshold. Since the self-capacitance value is usually a positive value, the first capacitance threshold can be a negative value, for example, -150. When one or more target self-capacitance values ​​that are less than the first capacitance threshold appear in each of the first target self-capacitance values ​​and the second target self-capacitance values, it is determined that there is an abnormal self-capacitance value in each capacitance value.

[0072] like Figure 6 As shown, taking the target transmission channels corresponding to the touch area as transmission channels T12 and T13 where the touch area is located, and the target receiving channels corresponding to the touch area as receiving channels R19 and R20 where the touch area is located as examples, since there are target self-capacitance values ​​less than -150 in the first self-capacitance value of transmission channel T12 (-404) and the first self-capacitance value of transmission channel T13 (-926), it is determined that there are abnormal self-capacitance values.

[0073] Thus, when a touch operation is detected based on the mutual capacitance values, that is, when a finger touches the mutual capacitance area of ​​the touch screen, a capacitance sensing value is generated, and the data of the self-capacitance area corresponding to the touch area is obviously abnormal, with a target self-capacitance value less than the first capacitance threshold (such as less than -150), it is determined that there is an abnormal self-capacitance value in each capacitance value, and the reference capacitance value needs to be calibrated.

[0074] 2) The second method:

[0075] In the case of multiple self-capacitance values, including the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen, the electronic device can determine the first number of negative values ​​in each first self-capacitance value and each second self-capacitance value. If the first number is greater than the first number threshold, it is determined that there is an abnormal self-capacitance value in each capacitance value, so as to realize the process of detecting whether there is an abnormal self-capacitance value in each capacitance value.

[0076] In this embodiment, the electronic device can detect whether the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen are negative, and count the first number of negative values. If the first number exceeds the first number threshold, it indicates that there are too many negative values ​​in the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen. Since the self-capacitance value is usually positive, if there are too many negative values ​​in the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen, it indicates that there are abnormal self-capacitance values.

[0077] like Figure 6 As shown, assuming the first quantity threshold is 6, among the first self-capacitance values ​​of each transmitting channel and the second self-capacitance values ​​of each receiving channel in the touch screen, the first self-capacitance values ​​of transmitting channels T4 and T7-T16 are all negative, and the first quantity of negative values ​​is 11, which has exceeded the first quantity threshold of 6. Therefore, it is directly determined that there is an abnormal self-capacitance value.

[0078] 3) The third method:

[0079] In the case of multiple self-capacitance values ​​including the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen, the electronic device can determine a second number of target negative values ​​less than a second capacitance threshold among the first self-capacitance values ​​and the second self-capacitance values. If the second number is greater than the second number threshold, it is determined that there is an abnormal self-capacitance value among the respective capacitance values, so as to realize the process of detecting whether there is an abnormal self-capacitance value among the respective capacitance values. The second capacitance threshold is less than the first capacitance threshold, and the second number is less than the first number.

[0080] In this embodiment, the electronic device can detect whether the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen are negative, and determine the target negative value less than the second capacitance threshold from the negative values. The second capacitance threshold is negative and is near the minimum value among the negative values ​​(i.e., the difference between the second capacitance threshold and the minimum value among the negative values ​​is less than the difference threshold). The second number of target negative values ​​is counted. If the second number is greater than the second number threshold, it indicates that there are many negative values ​​(i.e., target negative values) less than a certain degree among the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen, which indicates that there are abnormal self-capacitance values.

[0081] like Figure 6 As shown, assuming the second capacitance threshold is -2000 and the second quantity threshold is 2, the first self-capacitance values ​​of each transmitting channel and the second self-capacitance values ​​of each receiving channel in the touch screen are -2495, -3955, and -5884, respectively. These values ​​are all less than the second capacitance threshold and are target negative values. However, the second quantity 3 of the target negative value is greater than the second quantity threshold 2. Therefore, it is directly determined that there is an abnormal self-capacitance value.

[0082] Thus, through any of the above embodiments, the electronic device can detect whether there are abnormal self-capacitance values ​​in the respective capacitance values ​​of the touch screen. The presence of abnormal self-capacitance values ​​indicates that the reference capacitance value of the touch screen needs to be calibrated. Due to the temperature drift phenomenon caused by touch operation, the current original data will change continuously, while the reference capacitance value of the touch screen does not change. When the noise is relatively large, the reference capacitance value will be set not to be updated. Over a long period of time, abnormal self-capacitance values ​​will appear. The embodiments of this application can solve the problem of touch unresponsiveness by monitoring and restoring the reference capacitance value of the touch screen.

[0083] In one embodiment, based on any of the above embodiments, see [link to embodiment]. Figure 7 In this embodiment, step 203 may include Figure 7 Steps 701 to 703 are shown below:

[0084] Step 701: If the reference capacitance value needs to be calibrated, then each mutual capacitance value is determined as the calibrated reference capacitance value.

[0085] When it is determined through any of the above embodiments that the reference capacitance value of the touch screen needs to be calibrated, the collected value is assigned to the reference capacitance value to achieve the calibration of the reference capacitance value.

[0086] Step 702: Based on the calibrated reference capacitance value, determine the first updated self-capacitance value of the target transmission channel corresponding to the touch area in the touch screen, and the second updated self-capacitance value of the target reception channel corresponding to the touch area.

[0087] The electronic device uses the calibrated reference capacitance value to recalculate the first updated self-capacitance value of the target transmission channel corresponding to the touch area, and the second updated self-capacitance value of the target reception channel corresponding to the touch area.

[0088] Step 703: Determine whether the touch operation is valid based on the first updated self-capacitance value and the second updated self-capacitance value.

[0089] The electronic device uses a first updated self-capacitance value and a second updated self-capacitance value to determine whether a touch operation is valid. For example, if both the first updated self-capacitance value and the second updated self-capacitance value are greater than a preset self-capacitance threshold (e.g., 150), the touch operation is determined to be valid and the touch operation is responded to; otherwise, the touch operation is determined to be invalid and the touch operation is not responded to.

[0090] In this embodiment, when an electronic device detects a touch operation, it first determines whether its reference capacitance value needs calibration based on the self-capacitance value of the touchscreen. If calibration is required, the collected value is assigned to the reference capacitance value to calibrate it. Then, based on the calibrated reference capacitance value, a first updated self-capacitance value and a second updated self-capacitance value are calculated. Finally, based on the first updated self-capacitance value and the second updated self-capacitance value, the validity of the touch operation is determined. Since the reference capacitance value is updated, the accuracy of the first updated self-capacitance value and the second updated self-capacitance value can be improved, thereby achieving reliable verification of the validity of the touch operation and improving the reliability of the electronic device's response to touch operations.

[0091] In one embodiment, a touchscreen calibration method is provided for an electronic device, the electronic device including a touchscreen, see [link to relevant documentation]. Figure 8 It includes the following steps:

[0092] Step 801: Obtain the mutual capacitance value of each capacitor node in the touch screen and multiple self-capacitance values ​​of the touch screen. The multiple self-capacitance values ​​include at least the first target self-capacitance value of the target transmitting channel corresponding to the touch area in the touch screen and the second target self-capacitance value of the target receiving channel corresponding to the touch area.

[0093] The touch area corresponds to the touch operation.

[0094] Step 802: Detect whether a touch operation exists based on each mutual capacitance value.

[0095] Step 803: If a touch operation is present, detect whether there is a target self-capacitance value less than the first capacitance threshold among the first target self-capacitance value and the second target self-capacitance value.

[0096] Step 804: If at least one of the first target self-capacitance value and the second target self-capacitance value exists, it is determined that there is an abnormal self-capacitance value in each of the respective capacitance values, and it is determined that the reference capacitance value needs to be calibrated.

[0097] Step 805: Determine each mutual capacitance value as the calibrated reference capacitance value.

[0098] Step 806: Based on the calibrated reference capacitance value, determine the first updated self-capacitance value of the target transmission channel corresponding to the touch area in the touch screen, and the second updated self-capacitance value of the target reception channel corresponding to the touch area.

[0099] Step 807: Determine whether the touch operation is valid based on the first updated self-capacitance value and the second updated self-capacitance value.

[0100] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0101] Based on the same inventive concept, this application also provides a touchscreen calibration apparatus for implementing the aforementioned touchscreen calibration method. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations of the one or more touchscreen calibration apparatus embodiments provided below can be found in the limitations of the touchscreen calibration method described above, and will not be repeated here.

[0102] In one exemplary embodiment, such as Figure 9 As shown, a touchscreen calibration device is provided for an electronic device, the electronic device including a touchscreen, the device comprising:

[0103] The acquisition module 901 is used to acquire the mutual capacitance value of each capacitor node in the touch screen and the self-capacitance value of the touch screen.

[0104] The determining module 902 is used to determine whether the reference capacitance value of the touch screen needs to be calibrated based on the self-capacitance value when a touch operation is detected based on the mutual capacitance values.

[0105] The calibration module 903 is used to calibrate the reference capacitance value if the reference capacitance value needs to be calibrated, and to determine whether the touch operation is valid based on the calibrated reference capacitance value.

[0106] In one embodiment, the number of self-capacitance values ​​is multiple, and the determining module 902 includes:

[0107] The detection unit is used to detect whether there are any abnormal self-capacitance values ​​among the self-capacitance values;

[0108] The determining unit is configured to determine that the reference capacitance value needs to be calibrated if there is an abnormal self-capacitance value among the self-capacitance values.

[0109] In one embodiment, the plurality of self-capacitance values ​​include a first target self-capacitance value of a target transmitting channel corresponding to a touch area in the touch screen, and a second target self-capacitance value of a target receiving channel corresponding to the touch area, wherein the touch area corresponds to the touch operation.

[0110] In one embodiment, the detection unit is specifically used to detect whether there is a target self-capacitance value less than a first capacitance threshold among the first target self-capacitance value and the second target self-capacitance value; if there is at least one of the target self-capacitance values ​​among the first target self-capacitance value and the second target self-capacitance value, then it is determined that there is an abnormal self-capacitance value among each of the self-capacitance values.

[0111] In one embodiment, the plurality of self-capacitance values ​​include a first self-capacitance value for each transmitting channel and a second self-capacitance value for each receiving channel in the touchscreen.

[0112] In one embodiment, the detection unit is specifically used to determine a first number of negative values ​​among each of the first self-capacitance values ​​and each of the second self-capacitance values; if the first number is greater than a first number threshold, it is determined that there is an abnormal self-capacitance value among each of the self-capacitance values.

[0113] In one embodiment, the detection unit is specifically used to determine a second number of target negative values ​​less than a second capacitance threshold among each of the first self-capacitance values ​​and each of the second self-capacitance values; if the second number is greater than the second number threshold, it is determined that there is an abnormal self-capacitance value among each of the self-capacitance values.

[0114] In one embodiment, the calibration module 903 is specifically used to determine each of the mutual capacitance values ​​as the calibrated reference capacitance value.

[0115] In one embodiment, the calibration module 903 is further specifically used to determine, based on the calibrated reference capacitance value, a first updated self-capacitance value of the target transmitting channel corresponding to the touch area in the touch screen, and a second updated self-capacitance value of the target receiving channel corresponding to the touch area, wherein the touch area corresponds to the touch operation; and to determine whether the touch operation is valid based on the first updated self-capacitance value and the second updated self-capacitance value.

[0116] The modules in the aforementioned touchscreen calibration device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the corresponding operations of each module.

[0117] In one exemplary embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 10 As shown. The electronic device includes a touchscreen ( Figure 10 (Not shown), the electronic device also includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a touchscreen calibration method. The display unit of the electronic device forms a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.

[0118] Those skilled in the art will understand that Figure 10The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0119] This application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of a touchscreen calibration method.

[0120] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform a touchscreen calibration method.

[0121] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0122] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0123] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0124] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A calibration method for a touchscreen, characterized in that, For an electronic device, the electronic device including a touchscreen, the method includes: Obtain the mutual capacitance value of each capacitor node in the touch screen and the self-capacitance value of the touch screen; If a touch operation is detected based on the mutual capacitance values, it is determined whether the reference capacitance value of the touch screen needs to be calibrated based on the self capacitance value. If the reference capacitance value needs to be calibrated, the reference capacitance value is calibrated, and the validity of the touch operation is determined based on the calibrated reference capacitance value.

2. The method according to claim 1, characterized in that, The number of self-capacitance values ​​is multiple, and the step of determining whether the reference capacitance value of the touchscreen needs to be calibrated based on the self-capacitance values ​​includes: Detect whether there are any abnormal self-capacitance values ​​among the stated self-capacitance values; If any of the self-capacitance values ​​are abnormal, then the reference capacitance value needs to be calibrated.

3. The method according to claim 2, characterized in that, The plurality of self-capacitance values ​​include a first target self-capacitance value of the target transmitting channel corresponding to the touch area in the touch screen, and a second target self-capacitance value of the target receiving channel corresponding to the touch area, wherein the touch area corresponds to the touch operation.

4. The method according to claim 3, characterized in that, The detection of whether there is an abnormal self-capacitance value among the self-capacitance values ​​includes: Detect whether there is a target self-capacitance value less than the first capacitance threshold among the first target self-capacitance value and the second target self-capacitance value; If at least one of the target self-capacitance values ​​exists among the first target self-capacitance value and the second target self-capacitance value, then it is determined that there is an abnormal self-capacitance value among the self-capacitance values.

5. The method according to claim 2, characterized in that, The multiple self-capacitance values ​​include the first self-capacitance value of each transmitting channel and the second self-capacitance value of each receiving channel in the touch screen.

6. The method according to claim 5, characterized in that, The detection of whether there is an abnormal self-capacitance value among the self-capacitance values ​​includes: Determine the first number of negative values ​​among each of the first self-capacitance values ​​and each of the second self-capacitance values; If the first quantity is greater than the first quantity threshold, then it is determined that there is an abnormal self-capacitance value among the self-capacitance values.

7. The method according to claim 5, characterized in that, The detection of whether there is an abnormal self-capacitance value among the self-capacitance values ​​includes: Determine a second number of target negative values ​​that are less than a second capacitance threshold among each of the first self-capacitance values ​​and each of the second self-capacitance values; If the second quantity is greater than the second quantity threshold, then it is determined that there is an abnormal self-capacitance value among the self-capacitance values.

8. The method according to any one of claims 1-7, characterized in that, The calibration of the reference capacitance value includes: Each of the aforementioned mutual capacitance values ​​is determined as the calibrated reference capacitance value.

9. The method according to any one of claims 1-7, characterized in that, Determining whether the touch operation is valid based on the calibrated reference capacitance value includes: Based on the calibrated reference capacitance value, the first updated self-capacitance value of the target transmission channel corresponding to the touch area in the touch screen and the second updated self-capacitance value of the target reception channel corresponding to the touch area are determined, wherein the touch area corresponds to the touch operation; The validity of the touch operation is determined based on the first updated self-capacitance value and the second updated self-capacitance value.

10. A calibration device for a touchscreen, characterized in that, For an electronic device, the electronic device including a touch screen, the device comprising: The acquisition module is used to acquire the mutual capacitance value of each capacitor node in the touch screen and the self-capacitance value of the touch screen. The determination module is used to determine whether the reference capacitance value of the touch screen needs to be calibrated based on the self-capacitance value when a touch operation is detected based on the mutual capacitance values. The calibration module is used to calibrate the reference capacitance value if it needs to be calibrated, and to determine whether the touch operation is valid based on the calibrated reference capacitance value.

11. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.

13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.