Capacitance reference adjusting method and device of touch screen, electronic equipment and storage medium

By judging the real touch operation on the capacitive touch screen and dividing the adjustment area, the problem of touch breaking is solved, the accuracy of touch recognition is improved, and the accuracy of capacitor reference is ensured.

CN119916975APending Publication Date: 2025-05-02GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311433517.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

Capacitive touch screens are prone to problems with interruption in actual applications, resulting in inaccurate touch operation recognition. The main reason is that there are foreign objects or stains on the touch screen, resulting in inaccurate capacitance data.

Method used

By judging the authenticity of the touch operation on the touch screen of the terminal, and when it is determined to be a real touch operation, the screen area is divided into an adjustment area and a non-adjustment area, and the adjustment area is updated to ensure the accuracy of the capacitor reference.

Benefits of technology

It effectively avoids touch recognition failure caused by foreign object coverage, improves the recognition accuracy of the touch screen, and reduces the situation of interruption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119916975A_ABST
    Figure CN119916975A_ABST
Patent Text Reader

Abstract

The invention discloses a capacitance reference adjusting method and device of a touch screen, electronic equipment and a storage medium. The method comprises the steps that whether touch operation on the touch screen of a terminal is real touch operation or not is determined; under the condition that it is determined that the touch operation is the real touch operation, an adjusting area is determined on a screen area of the touch screen, the screen area comprises the adjusting area and a non-adjusting area, and the non-adjusting area is the area where the touch operation is located; and carrying out capacitance reference updating on the adjustment area. According to the method, the touch operation on the touch screen of the terminal is recognized in time, then the capacitance reference of the area needing to be adjusted is adjusted, the capacitance reference is updated in time, the recognition accuracy of the touch screen is improved, and the situation that touch recognition fails and touch breaking occurs due to coverage of foreign matter and the like is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of touch screen adjustment, and in particular to a capacitance reference adjustment method, device, electronic device and storage medium for a touch screen. Background Art

[0002] The basic principle of capacitive touch screen is: when the user touches the capacitive screen, a coupling capacitor will be formed between the human body's electric field, fingers and conductor layer. The current emitted by the four-sided electrodes will flow to the contact point, and its strength is proportional to the distance between the finger and the electrode. The controller behind the touch screen will calculate the proportion and strength of the current and accurately calculate the position of the touch point.

[0003] In actual applications, the reasons for touch screen disconnection are usually divided into three aspects, including the presence of foreign matter or stains on the touch screen, the incompatibility of the mobile phone and the application, and the problem of the touch screen itself. In the actual use of mobile phones and other devices after leaving the factory, the main reason for disconnection is usually due to the presence of foreign matter or stains on the touch screen, which will cause the initial capacitance value of the foreign matter or stain area to change, resulting in inaccurate detected capacitance data, and then causing abnormal and inaccurate touch operation recognition when the finger touches the area where the foreign matter or stain is located. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a capacitance reference adjustment method, device, electronic device and storage medium for a touch screen, so as to solve the technical problem of inaccurate touch operation recognition in the related art.

[0005] In a first aspect, an embodiment of the present application provides a capacitance reference adjustment method for a touch screen, comprising:

[0006] Determine whether a touch operation on the touch screen of the terminal is a real touch operation;

[0007] When it is determined that the touch operation is a real touch operation, determining an adjustment area on a screen area of ​​the touch screen, wherein the screen area includes an adjustment area and a non-adjustment area, and the non-adjustment area is an area where the touch operation is located;

[0008] A capacitance reference is updated for the adjustment region.

[0009] In a second aspect, an embodiment of the present application provides a capacitance reference adjustment device for a touch screen, comprising:

[0010] A touch judgment module is used to determine whether a touch operation on the touch screen of the terminal is a real touch operation;

[0011] A region determination module, configured to determine an adjustment region on a screen region of the touch screen when the touch operation is determined to be a real touch operation, wherein the screen region includes an adjustment region and a non-adjustment region, and the non-adjustment region is a region where the touch operation is located;

[0012] The adjustment and updating module is used to update the capacitance reference of the adjustment area.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned methods for adjusting the capacitance reference of a touch screen when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the above-mentioned methods for adjusting the capacitance reference of a touch screen are implemented.

[0015] The embodiment of the present application provides a capacitance reference adjustment method, device, electronic device and storage medium for a touch screen. In the application process of a capacitive touch screen, when it is determined that a terminal using a capacitive touch screen is in a game mode, it is determined whether there is a touch operation on the touch screen of the terminal, so as to make a further judgment when it is determined that there is a touch operation, and determine whether the touch operation is a real touch operation. Then, when it is determined to be a real touch operation, an adjustment area is determined on the screen area of ​​the touch screen, wherein the adjustment area is an area where the capacitance reference needs to be updated and adjusted, and finally the capacitance reference is updated on the adjustment area. In the process of using the terminal, by timely identifying the touch operation on the touch screen of the terminal, the adjustment area where the capacitance reference needs to be updated is determined, and then the capacitance reference of the touch screen is updated by updating the capacitance reference of the adjustment area, so that the capacitance reference of the touch screen is not affected, so that the capacitance change when the user's finger touches the screen can be accurately identified and obtained, and then the user's touch operation is accurately identified, the accuracy of touch screen recognition is improved, and the touch recognition failure and the disconnection of touch are avoided due to foreign matter covering the screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flow chart of a capacitance reference adjustment method of a touch screen provided in an embodiment of the present application;

[0017] Figure 2 is a flowchart of a processing method when there is no touch operation provided by an embodiment of the present application;

[0018] Figure 3is a schematic diagram of region segmentation provided in an embodiment of the present application;

[0019] Figure 4 is a block diagram schematically showing the steps of performing a reference adjustment provided in an embodiment of the present application;

[0020] Figure 5 It is a structural schematic diagram of a capacitance reference adjustment device for a touch screen provided in an embodiment of the present application;

[0021] Figure 6 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0022] Figure 7 This is another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0025] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0026] In the related art, the working principle of the capacitive touch screen is: when the user touches the capacitive screen, a coupling capacitor is formed between the human body electric field, the finger and the conductor layer, and the current emitted by the four-sided electrodes flows to the touch point, and its strength is proportional to the distance between the finger and the electrode. The controller behind the touch screen will calculate the proportion and strength of the current and accurately calculate the location of the touch point. However, in actual use, due to the presence of foreign matter on the touch screen of the terminal device, when performing continuous sliding or clicking operations, the touch will be disconnected, resulting in inaccurate touch recognition and response.

[0027] In order to solve the technical problems existing in the related art, the present application embodiment provides a capacitance reference adjustment method for a touch screen. Figure 1 , Figure 1 1 is a flow chart of a capacitance reference adjustment method for a touch screen provided in an embodiment of the present application. The method includes steps 101 to 103.

[0028] Step 101: Determine whether a touch operation on a touch screen of a terminal is a real touch operation.

[0029] In one embodiment, the touch operation of the touch screen may be a real human operation, such as finger touch, or a touch operation generated by the first type of object (such as a capacitive pen) contacting the touch screen. Therefore, when determining that there is a touch operation on the touch screen of the terminal, it is necessary to determine the authenticity of the touch operation, that is, to determine whether the touch operation is a real touch operation. The real touch operation may be a touch operation of a user's finger or a capacitive pen on the capacitive touch screen.

[0030] Furthermore, before determining whether the touch operation on the touch screen of the terminal is a real touch operation, it is necessary to determine whether there is a touch operation on the touch screen of the terminal. Among them, based on the use scenario of the terminal, the mode of the terminal can be set. For example, when playing games using the terminal, the current mode of the terminal can be defined as a game mode. When updating the capacitance reference of the terminal, it is when the terminal is in use, that is, when performing a touch operation, such as the described game mode, that is, when the user uses the terminal to play games, the capacitance reference can be updated at this time to ensure the smoothness of the user's game.

[0031] When the terminal device is in use, the user completes the use of the terminal device by clicking or sliding on the touch screen. For example, password unlocking, sliding unlocking, etc. require the user to click or slide on the touch screen of the terminal device. Due to the characteristics of the capacitive touch screen, when there is a foreign object on the screen, it will cause the touch recognition to be untimely and inaccurate. Especially when performing continuous sliding operations, the operation will fail or become invalid due to the disconnection of the touch, such as during the game. Therefore, it is necessary to make reasonable adjustments and controls based on the actual situation during the use of the terminal device to avoid the disconnection of the touch.

[0032] In one embodiment, when a touch operation is performed on a terminal device having a capacitive touch screen, it is determined whether a touch operation is performed on the touch screen of the terminal. When determining whether a touch operation is performed, the judgment and determination can be made based on the working principle of the capacitive touch screen, specifically, determining whether there is a capacitance change, and whether the capacitance change satisfies the judgment condition for determining whether a touch operation is performed.

[0033] Exemplarily, when determining whether there is a touch operation on the touch screen of the terminal, it can be determined by detecting whether there is a capacitance change on the touch screen, specifically including: obtaining capacitance data on the touch screen of the terminal; comparing the capacitance data with a first capacitance threshold, and determining whether there is a touch operation on the touch screen based on the comparison result; if the capacitance data is less than the first capacitance threshold, determining that there is no touch operation on the touch screen; if the capacitance data is greater than or equal to the first capacitance threshold, determining that there is a touch operation on the touch screen.

[0034] That is, when determining whether a touch event exists, the capacitance of the touch point on the touch screen is detected to determine whether a touch event exists according to the capacitance data. Specifically, during the use of the terminal, the capacitance data on the touch screen of the terminal is obtained, and the capacitance data is compared with the set first capacitance threshold to determine whether a touch operation exists on the touch screen.

[0035] In actual applications, when there is a touch operation on the touch screen, the capacitance of the contact point on the touch screen will change. In addition, when there is no touch operation on the touch screen of the terminal, there may be a capacitance change on the touch screen due to external factors. Therefore, when determining whether there is a touch operation on the touch screen of the terminal, by detecting the capacitance data of the contact point and comparing it with the first capacitance threshold, it is determined that there is a touch operation on the touch screen of the terminal only when the capacitance data meets the set condition, that is, greater than or equal to the first capacitance threshold. Of course, the touch operation that exists may be a touch operation performed by a user using a finger or the like, or it may be a touch operation generated by other objects contacting the touch screen.

[0036] It should be noted that the specific numerical values ​​of the parameters set as the parameters for determining whether a touch operation exists and whether a real touch operation exists can be pre-set according to the actual situation, such as the first capacitance threshold used to determine whether a touch operation exists as described above. Similarly, the settings of the specific numerical values ​​that appear subsequently are all set based on the actual situation.

[0037] Further, when making a judgment, if it is determined that there is a touch operation on the touch screen of the terminal, the process described in step 101 is executed, and when it is determined that there is no touch operation on the touch screen of the terminal, it is also necessary to reasonably adjust and update the capacitance reference of the touch screen according to the actual situation. Specifically, when it is determined that there is no touch operation on the touch screen, the capacitance reference of the touch screen is directly updated. Among them, the direct update processing of the capacitance reference can be completed once when adjusting, such as directly adjusting to the initial value / default value, etc.

[0038] Exemplarily, when determining whether a touch operation is a real touch operation, it includes: comparing the capacitance data of each node on the touch screen with the second capacitance threshold, and determining whether the touch operation is a real touch operation based on the comparison result, wherein the second capacitance threshold is greater than the first capacitance threshold; if the capacitance data is greater than or equal to the second capacitance threshold, the touch operation is determined to be a real touch operation; if the capacitance data is less than the second capacitance threshold, the touch operation is determined to be a non-real touch operation.

[0039] The capacitance data is the capacitance data detected by each capacitance detection point on the touch screen. A certain number of nodes are set on the touch screen. By acquiring capacitance data at each node, recognition and response to touch operations can be achieved.

[0040] In fact, when a real finger touches the touch screen, the capacitance data generated is much larger than that generated when the second type of object (such as stains or water stains) touches, usually by multiples. That is, for the same touch operation, the capacitance generated by the finger touch is twice the capacitance generated by the object touch, or even higher. Therefore, when determining whether it is a real touch operation, it can also be judged based on the capacitance data. Specifically, the capacitance data of each node obtained by detecting the touch screen of the terminal is compared with the second capacitance threshold, and the size relationship between the two is compared to determine whether the touch operation on the touch screen is a real touch operation. In order to ensure the accuracy of the judgment, the second capacitance threshold is set to be greater than the first capacitance threshold, and the second capacitance threshold can also be set in advance.

[0041] For example, the second capacitance threshold is set to 500. When the capacitance of each node on the touch screen of the terminal is monitored, if the capacitance value of a certain node obtained by monitoring is greater than 500, it means that the touch operation of the node is a real touch operation. When the capacitance value of a certain node is less than or equal to 500 and greater than the first capacitance threshold (such as setting the first capacitance threshold to 100), it means that the capacitance change of the node is not caused by a real touch operation, that is, it means that the current touch operation of the node is not a real touch operation.

[0042] Step 102, when it is determined that the touch operation is a real touch operation, determining an adjustment area on the screen area of ​​the touch screen, wherein the screen area is divided into an adjustment area and a non-adjustment area, and the non-adjustment area is the area where the touch operation is located.

[0043] In one embodiment, when it is determined that the touch operation is a real touch operation, an adjustment area is determined on the screen area corresponding to the touch screen, wherein the screen area can be divided into an adjustment area and a non-adjustment area, and the adjustment area and the non-adjustment area are changed in real time according to actual conditions. For different operations and usage scenarios, the adjustment area and the non-adjustment area will be different.

[0044] Exemplarily, when updating and adjusting the capacitance baseline of the touch screen, the entire screen area is not necessarily adjusted, and specific areas may be adjusted according to actual conditions, wherein the specific area may be an area determined based on actual operations on the terminal, or may be an area selected manually. In the embodiments of the present application, when determining the specific area that needs to be adjusted, it is determined based on the actual use and operation of the terminal by the user. As described above, the specific area may be an area on the entire touch screen where no touch operations are performed by the user, wherein the touch operations not performed by the user may be an area covered by stains or foreign matter (screen attachments or water), or may be an area where other objects are pressed or squeezed on the touch screen. When determining the area that needs to be adjusted, the area is determined based on the actual touch operation. Specifically, refer to Figure 2 , Figure 2 It is a flowchart of the steps of determining the adjustment area provided in an embodiment of the present application, wherein the steps include steps 201 to 204.

[0045] Step 201, when it is determined that the touch operation is a real touch operation, determining an operation track of the touch operation;

[0046] Step 202, obtaining the middle area according to the operation trajectory;

[0047] Step 203, performing region expansion according to the boundary capacitance extreme values ​​of each boundary on the middle region, and obtaining a non-adjusted region of the screen region when the expansion is completed;

[0048] Step 204: remove the non-adjustment area on the screen area to obtain the adjustment area of ​​the screen area.

[0049] Exemplarily, in the actual operation process, when the capacitance benchmark of the touch screen of the terminal is updated and adjusted, it is not suitable to adjust the area where the user touches for a long time and continuously and frequently in the game, so when the capacitance benchmark is updated and adjusted, the area outside the current touch area is updated and adjusted. Therefore, when determining the adjustment area, the length is determined within a certain time period set, such as the time interval is 1 minute, and the current time is 20:00 on August 8, 2023. Then the time period determined at this time is from 19:59 on August 8, 2023 to 20:00 on August 8, 2023, and the operation track is selected on the touch screen. An intermediate area containing the operation track is obtained, and then the area is expanded according to the boundary capacitance extreme values ​​on each boundary of the intermediate area to obtain a non-adjustment area of ​​the touch screen, wherein, when determining the intermediate area corresponding to the operation track, a minimum area area containing the operation track can be obtained as the intermediate area by selecting the minimum area. For the entire screen area, the area except the non-adjustment area is used as the adjustment area.

[0050] The specific regional division can be found in Figure 3 ,like Figure 3 As shown, Figure 3 Area A is the non-adjustment area, and area B is the adjustment area. Figure 3 In the scenario shown, the capacitance values ​​of most of the nodes in region A are significantly higher than the capacitance values ​​of the nodes in region B. In the actual processing, when determining region A, in addition to including the touch area (region with higher value), the region is also expanded based on the touch area, so that the obtained region includes a certain number of non-touch areas (regions with values ​​close to region B), as shown in the following example. Figure 3 In area A, the capacitance values ​​of the nodes at the edge of area A are close to the capacitance values ​​of area B, so that the touch operation in area A is not affected. If only the area with a larger value is used as the non-adjustment area when determining the area, but the actual touch operation area is larger than the currently determined non-adjustment area, the current touch operation will be affected.

[0051] Furthermore, when determining whether a touch operation is a real touch operation, if the touch operation is judged to be a non-real touch operation, update processing is also required, but the processing method is different. Specifically, when the touch operation is determined to be a non-real touch operation, the screen area of ​​the touch screen is determined to be an adjustment area, and the global capacitance baseline is updated for the screen area.

[0052] That is, when the touch operation is determined to be a non-real touch operation, the entire screen area of ​​the touch screen will be used as the adjustment area to perform a global capacitance reference update on the entire area.

[0053] Step 103: updating the capacitance reference of the adjustment area.

[0054] In one embodiment, after the adjustment area that needs to be updated is determined on the touch screen, the adjustment area will be reasonably updated and adjusted.

[0055] Exemplarily, when updating the capacitance benchmark of the adjustment area, it includes: obtaining the capacitance extreme value of the adjustment area, and determining the update step for updating the capacitance benchmark according to the capacitance extreme value; and performing a benchmark adjustment on the capacitance of each point on the adjustment area according to the update step.

[0056] That is, when making adjustments, first determine the step size of the adjustment, and then update and adjust the benchmark according to the obtained step size. Specifically, when determining the step size of the adjustment, it is determined according to the size of the capacitance value of each node on the touch area, such as according to the maximum capacitance value. The adjustment step sizes corresponding to different capacitance values ​​can be set in advance, and the corresponding adjustment step size can be determined by determining the capacitance range of the currently detected maximum capacitance value. Generally, the larger the maximum capacitance value, the larger the corresponding step size.

[0057] In actual processing, there may be foreign matter on the touch screen, resulting in nodes with large capacitance differences in the adjustment area. When making adjustments, the step size is set to avoid excessive adjustment changes and reduce the impact on actual operations.

[0058] When performing reference adjustment, usually the reference value of the node whose capacitance value is greater than zero is reduced, and the reference value of the node whose capacitance value is less than zero is increased.

[0059] Further, refer to Figure 4 , Figure 4 It is a block diagram schematically showing the steps of performing benchmark adjustment provided in an embodiment of the present application.

[0060] Specifically, when performing the benchmark adjustment, the terminal will first complete the initialization of the benchmark, that is, update the current state to the initial state. The initial state at this time can be the state of the terminal's touch screen when it leaves the factory, or it can be the benchmark state when the terminal is in an unoperated state during use (such as turning on the power or re-lighting the screen).

[0061] Then, when the terminal is in use, the capacitance of each node on the touch screen of the terminal is detected and obtained, and further processing is performed according to the size of the obtained capacitance value. Specifically, the capacitance value of each node on the touch screen of the terminal is obtained, and the capacitance value is compared with the first capacitance threshold and the second capacitance threshold, and the second capacitance threshold is greater than the first capacitance threshold, and then according to the specific comparison result, the update mode of the capacitance update is determined at this time.

[0062] Among them, the first capacitance threshold and the second capacitance threshold are used to detect and judge the factors and reasons that cause capacitance changes on the touch screen. Under normal circumstances, when a real finger touches the touch screen of the terminal, the capacitance value of the node touched on the touch screen is relatively large, such as greater than 500, and when there are stains or water stains attached to the terminal touch screen, the capacitance value of the node in the attached area is relatively small, such as less than 100. For the case where the capacitance value is between 100 and 500, it means that it is not caused by a real finger touch or the attachment of stains. Based on this description, in the actual detection process, the first capacitance threshold can be set to 100 and the second capacitance threshold can be set to 500, and then by making corresponding comparisons, the current capacitance baseline update method can be determined.

[0063] For example, Figure 4 As shown, by detecting the current capacitance value of each node on the touch screen, the capacitance value is compared with the first capacitance threshold and the second capacitance threshold, wherein when the detected current capacitance value is less than the first capacitance threshold (100), a fast update operation of the capacitance reference will be performed, when the detected current capacitance value is greater than or equal to the first capacitance threshold (100) and less than the second capacitance threshold (500), an initialization update operation of the capacitance reference will be performed, and when the detected capacitance value is greater than or equal to the second capacitance threshold (500), a regional update of the capacitance reference will be performed.

[0064] When performing a regional update of the capacitance reference, the area touched by the real finger is first identified and confirmed to segment the entire area of ​​the touch screen, and then a local update operation of the capacitance is performed on the non-real finger touch area. At the same time, when performing a local update operation of the capacitance reference, the update step length can be determined according to the detected current capacitance value, and then the update processing is performed according to the update step length, and the update step length determines the number of updates in the entire update process, wherein the larger the current capacitance value, the more the number of updates.

[0065] It should be noted that in Figure 4 During the processing, the fast update operation can be understood as performing one update, that is, the update of the capacitance reference is completed by performing one step of update.

[0066] Furthermore, during the actual use of the terminal device, when the touch screen has recognition abnormalities during use, such as touch disconnection, possible reasons include the presence of foreign matter on the touch screen as mentioned in the above description, and it may also be due to the terminal device itself. Therefore, in order to avoid abnormal situations such as touch disconnection and improve the accuracy of touch operation recognition, in addition to timely adjusting the capacitance benchmark during use, corresponding preprocessing can also be performed before the adjustment, such as identifying and intercepting erroneous operations in advance.

[0067] In the method described above, when it is determined to be a real touch operation, the capacitance baseline will be updated and adjusted, but at this time there may be an erroneous operation. Therefore, when it is determined that the current touch operation is a real touch operation, it is also possible to increase the processing of identifying the touch operation to determine whether the current touch operation is an erroneous operation, and when it is determined that the current touch operation is an erroneous operation, the current touch operation is intercepted and filtered. When determining whether it is an erroneous operation, a set of erroneous operations in different modes or scenarios can be pre-set, and the subsequent processing method can be determined by determining whether the current operation is in the erroneous operation set, such as treating the long press operation in the game mode as an erroneous operation according to different scenarios.

[0068] At this time, when the capacitance baseline is updated and adjusted, the current touch operation can be regarded as an invalid operation, and when the capacitance baseline is updated, the invalid operation will be treated as a non-real touch operation for processing, that is, the global capacitance baseline of the entire screen area of ​​the touch screen is updated, and when it is determined that it is not an erroneous operation, it will be processed in the manner described in step 102. Please refer to the above description for details and no detailed description will be given here.

[0069] In addition, in order to enhance the accuracy and timeliness of touch operation recognition, the noise generated during the application process can also be suppressed, such as the display noise of the touch screen. At the same time, when the terminal device is in a charging state, power grid noise will also be generated. At this time, it can also be suppressed and filtered. The noise of the touch screen during the use of the terminal can be filtered, so that the real touch operation can be identified more accurately, which facilitates more accurate updating and adjustment of the subsequent capacitance benchmark.

[0070] That is, when detecting the capacitance of each node on the touch screen, the detected results are subjected to noise suppression and filtering to improve the accuracy of the detection results, thereby more accurately determining the current state of the terminal and selecting an appropriate method to update the capacitance reference.

[0071] In summary, the present application discloses a method for adjusting the capacitance reference of a touch screen. In the application process of a capacitive touch screen, when it is determined that a terminal using a capacitive touch screen is in a game mode, it is determined whether there is a touch operation on the touch screen of the terminal, so as to make a further judgment when it is determined that there is a touch operation, and determine whether the touch operation is a real touch operation, wherein the real touch operation is an operation of a user using a finger to touch, and then when it is determined to be a real touch operation, an adjustment area is determined on the screen area of ​​the touch screen, wherein the adjustment area is an area where the capacitance reference needs to be updated and adjusted, and finally the capacitance reference is updated in the adjustment area. In the process of using the terminal, the touch operation on the touch screen of the terminal is timely identified, and the adjustment area where the capacitance reference needs to be updated is determined, and then the capacitance reference is updated in the adjustment area, so as to improve the accuracy of touch screen recognition, and avoid the failure of touch recognition and the occurrence of disconnection due to foreign matter covering the screen.

[0072] According to the method described in the above embodiment, this embodiment will be further described from the perspective of the capacitance reference adjustment device of the touch screen. The capacitance reference adjustment device of the touch screen can be implemented as an independent entity or integrated in an electronic device, such as a terminal. The terminal may include a mobile phone, a tablet computer, etc.

[0073] See also Figure 5 , Figure 5 is a structural schematic diagram of a capacitance reference adjustment device for a touch screen provided in an embodiment of the present application, such as Figure 5 As shown, the capacitance reference adjustment device 500 of the touch screen provided in the embodiment of the present application includes:

[0074] A touch judgment module 501 is used to determine whether a touch operation on the touch screen of the terminal is a real touch operation;

[0075] The area determination module 502 is used to determine the adjustment area on the screen area of ​​the touch screen when the touch operation is determined to be a real touch operation, wherein the screen area includes the adjustment area and the non-adjustment area, and the non-adjustment area is the area where the touch operation is located;

[0076] The adjustment and updating module 503 is used to update the capacitance reference of the adjustment area.

[0077] In one embodiment, the touch determination module 501 is further used for:

[0078] Obtaining capacitance data on the touch screen of the terminal;

[0079] Comparing the capacitance data with the first capacitance threshold, and determining whether a touch operation occurs on the touch screen according to the comparison result;

[0080] If the capacitance data is less than the first capacitance threshold, it is determined that there is no touch operation on the touch screen;

[0081] If the capacitance data is greater than or equal to the first capacitance threshold, it is determined that a touch operation occurs on the touch screen.

[0082] In one embodiment, the touch determination module 501 is further used for:

[0083] Comparing the capacitance data with a second capacitance threshold, and determining whether the touch operation is a real touch operation according to the comparison result, wherein the second capacitance threshold is greater than the first capacitance threshold;

[0084] If the capacitance data is greater than or equal to the second capacitance threshold, determining that the touch operation is a real touch operation;

[0085] If the capacitance data is less than the second capacitance threshold, the touch operation is determined to be a non-real touch operation.

[0086] In one embodiment, the region determination module 502 is further configured to:

[0087] When determining that the touch operation is a real touch operation, determining an operation track of the touch operation;

[0088] According to the operation trajectory, the middle area is obtained;

[0089] Expanding the area according to the extreme values ​​of the boundary capacitances of each boundary on the middle area, and obtaining a non-adjusted area of ​​the screen area when the expansion is completed;

[0090] The non-adjustment area is eliminated from the screen area to obtain the adjustment area of ​​the screen area.

[0091] In one embodiment, the adjustment update module 503 is further configured to:

[0092] Obtaining a capacitance extreme value of the adjustment region, and determining an update step for updating the capacitance reference according to the capacitance extreme value;

[0093] According to the update step size, the capacitance reference adjustment is performed on the capacitance of each point on the adjustment area.

[0094] In one embodiment, the touch determination module 501 is further used for:

[0095] When it is determined that there is no touch operation on the touch screen, a direct update process of the capacitance reference is performed on the touch screen.

[0096] In one embodiment, the touch determination module 501 is further used for:

[0097] When it is determined that the touch operation on the touch screen of the terminal is a non-real touch operation, a screen area of ​​the touch screen is determined to be an adjustment area, and a global capacitance reference is updated for the screen area.

[0098] During specific implementation, the above modules and / or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and / or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.

[0099] Also, see Figure 6 , Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, or the like. Figure 6 As shown, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.

[0100] The processor 601 is the control center of the electronic device 600. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 600 and processes data by running or loading applications stored in the memory 602 and calling data stored in the memory 602, thereby monitoring the electronic device 600 as a whole.

[0101] In this embodiment, the processor 601 in the electronic device 600 will load the instructions corresponding to the processes of one or more applications into the memory 602 according to the following steps, and the processor 601 will run the application stored in the memory 602, thereby implementing any step in the capacitance reference adjustment method of the touch screen provided in the above embodiment.

[0102] The electronic device 600 can implement the steps in any embodiment of the capacitance reference adjustment method for a touch screen provided in the embodiments of the present application. Therefore, it can achieve the beneficial effects that can be achieved by any capacitance reference adjustment method for a touch screen provided in the embodiments of the present application. For details, please refer to the previous embodiments and will not be repeated here.

[0103] See also Figure 7 , Figure 7 is another structural schematic diagram of an electronic device provided in an embodiment of the present application, such as Figure 7 As shown, Figure 7 The electronic device 700 is a block diagram of a specific structure of an electronic device provided in an embodiment of the present application, and the electronic device can be used to implement the capacitance reference adjustment method of the touch screen provided in the above embodiment. The electronic device 700 can be a mobile terminal such as a smart phone or a laptop computer.

[0104] The RF circuit 710 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 710 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 710 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.

[0105] The memory 720 can be used to store software programs and modules, such as the program instructions / modules corresponding to the capacitance reference adjustment method of the touch screen in the above-mentioned embodiment. The processor 780 executes various functional applications and the capacitance reference adjustment method of the touch screen by running the software programs and modules stored in the memory 720.

[0106] The memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 720 may further include a memory remotely arranged relative to the processor 780, and these remote memories may be connected to the electronic device 700 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0107] The input unit 730 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 730 may include a touch-sensitive surface 731 and other input devices 732. The touch-sensitive surface 731, also known as a touch display screen or touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 731), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 731 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch-sensitive surface 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0108] The display unit 740 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 700, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 740 may include a display panel 741, and optionally, the display panel 741 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 731 may cover the display panel 741, and when the touch-sensitive surface 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides corresponding visual output on the display panel 741 according to the type of the touch event. Although in the figure, the touch-sensitive surface 731 and the display panel 741 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 731 and the display panel 741 can be integrated to implement input and output functions.

[0109] The electronic device 700 may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 700, they will not be repeated here.

[0110] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the electronic device 700. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another terminal through the RF circuit 710, or the audio data is output to the memory 720 for further processing. The audio circuit 760 may also include an earplug jack to provide communication between an external headset and the electronic device 700.

[0111] The electronic device 700 can help the user receive requests, send information, etc. through the transmission module 770 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although the transmission module 770 is shown in the figure, it is understandable that it is not a necessary component of the electronic device 700 and can be omitted as needed without changing the essence of the invention.

[0112] The processor 780 is the control center of the electronic device 700. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the electronic device 700 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 780 may include one or more processing cores; in some embodiments, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 780.

[0113] The electronic device 700 also includes a power supply 790 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 790 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0114] Although not shown, the electronic device 700 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors to implement any step of the touch screen capacitance reference adjustment method provided in the above embodiment.

[0115] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0116] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium, which stores multiple instructions, and when the instructions are executed by the processor, any step in the capacitance reference adjustment method of the touch screen provided in the above embodiments can be implemented.

[0117] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0118] Since the instructions stored in the storage medium can execute the steps in any embodiment of the capacitance reference adjustment method for the touch screen provided in the embodiments of the present application, the beneficial effects that can be achieved by the capacitance reference adjustment method for any touch screen provided in the embodiments of the present application can be achieved. For details, please refer to the previous embodiments and will not be repeated here.

[0119] The above is a detailed introduction to the capacitance reference adjustment method, device, electronic device and storage medium of a touch screen provided by the embodiment of the present application. The principle and implementation method of the present application are explained in detail using specific examples. The description of the above embodiments is only used to help understand the method and its core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application. Moreover, for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and modifications can be made, and these improvements and modifications are also regarded as the protection scope of the present application.

Claims

1. A method for adjusting the capacitance reference of a touch screen, characterized in that: include: Determine whether a touch operation on the touch screen of the terminal is a real touch operation; In the case where it is determined that the touch operation is a real touch operation, determining an adjustment area on a screen area of ​​the touch screen, wherein the screen area includes an adjustment area and a non-adjustment area, and the non-adjustment area is an area where the touch operation is located; A capacitance reference is updated for the adjustment region.

2. The method according to claim 1, characterized in that Before determining whether the touch operation on the touch screen of the terminal is a real touch operation, the method further includes: Obtaining capacitance data on the touch screen of the terminal; Comparing the capacitance data with a first capacitance threshold, and determining whether a touch operation occurs on the touch screen according to the comparison result; If the capacitance data is less than the first capacitance threshold, determining that there is no touch operation on the touch screen; If the capacitance data is greater than or equal to the first capacitance threshold, it is determined that a touch operation occurs on the touch screen.

3. The method according to claim 2, characterized in that The determining whether the touch operation on the touch screen of the terminal is a real touch operation includes: Comparing the capacitance data with a second capacitance threshold, and determining whether the touch operation is a real touch operation according to the comparison result, wherein the second capacitance threshold is greater than the first capacitance threshold; If the capacitance data is greater than or equal to the second capacitance threshold, determining that the touch operation is a real touch operation; If the capacitance data is less than the second capacitance threshold, the touch operation is determined to be a non-real touch operation.

4. The method according to claim 1, characterized in that In the case where it is determined that the touch operation is a real touch operation, determining an adjustment area on a screen area of ​​the touch screen includes: In the case where it is determined that the touch operation is a real touch operation, determining an operation track of the touch operation; According to the operation trajectory, an intermediate area is obtained; Expanding the area according to the extreme values ​​of the boundary capacitances of each boundary on the middle area, and obtaining the non-adjusted area of ​​the screen area when the expansion is completed; The non-adjustment area is removed from the screen area to obtain the adjustment area of ​​the screen area.

5. The method according to claim 1, characterized in that The updating of the capacitance reference of the adjustment area includes: Acquiring a capacitance extreme value of the adjustment region, and determining an update step for updating a capacitance reference according to the capacitance extreme value; According to the update step size, a reference adjustment is performed on the capacitance of each point on the adjustment area.

6. The method according to claim 2, characterized in that The method further comprises: When it is determined that there is no touch operation on the touch screen, a direct update process of a capacitance reference is performed on the touch screen.

7. The method according to claim 1, characterized in that After determining whether the touch operation on the touch screen of the terminal is a real touch operation, the method further includes: When it is determined that the touch operation on the touch screen of the terminal is a non-real touch operation, a screen area of ​​the touch screen is determined to be an adjustment area, and a global capacitance reference is updated for the screen area.

8. A capacitance reference adjustment device for a touch screen, characterized in that: include: A touch judgment module is used to determine whether a touch operation on the touch screen of the terminal is a real touch operation; an area determination module, for determining an adjustment area on a screen area of ​​the touch screen when the touch operation is determined to be a real touch operation, wherein the screen area includes an adjustment area and a non-adjustment area, and the non-adjustment area is an area where the touch operation is located; The adjustment and updating module is used to update the capacitance reference of the adjustment area.

9. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.