Touch event processing method and device, equipment, storage medium and program product

By obtaining the capacitance data and target status of the touch screen, determining the error touch threshold parameters, judging and preventing the occurrence of error touch, the problem of error touch on the touch screen is solved and detection flexibility is improved.

CN119806351APending Publication Date: 2025-04-11GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411885237.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

In some scenarios, the touch screen surface contacts materials that are prone to capacitor changes, resulting in false touching. How to effectively avoid the problem of electronic devices performing false touching operations.

Method used

By obtaining the capacitance data and the current target state in the target touch area of ​​the touch screen, the error touch threshold parameter is determined based on the target state, and whether the error touch condition is met, the touch event is prohibited if it is met.

Benefits of technology

It effectively avoids touch operations of electronic devices of mistouch properties, and improves flexibility in detecting mistouch operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806351A_ABST
    Figure CN119806351A_ABST
Patent Text Reader

Abstract

The invention relates to a touch event processing method and device, equipment, a storage medium and a program product. The method comprises the following steps: acquiring capacitance data in a target touch area of the touch screen, and acquiring a current target state of the touch screen; the target state is a suspended state or a non-suspended state; determining a mistaken touch threshold parameter according to the target state; determining whether a mistaken touch condition is met or not according to the capacitance data and the mistaken touch threshold parameter; and if the false touch condition is met, prohibiting to report the touch event according to the capacitance data. By adopting the method, the electronic equipment can be effectively prevented from executing the touch operation with the mistaken touch property.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of touch screen technology, and in particular to a touch event processing method, device, equipment, storage medium and program product. Background Art

[0002] Currently, many electronic devices are equipped with touch screens, which recognize touch operations based on the principle of capacitive sensing. When a user performs a touch operation on the touch screen, the touch screen detects the touch operation and performs corresponding processing according to the touch position.

[0003] In some scenarios, the touch screen surface contacts materials that easily cause capacitance changes, such as when placed on an iron tabletop, and a large area of ​​the touch screen contacts the tabletop, which may cause false touches. Therefore, how to effectively prevent electronic devices from performing false touch operations needs to be solved urgently. Summary of the invention

[0004] Based on this, it is necessary to provide a touch event processing method, apparatus, device, storage medium and program product that can effectively prevent an electronic device from performing touch operations of a false touch nature in response to the above technical problems.

[0005] In a first aspect, the present application provides a touch event processing method. The method comprises:

[0006] Acquire capacitance data in a target touch area of ​​the touch screen, and acquire the current target state of the touch screen; the target state is a suspended state or a non-suspended state;

[0007] Determine the false touch threshold parameter according to the target state;

[0008] Determine whether the false touch condition is met according to the capacitance data and the false touch threshold parameter;

[0009] If the false touch condition is met, reporting of the touch event based on the capacitance data is prohibited.

[0010] In a second aspect, the present application also provides a touch event processing device. The device includes:

[0011] An acquisition module is used to acquire capacitance data in a target touch area of ​​the touch screen and acquire the current target state of the touch screen; the target state is a suspended state or a non-suspended state;

[0012] A first determination module, used to determine a false touch threshold parameter according to a target state;

[0013] A second determination module, used to determine whether the false touch condition is met according to the capacitance data and the false touch threshold parameter;

[0014] The reporting module is used to prohibit reporting of touch events based on capacitance data if the false touch condition is met.

[0015] In a third aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in any one of the first aspects are implemented.

[0016] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect above.

[0017] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.

[0018] The above-mentioned touch event processing method, device, equipment, storage medium and program product obtain the capacitance data in the target touch area of ​​the touch screen, and obtain the target state of the touch screen; the target state is a suspended state or a non-suspended state; determine the false touch threshold parameter according to the target state; determine whether the false touch condition is met according to the capacitance data and the false touch threshold parameter; if the false touch condition is met, it is prohibited to report the touch event according to the capacitance data. In this way, the corresponding false touch threshold parameters can be determined in the suspended state and the non-suspended state respectively, and then determine whether to report the touch event, so as to effectively and comprehensively avoid the electronic device from performing touch operations of the nature of false touch, and improve the flexibility of the electronic device in detecting false touch operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 is a flow chart of a touch event processing method in one embodiment;

[0021] Figure 2 A schematic diagram of a process for obtaining a target state in one embodiment;

[0022] Figure 3 is a schematic diagram of a process of determining a target state according to a maximum capacitance value in one embodiment;

[0023] Figure 4 A schematic diagram of capacitance data distribution at multiple positions in a non-suspended state in one embodiment;

[0024] Figure 5 A schematic diagram of capacitance data distribution at multiple positions in a suspended state in one embodiment;

[0025] Figure 6 A schematic diagram of a flow chart for determining whether an error touch condition is met in one embodiment;

[0026] Figure 7 A schematic diagram of capacitance data distribution in one embodiment;

[0027] Figure 8 is another flowchart of determining whether a false touch condition is met in one embodiment;

[0028] Fig. 9 It is a flowchart of a process of processing a large-area touch event of a touch screen in one embodiment;

[0029] Fig.10 is a structural block diagram of a touch event processing device in one embodiment;

[0030] Fig.11 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0031] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. It should be understood that many specific details are set forth in the following description to facilitate a full understanding of the present application, but the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0033] It will be understood that “at least one” means one or more, and “plurality” means two or more.

[0034] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0035] Currently, many electronic devices are equipped with touch screens, which recognize touch operations based on the principle of capacitive sensing. When a user performs a touch operation on the touch screen, the touch screen detects the touch operation and performs corresponding processing according to the touch position.

[0036] In some scenarios, the touch screen surface contacts materials that easily cause capacitance changes, such as when placed on an iron tabletop, and a large area of ​​the touch screen contacts the tabletop, which may cause false touches. Therefore, how to effectively prevent electronic devices from performing false touch operations needs to be solved urgently.

[0037] It should be noted that the touch event processing method provided in the embodiment of the present application may be executed by a touch event processing device, which may be implemented as part or all of an electronic device through software, hardware, or a combination of software and hardware. Wherein, the electronic device includes a touch screen system, and the touch event processing device may become part or all of the touch screen system of the electronic device. In other words, the touch screen system of the electronic device may execute the touch event processing method. Wherein, the electronic device may be various types of devices including a touch screen system. For example, the electronic device may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices may be smart speakers, smart TVs, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, etc. In the following method embodiments, the execution subject is explained as a touch screen system.

[0038] In one embodiment, Figure 1 As shown, a touch event processing method is provided, comprising the following steps:

[0039] Step 101: Acquire capacitance data in a target touch area of ​​the touch screen, and acquire the current target state of the touch screen.

[0040] During the operation of the touch screen, the touch screen system can obtain capacitance data of the target touch area, and the capacitance data includes capacitance values ​​of various positions in the target touch area.

[0041] Optionally, the target touch area is a full screen area of ​​the touch screen or a partial area of ​​the touch screen, which is not specifically limited here.

[0042] Optionally, the touch screen system periodically acquires capacitance data in the target touch area of ​​the touch screen, for example, by scanning at a frequency of 120 Hz to obtain capacitance data in the target touch area.

[0043] The touch screen is a capacitive touch screen. Unlike resistive touch screens, capacitive touch screens do not rely on finger pressure to create and change voltage values ​​to detect coordinates. Capacitive touch screens work when touched by any object that holds an electric charge. Capacitive touch screens are made of materials such as alloys or indium tin oxide (ITO), and the charge is stored in micro-static networks that are thinner than a hair. When a finger clicks the screen, a small amount of current is absorbed from the contact point, causing a voltage drop in the corner electrode, and the purpose of touch is achieved by sensing the weak current of the human body.

[0044] The capacitive sensing function of the touch screen uses the capacitive sensing principle of the touch screen to determine whether an object touches the touch screen and then reports a touch event, such as the touch of a finger, stylus, etc. The states of the touch event are mainly divided into the touch state of pressing and then lifting and the touch state of pressing and then moving.

[0045] The touch screen system obtains capacitance data, determines the coordinate data and touch state of the touch position in the target touch area according to the capacitance data, obtains a touch event, and reports the touch event to an upper layer. For example, the electronic device includes a touch screen system and a control system, and the touch screen system reports the touch event to the control system. Here, the control system is, for example, a control unit such as a central processor of the electronic device, which is not fully illustrated here.

[0046] Utilizing the capacitive sensing principle of the touch screen, the touch screen identifies the coordinates of an object by calculating the difference between the current capacitance data and the reference capacitance data, finding the peak difference value of the area by calculating the capacitance difference, and determining whether the peak difference value is within the preset reporting threshold, thereby sending the reporting coordinates to the terminal system.

[0047] Capacitive touch screens mainly include a transmitting channel and a receiving channel. For self-capacitive touch screens, the touch screen system can collect capacitance data from the transmitting channel and the receiving channel to the ground, and the obtained capacitance data includes the self-capacitance values ​​of multiple locations. For mutual-capacitance touch screens, the touch screen system can collect capacitance data from the transmitting channel to the receiving channel, and the obtained capacitance data includes the mutual-capacitance values ​​of multiple locations.

[0048] The touch screen system can use mutual capacitance data to determine whether the finger is in a touch state such as pressing, moving, or lifting. Self capacitance data can be used to determine other auxiliary functions, such as proximity sensing. This is not a complete example.

[0049] For mutual capacitance touch screens, the electrodes at the transmitting end and the electrodes at the receiving end are different and cross vertically. ITO can be used to make horizontal electrodes and vertical electrodes. Capacitors will be formed where the two groups of electrodes cross, that is, the two groups of electrodes constitute the two poles of the capacitor. When a finger touches the capacitive screen, the coupling between the two electrodes near the touch point is affected, thereby changing the capacitance between the two electrodes. When detecting the size of the mutual capacitance, the horizontal electrodes send out excitation signals in turn, and all the vertical electrodes receive the signals at the same time, so that the capacitance values ​​of all the intersections of the horizontal and vertical electrodes can be obtained, that is, the capacitance size of the entire two-dimensional plane of the touch screen. It can be seen from this that it only takes X+Y channels to obtain X*Y mutual capacitance data, which can support multi-point operation. For a mutual capacitance touch screen with a double-layer stacking deployment method, the spacing between the electrodes in the two directions can be more than 150um, so that the suspension effect is better and the impact of dripping is small; in addition, it can also be a single-layer bridge deployment method or an ultra-thin double-layer deployment method.

[0050] For self-capacitive touch screens, for example, ITO is used to make horizontal and vertical electrode arrays on the glass surface, and each of them forms a capacitor with the ground. When a finger touches the capacitive screen, the capacitance of the finger will be superimposed on the capacitance of the screen body, increasing the capacitance of the screen body. Using the method of separate sampling in the X direction and the Y direction, the number of channels required is X+Y, which can support single-point plus gesture, single-layer wiring, and low cost.

[0051] In summary, no matter which capacitive touch screen is used, the capacitance value of each position in the target area can be obtained as capacitance data after scanning the target area. Whether a touch is present can be determined based on each capacitance value.

[0052] In the embodiment of the present application, it is optional to use a self-capacitive touch screen or a mutual-capacitive touch screen, which is not specifically limited here. Optionally, if the touch screen system includes both a self-capacitive touch screen and a mutual-capacitive touch screen, the capacitance data of the target touch area may include self-capacitive data and mutual-capacitive data of the target touch area, the self-capacitive data includes the self-capacitive capacitance values ​​of multiple positions, and the mutual-capacitive data includes the mutual-capacitive capacitance values ​​of multiple positions.

[0053] The target state is a suspended state or a non-suspended state.

[0054] The suspended state is a state where the touch screen system and the touch object do not share the same ground. For example, if a user places an electronic device on a table without connecting it to a charger or wearing a phone case, and touches the touch screen of the electronic device with a finger, the electronic device and the touch screen system are considered to be in a suspended state. If the touch screen system and the touch object share the same ground, it is a non-suspended state; for example, if a user holds the electronic device and touches the touch screen of the electronic device with a finger.

[0055] Step 102: determining a false touch threshold parameter according to the target state.

[0056] Among them, the value of the false touch threshold parameter may be different in different target states. In other words, when the target state is a suspended state, the false touch threshold parameter determined is a first false touch threshold parameter; when the target state is a non-suspended state, the false touch threshold parameter determined is a second false touch threshold parameter, and the first false touch threshold parameter and the second false touch threshold parameter include the same parameters but have different parameter values.

[0057] Optionally, the false touch threshold parameter includes a plurality of threshold parameters related to the capacitance data, so that whether a false touch occurs can be effectively determined based on the capacitance data and the false touch threshold parameter.

[0058] Step 103: Determine whether a false touch condition is met according to the capacitance data and the false touch threshold parameter.

[0059] It is understandable that, since the values ​​of the false touch threshold parameter are different when the target state is a suspended state and a non-suspended state, the false touch conditions are different in the suspended state and the non-suspended state.

[0060] In this way, it can be determined in a targeted manner whether the corresponding false touch conditions are met in the two states, thereby ensuring the accuracy of false touch detection.

[0061] Step 104: If the false touch condition is met, reporting of the touch event based on the capacitance data is prohibited.

[0062] Optionally, when the false touch condition is met, it is determined that the current touch operation is a touch operation with a touch area greater than a preset area threshold, which is considered to be a false touch, and therefore it is prohibited to report the touch event according to the capacitance data.

[0063] In addition, the touch screen system can also be connected to the control system through the INT (interrupt) pin. When the interrupt pin is triggered to output an interrupt signal, the control system can obtain the touch event reported by the touch screen system. In addition, the touch screen system can also be connected to the control system through the I2CSPI interface. The control system sets the communication strategy and operation strategy of the touch screen through this interface, etc., which are not fully illustrated here.

[0064] Optionally, the touch screen system is further provided with a memory and a processor, and the above steps are executed based on the processor, and various types of touch data can also be stored in the memory.

[0065] For example, if reporting of a touch event based on capacitance data is prohibited, the capacitance data of the target touch area acquired this time may be ignored.

[0066] If the false touch condition is not met, a touch event is reported according to the capacitance data, such as reporting the touch position and touch status.

[0067] The above touch event processing method obtains the capacitance data in the target touch area of ​​the touch screen, and obtains the target state of the touch screen; the target state is a suspended state or a non-suspended state; the false touch threshold parameter is determined according to the target state; whether the false touch condition is met is determined according to the capacitance data and the false touch threshold parameter; if the false touch condition is met, it is prohibited to report the touch event according to the capacitance data. In this way, the corresponding false touch threshold parameter can be determined in the suspended state and the non-suspended state respectively, and then it is determined whether to report the touch event, so that the electronic device can be effectively and comprehensively prevented from performing touch operations of the nature of false touch, and the flexibility of the electronic device in detecting false touch operations is improved.

[0068] The process of obtaining the target status is described below.

[0069] In one embodiment, Figure 2 A schematic diagram of a process for obtaining a target state is shown. Obtaining the current target state of the touch screen includes:

[0070] Step 201: determine a maximum capacitance value from capacitance values ​​in capacitance data.

[0071] Step 202: Determine the current target state of the touch screen according to the maximum capacitance value.

[0072] As mentioned above, the capacitance data at least includes the capacitance value corresponding to each position in the target touch area.

[0073] Through research and experiments on the suspension state of a large number of electronic devices, it is known that in the suspension state, the capacitance value of each position of the touch screen is small, which is smaller than the non-suspension state. Therefore, in the embodiment of the present application, the maximum capacitance value can be determined, and the suspension state or non-suspension state can be determined based on the maximum capacitance value.

[0074] In an optional implementation, determining the current target state of the touch screen according to the maximum capacitance value includes: determining whether the maximum capacitance value belongs to a first capacitance value range; if so, determining that the touch screen is currently in a suspended state; if not, determining that the touch screen is currently in a non-suspended state.

[0075] The first capacitance value range may be determined in advance based on experiments, and the first capacitance value range may be determined by counting the maximum capacitance value of all capacitance data when a large area is touched in a large number of floating states.

[0076] In another optional implementation, Figure 3 A schematic diagram of a process for determining a target state according to a maximum capacitance value is shown. Determining the current target state of the touch screen according to the maximum capacitance value includes:

[0077] Step 301, determining whether the maximum capacitance value is less than a first capacitance threshold.

[0078] Step 302: If yes, determine that the touch screen is currently in a suspended state;

[0079] Step 303: If not, determine whether the touch screen is currently in a non-suspended state.

[0080] The first capacitance threshold may be determined in advance through experiments and deployed in the touch screen system.

[0081] For example, Figure 4 FIG. 4 shows the capacitance data of multiple positions acquired by the touch screen system when a single palm contacts the touch screen in a non-suspended state. Figure 5 The capacitance data of multiple positions acquired by the touch screen system when a single palm contacts the touch screen in the suspended state is shown. It can be seen that the maximum data acquired in the non-suspended state is greater than 150, while the maximum capacitance value in the suspended state is less than 150. Therefore, illustratively, the first capacitance threshold can be set to 150, which is not specifically limited here. In addition, it can be seen that in the suspended state, the data in the middle of the contact area is obviously smaller, while in the non-suspended state, a capacitance peak will appear in the middle of the contact area, the capacitance value in the middle position is larger, and the capacitance value at the edge position is smaller.

[0082] In the embodiment of the present application, whether the state is suspended can be determined quickly and efficiently based on the maximum capacitance value in the capacitance data, thereby improving the efficiency of determining the target state.

[0083] The following describes the process of determining whether the false touch condition is met in different states.

[0084] In one embodiment, the false touch threshold parameter includes a reference capacitance threshold and a capacitance quantity threshold, and whether the false touch condition is met is determined according to the capacitance data, the reference capacitance threshold and the capacitance quantity threshold. And / or, the false touch threshold parameter includes a reference capacitance threshold and a channel quantity threshold, and whether the false touch condition is met is determined according to the capacitance data, the reference capacitance threshold and the channel quantity threshold.

[0085] In one embodiment, Figure 6 A schematic diagram of a process for determining whether a false touch condition is met is shown. Determining whether the false touch condition is met according to capacitance data and a false touch threshold parameter includes:

[0086] Step 601: According to capacitance data and a reference capacitance threshold, the number of first capacitance values ​​greater than the reference capacitance threshold is determined from the capacitance data to obtain the number of candidate capacitances.

[0087] Step 602: If the number of candidate capacitors is not less than the capacitor number threshold, it is determined that the false touch condition is satisfied.

[0088] Here, the false touch threshold parameter includes a reference capacitance threshold and a capacitance quantity threshold.

[0089] It is understandable that the reference capacitance threshold and the capacitance quantity threshold may have different values ​​in the suspended state and the non-suspended state. For easy distinction, the false touch threshold parameters of the suspended state are recorded as the first reference capacitance threshold and the first capacitance quantity threshold; the false touch threshold parameters of the non-suspended state are recorded as the second reference capacitance threshold and the second capacitance quantity threshold.

[0090] Exemplarily, when the target state is a suspended state, according to the capacitance data and the first reference capacitance threshold, a first capacitance value greater than the first reference capacitance threshold is determined from the capacitance data, and the number of first capacitance values ​​is counted to obtain the number of candidate capacitances. The number of candidate capacitances is compared with the first capacitance number threshold, and if the number of candidate capacitances is not less than the first capacitance number threshold, it is determined that the false touch condition is met.

[0091] Exemplarily, when the target state is a non-suspended state, according to the capacitance data and the second reference capacitance threshold, a first capacitance value greater than the second reference capacitance threshold is determined from the capacitance data, and the number of first capacitance values ​​is counted to obtain the number of candidate capacitances. The number of candidate capacitances is compared with the second capacitance number threshold, and if the number of candidate capacitances is not less than the second capacitance number threshold, it is determined that the false touch condition is met.

[0092] Optionally, the first reference capacitance threshold and the second reference capacitance threshold have the same value, for example, both are 40 pf.

[0093] In addition, considering that the data detected by the touch screen system is different when a large area is touched in different states, the capacitance threshold in the suspended state is set to be smaller than the capacitance threshold in the non-suspended state according to the actual situation, that is, the first capacitance threshold is smaller than the second capacitance threshold. For example, the first capacitance threshold is 8, and the second capacitance threshold is 10; no specific limitation is made here.

[0094] Exemplarily, the mutual capacitance touch screen is composed of a sending channel and a receiving channel, and the touch screen system collects the capacitance data corresponding to the target touch area, so as to determine the coordinates of the touch position. In the non-suspended state, when the capacitance data is obtained, the number of capacitance values ​​greater than 40 in all the capacitance data is counted. If the number is not less than 10, that is, there are 10 or more capacitance values ​​greater than 40 in the capacitance data, it is determined that the false touch condition is met. In the suspended state, when the capacitance data is obtained, the number of capacitance values ​​greater than 40 in all the capacitance data is counted. If the number is not less than 8, that is, there are 8 or more capacitance values ​​greater than 40 in the capacitance data, it is determined that the false touch condition is met. At this time, the touch event is not reported based on the capacitance data to avoid the occurrence of large-area false touch operations.

[0095] For example, see Figure 7, shows the capacitance data distribution of a mutual capacitance touch screen in a touch situation. Here, the maximum capacitance data in the capacitance data is 50, and if it is greater than 40, it is determined to be in a suspended state, and if there are 10 capacitance values ​​greater than 40, it is determined that the false touch condition is met, and the touch event should be suppressed to avoid large-scale false touches of the electronic device, so as to ensure that the user can use the electronic device normally.

[0096] In one embodiment, Figure 8 Another flow chart of determining whether the false touch condition is met is shown. Determining whether the false touch condition is met according to the capacitance data and the false touch threshold parameter includes:

[0097] Step 801: Determine a first capacitance value greater than the reference capacitance threshold from the capacitance data according to the capacitance data and the reference capacitance threshold.

[0098] Step 802 , determining the reporting channels corresponding to the first capacitance values, and counting the number of reporting channels including the first capacitance values ​​to obtain the number of candidate channels.

[0099] Step 803: If the number of candidate channels is not less than the channel number threshold, it is determined that the false touch condition is met.

[0100] Here, the false touch threshold parameters include a reference capacitance threshold and a channel quantity threshold.

[0101] Similarly, in the suspended state and the non-suspended state, the reference capacitance threshold and the channel number threshold may have different values. For easy distinction, the false touch threshold parameters of the suspended state are recorded as the first reference capacitance threshold and the first channel number threshold; the false touch threshold parameters of the non-suspended state are recorded as the second reference capacitance threshold and the second channel number threshold.

[0102] As mentioned above, the capacitance data is obtained from the data reported by each receiving channel and / or sending channel of the touch screen. Therefore, for a mutual capacitance touch screen, each capacitance value corresponds to a receiving channel and a sending channel, and for a self-capacitive touch screen, each capacitance value also corresponds to a reporting channel. The touch screen system can determine the channel for reporting each capacitance value, and thus can determine the reporting channel corresponding to each capacitance value.

[0103] Exemplarily, when the target state is a suspended state, according to the capacitance data and the first reference capacitance threshold, a first capacitance value greater than the first reference capacitance threshold is determined from the capacitance data, and the reporting channel corresponding to each first capacitance value is determined, and the number of reporting channels is counted to obtain the number of candidate channels. For example, at least one first capacitance value corresponds to reporting channel 1, at least one first capacitance value corresponds to reporting channel 2, and at least one first capacitance value corresponds to reporting channel 3. There are no other first capacitance values ​​corresponding to other reporting channels, and the number of candidate channels is 3 at this time. Then, the number of candidate channels is compared with the first channel number threshold. If the number of candidate channels is not less than the first channel number threshold, it is determined that the false touch condition is met.

[0104] Exemplarily, when the target state is a non-suspended state, according to the capacitance data and the second reference capacitance threshold, a first capacitance value greater than the second reference capacitance threshold is determined from the capacitance data, and the reporting channel corresponding to each first capacitance value is determined, and the number of reporting channels is counted to obtain the number of candidate channels. The number of candidate channels is compared with the second channel number threshold, and if the number of candidate channels is not less than the second channel number threshold, it is determined that the false touch condition is met.

[0105] Optionally, the first reference capacitance threshold and the second reference capacitance threshold have the same value, for example, both are 40 pf.

[0106] In addition, considering that there are differences in data detected by the touch screen system when a large area is touched in different states, according to actual conditions, the channel number threshold in the suspended state is set to be smaller than the channel number threshold in the non-suspended state, that is, the first channel number threshold is smaller than the second channel number threshold.

[0107] In the embodiment of the present application, the channel number threshold and the capacitor number threshold can be used to determine whether the false touch condition is met, thereby improving the flexibility of large-area false touch judgment. In this way, when the electronic device is in a scene such as wearing a rear shell and placing it on a desktop, when the user presses the screen with his hand, the target state of the electronic device can be accurately judged, and the corresponding false touch condition can be adaptively called according to the target state, so that in the target state, it can accurately identify whether it is a large-area false touch, and suppress the touch event caused by the false touch, thereby improving the anti-false touch performance.

[0108] For easier understanding, refer to Fig. 9A schematic flow chart of the process of handling a large-area touch event on a touch screen is shown. It can be seen that during the operation of the electronic device, the state of the electronic device can be determined as a suspended state or a non-suspended state according to the currently acquired capacitance data, and the false touch threshold parameter can be obtained according to the state, and whether it is a false touch according to the false touch threshold parameter, thereby determining whether to report the touch event. Among them, according to the capacitance data and the reference capacitance threshold, the number of first capacitance values ​​greater than the reference capacitance threshold is determined from the capacitance data to obtain the number of candidate capacitances; if the number of candidate capacitances is not less than the capacitance number threshold, it is determined that the false touch condition is met. Alternatively, according to the capacitance data and the reference capacitance threshold, the first capacitance value greater than the reference capacitance threshold is determined from the capacitance data; the reporting channel corresponding to each first capacitance value is determined, and the number of reporting channels containing the first capacitance value is counted to obtain the number of candidate channels; if the number of candidate channels is not less than the channel number threshold, it is determined that the false touch condition is met.

[0109] The embodiment of the present application proposes a method for processing large-area touch events of a touch screen in a suspended state of a mobile terminal. By dynamically calling the identification conditions of large-area false touches in suspended and non-suspended states, the problem of being unable to effectively identify false touch events of large-area touches in a suspended state and process corresponding touch events is solved, and the flexibility and accuracy of electronic devices in processing touch event reports are improved.

[0110] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0111] Based on the same inventive concept, the embodiment of the present application also provides a touch event processing device for implementing the touch event processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more touch event processing device embodiments provided below can refer to the limitations of the touch event processing method above, and will not be repeated here.

[0112] In one embodiment, Fig.10As shown, a touch event processing device is provided, and the touch event processing device 1000 includes: an acquisition module 1001, a first determination module 1002, a second determination module 1003 and a reporting module 1004, wherein:

[0113] The acquisition module 1001 is used to acquire capacitance data in a target touch area of ​​the touch screen, and acquire the current target state of the touch screen; the target state is a suspended state or a non-suspended state;

[0114] A first determination module 1002, configured to determine a false touch threshold parameter according to the target state;

[0115] A second determination module 1003, configured to determine whether a false touch condition is met according to the capacitance data and the false touch threshold parameter;

[0116] The reporting module 1004 is configured to prohibit reporting of a touch event according to the capacitance data if the false touch condition is met.

[0117] In one embodiment, the capacitance data at least includes capacitance values ​​corresponding to each position in the target touch area; the acquisition module 1001 is specifically used to: determine the maximum capacitance value from the capacitance values ​​in the capacitance data; and determine the current target state of the touch screen according to the maximum capacitance value.

[0118] In one embodiment, the acquisition module 1001 is specifically used to: determine whether the maximum capacitance value is less than a first capacitance threshold; if so, determine that the touch screen is currently in a suspended state; if not, determine that the touch screen is currently in a non-suspended state.

[0119] In one embodiment, the false touch threshold parameter includes a reference capacitance threshold and a capacitance quantity threshold; the second determination module 1003 is specifically used to: determine the number of first capacitance values ​​greater than the reference capacitance threshold from the capacitance data according to the capacitance data and the reference capacitance threshold, and obtain the number of candidate capacitances; if the number of candidate capacitances is not less than the capacitance quantity threshold, it is determined that the false touch condition is met.

[0120] In one embodiment, the capacitance threshold in the suspended state is smaller than the capacitance threshold in the non-suspended state.

[0121] In one embodiment, the false touch threshold parameters include a reference capacitance threshold and a channel number threshold; the second determination module 1003 is specifically used to: determine a first capacitance value greater than the reference capacitance threshold from the capacitance data according to the capacitance data and the reference capacitance threshold; determine the reporting channel corresponding to each first capacitance value, and count the number of reporting channels containing the first capacitance value to obtain the number of candidate channels; if the number of candidate channels is not less than the channel number threshold, it is determined that the false touch condition is met.

[0122] In one embodiment, the threshold of the number of channels in the suspended state is smaller than the threshold of the number of channels in the non-suspended state.

[0123] Each module in the above touch event processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0124] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Fig.11 As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a touch event processing method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.

[0125] Those skilled in the art will understand that Fig.11 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of 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 a different arrangement of components.

[0126] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0127] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0128] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0129] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile 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), magnetoresistive 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0130] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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 specification.

[0131] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A touch event processing method, characterized in that: The method comprises: Acquire capacitance data in a target touch area of ​​the touch screen, and acquire a current target state of the touch screen; the target state is a suspended state or a non-suspended state; Determining a false touch threshold parameter according to the target state; Determining whether a false touch condition is met according to the capacitance data and the false touch threshold parameter; If the false touch condition is met, reporting of a touch event according to the capacitance data is prohibited.

2. The method according to claim 1, characterized in that The capacitance data at least includes capacitance values ​​corresponding to each position in the target touch area; and obtaining the current target state of the touch screen includes: determining a maximum capacitance value from the capacitance values ​​in the capacitance data; The current target state of the touch screen is determined according to the maximum capacitance value.

3. The method according to claim 2, characterized in that The step of determining the current target state of the touch screen according to the maximum capacitance value includes: Determining whether the maximum capacitance value is less than a first capacitance threshold; If yes, determining that the touch screen is currently in the suspended state; If not, it is determined that the touch screen is currently in the non-suspended state.

4. The method according to any one of claims 1 to 3, characterized in that: The false touch threshold parameters include a reference capacitance threshold and a capacitance quantity threshold; The determining whether the false touch condition is met according to the capacitance data and the false touch threshold parameter includes: According to the capacitance data and the reference capacitance threshold, determining the number of first capacitance values ​​greater than the reference capacitance threshold from the capacitance data to obtain the number of candidate capacitances; If the number of candidate capacitors is not less than the capacitor number threshold, it is determined that the false touch condition is met.

5. The method according to claim 4, characterized in that The capacitance quantity threshold in the suspended state is smaller than the capacitance quantity threshold in the non-suspended state.

6. The method according to any one of claims 1 to 3, characterized in that: The false touch threshold parameter includes a reference capacitance threshold and a channel quantity threshold; and determining whether the false touch condition is met according to the capacitance data and the false touch threshold parameter includes: Determining, from the capacitance data, a first capacitance value greater than the reference capacitance threshold value according to the capacitance data and the reference capacitance threshold value; Determine the reporting channels corresponding to the first capacitance values, and count the number of reporting channels including the first capacitance value to obtain the number of candidate channels; If the number of candidate channels is not less than the channel number threshold, it is determined that the false touch condition is met.

7. The method according to claim 6, characterized in that The channel quantity threshold in the suspended state is smaller than the channel quantity threshold in the non-suspended state.

8. A touch event processing device, characterized in that: The device comprises: An acquisition module, used to acquire capacitance data in a target touch area of ​​the touch screen, and acquire a current target state of the touch screen; the target state is a suspended state or a non-suspended state; A first determination module, used to determine a false touch threshold parameter according to the target state; A second determination module, configured to determine whether a false touch condition is met according to the capacitance data and the false touch threshold parameter; The reporting module is configured to prohibit reporting of a touch event according to the capacitance data if the false touch condition is met.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Touch screen mistaken touch prevention control method and system based on multi-sensor fusion

    CN121523569A