Touch control method and device, electronic equipment and storage medium

By determining the center of gravity of touch operations in gaming scenarios, calculating the original coordinates, and issuing control commands, the problem of inaccurate recognition or touch interruption during rapid clicks or swipes on electronic devices is solved, thus improving the user experience.

CN115145415BActive Publication Date: 2026-06-16BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2021-03-29
Publication Date
2026-06-16

Smart Images

  • Figure CN115145415B_ABST
    Figure CN115145415B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a touch control method and device, an electronic device and a storage medium. The method comprises: determining a first region corresponding to a touch operation, the first region comprising a plurality of mutual capacitance nodes; determining an original coordinate of a preset node in the first region, wherein the preset node is a mutual capacitance node corresponding to a barycentric position in the first region; and determining a control instruction corresponding to the touch operation according to the original coordinate of the preset node. According to the method of the present disclosure, after receiving a touch operation, the original coordinate corresponding to the barycentric position in the relevant region involved in the touch operation is determined. The method of determining the original coordinate is more accurate, thereby facilitating accurate determination of the control instruction corresponding to the touch operation and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of touch technology, and in particular to a touch control method, device, electronic device and storage medium. Background Technology

[0002] As technology advances, users have increasingly higher demands for the touch experience of electronic devices. For example, in application scenarios where touch operations are frequent, such as games, users may frequently engage in actions like rapid clicking or swiping, requiring extremely high sensitivity and accuracy in touch control.

[0003] In related technologies, in such application scenarios, electronic devices cannot accurately receive the coordinates corresponding to touch operations, resulting in inaccurate recognition or disconnection. Consequently, the electronic devices cannot accurately output the user's required instructions, which greatly affects the user experience. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a touch control method, device, electronic device, and storage medium.

[0005] According to a first aspect of the present disclosure, a touch control method is provided, comprising:

[0006] A first region corresponding to the touch operation is determined, and the first region includes multiple mutual capacitance nodes;

[0007] Determine the original coordinates of a preset node in the first region, wherein the preset node is the mutual capacitance node corresponding to the centroid position in the first region;

[0008] Based on the original coordinates of the preset node, the control command corresponding to the touch operation is determined.

[0009] Optionally, determining the original coordinates of the preset nodes in the first region includes:

[0010] Obtain the capacitance change of each mutual capacitance node in the first region;

[0011] Obtain the node coordinates of the reference node, wherein the reference node is the mutual capacitance node corresponding to the maximum capacitance change in the first region;

[0012] The original coordinates of the preset node are determined based on the capacitance change of each mutual capacitance node and the node coordinates of the reference node.

[0013] Optionally, determining the original coordinates of the preset node based on the capacitance change of each mutual capacitance node and the node coordinates of the reference node includes:

[0014] Determine the total capacitance change in the first region;

[0015] The x-coordinate of the original coordinates is determined based on the capacitance change of each mutual capacitance node, the x-coordinate of the node coordinates of the reference node, the node parameters of the two nodes adjacent to the reference node on the x-axis, and the total capacitance change.

[0016] The ordinate of the original coordinates is determined based on the capacitance change of each mutual capacitance node, the ordinate of the node coordinates of the reference node, the node parameters of the two nodes adjacent to the reference node on the ordinate axis, and the total capacitance change.

[0017] Optionally, determining the control command corresponding to the touch operation based on the original coordinates of the preset node includes:

[0018] Determine the pixel coordinates corresponding to the original coordinates of the preset node;

[0019] The control command is determined based on the pixel coordinates.

[0020] Optionally, determining the pixel coordinates corresponding to the original coordinates of the preset node includes:

[0021] The conversion coefficient is determined based on the area of ​​the original coordinates on the display screen.

[0022] The original coordinates are converted into pixel coordinates based on the conversion coefficients.

[0023] Optionally, the method further includes:

[0024] In response to a touch operation being a swipe operation, the original coordinates of two adjacent preset nodes corresponding to two adjacent click operations in the swipe operation are determined;

[0025] The control command corresponding to the sliding operation is determined based on the original coordinates of two adjacent preset nodes.

[0026] Optionally, determining the control command corresponding to the sliding operation based on the original coordinates of two adjacent preset nodes includes:

[0027] In response to the fact that the original coordinates of the latter of two adjacent preset nodes are 0, the original coordinates of the former are used as the original coordinates of the latter to determine the control command.

[0028] The sliding operation ends when the original coordinates of two adjacent preset nodes are both 0.

[0029] Optionally, determining the first area corresponding to the touch operation includes:

[0030] Determine the second region and normalization coefficient corresponding to the touch operation, wherein the second region is not less than the first region;

[0031] Based on the normalization coefficient, the gain is related to the capacitance parameters of the mutual capacitance nodes in the second region;

[0032] The first region is determined in the second region based on the capacitance parameters after gain.

[0033] According to a second aspect of the present disclosure, a touch control device is provided, comprising:

[0034] The first determining module is used to determine the first area corresponding to the touch operation, the first area including multiple mutual capacitance nodes;

[0035] The second determining module is used to determine the original coordinates of a preset node in the first region, wherein the preset node is the mutual capacitance node corresponding to the centroid position in the first region.

[0036] The third determining module is used to determine the control command corresponding to the touch operation based on the original coordinates of the preset node.

[0037] Optionally, the second determining module is specifically used for:

[0038] Obtain the capacitance change of each mutual capacitance node in the first region;

[0039] Obtain the node coordinates of the reference node, wherein the reference node is the mutual capacitance node corresponding to the maximum capacitance change in the first region;

[0040] The original coordinates of the preset node are determined based on the capacitance change of each mutual capacitance node and the node coordinates of the reference node.

[0041] Optionally, the second determining module is specifically used for:

[0042] Determine the total capacitance change in the first region;

[0043] The x-coordinate of the original coordinates is determined based on the capacitance change of each mutual capacitance node, the x-coordinate of the node coordinates of the reference node, the node parameters of the two nodes adjacent to the reference node on the x-axis, and the total capacitance change.

[0044] The ordinate of the original coordinates is determined based on the capacitance change of each mutual capacitance node, the ordinate of the node coordinates of the reference node, the node parameters of the two nodes adjacent to the reference node on the ordinate axis, and the total capacitance change.

[0045] Optionally, the third determining module is specifically used for:

[0046] Determine the pixel coordinates corresponding to the original coordinates of the preset node;

[0047] The control command is determined based on the pixel coordinates.

[0048] Optionally, the third determining module is specifically used for:

[0049] The conversion coefficient is determined based on the area of ​​the original coordinates on the display screen.

[0050] The original coordinates are converted into pixel coordinates based on the conversion coefficients.

[0051] Optionally, the second determining module is further configured to:

[0052] In response to a touch operation being a swipe operation, determine the original coordinates of two adjacent preset nodes corresponding to two consecutive click operations during the swipe operation;

[0053] The third determining module is also used to determine the control command corresponding to the sliding operation based on the original coordinates of two adjacent preset nodes.

[0054] Optionally, the third determining module is specifically used for:

[0055] In response to the fact that the original coordinates of the latter of two adjacent preset nodes are 0, the original coordinates of the former are used as the original coordinates of the latter to determine the control command.

[0056] The sliding operation ends when the original coordinates of two adjacent preset nodes are both 0.

[0057] Optionally, the first determining module is specifically used for:

[0058] Determine the second region and normalization coefficient corresponding to the touch operation, wherein the second region is not less than the first region;

[0059] Based on the normalization coefficient, the gain is related to the capacitance parameters of the mutual capacitance nodes in the second region;

[0060] The first region is determined in the second region based on the capacitance parameters after gain.

[0061] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0062] processor;

[0063] Memory used to store the processor's executable instructions;

[0064] The processor is configured to execute the touch control method as described in any of the preceding claims.

[0065] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the touch control method as described in any of the preceding claims.

[0066] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: Using the method of this disclosure, after receiving a touch operation, the original coordinates corresponding to the center of gravity position are determined in the relevant area involved in the touch operation. The method of determining the original coordinates is more accurate, which facilitates the accurate determination of the control commands corresponding to the touch operation and improves the user experience.

[0067] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0068] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0069] Figure 1 This is a flowchart illustrating a method according to an exemplary embodiment.

[0070] Figure 2 This is a flowchart illustrating a method according to an exemplary embodiment.

[0071] Figure 3 This is a flowchart illustrating a method according to an exemplary embodiment.

[0072] Figure 4 This is a flowchart illustrating a method according to an exemplary embodiment.

[0073] Figure 5 This is a flowchart illustrating a method according to an exemplary embodiment.

[0074] Figure 6 This is a flowchart illustrating a method according to an exemplary embodiment.

[0075] Figure 7 This is a flowchart illustrating a method according to an exemplary embodiment.

[0076] Figure 8 This is a schematic diagram of a first region according to an exemplary embodiment.

[0077] Figure 9 This is a schematic diagram illustrating a display screen partition according to an exemplary embodiment.

[0078] Figure 10 This is a block diagram of an apparatus according to an exemplary embodiment.

[0079] Figure 11 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0080] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0081] As technology advances, users have increasingly higher demands for the touch experience of electronic devices. For example, in application scenarios where touch operations are frequent, such as games, users may frequently engage in actions like rapid clicking or swiping, requiring extremely high sensitivity and accuracy in touch control.

[0082] In related technologies, in such application scenarios, electronic devices cannot accurately receive the coordinates corresponding to touch operations, resulting in inaccurate recognition or disconnection. Consequently, the electronic devices cannot accurately output the user's required instructions, which greatly affects the user experience.

[0083] Research has found that the main reasons for inaccurate recognition or contact loss issues in related technologies include:

[0084] First, after receiving a touch, the coordinates are often reported based on the capacitance change of a single mutual capacitance node. However, touch operations, especially swipe operations, may affect multiple mutual capacitance nodes. Therefore, the method of determining the original coordinates in related technologies is inaccurate.

[0085] Second, in game scenarios involving frequent operations, if the swipe operation is too fast, the electronic device may miss a frame of data and fail to report a certain frame of touch data, thus causing a touch interruption.

[0086] To address the technical problems in related technologies, this disclosure proposes a touch control method, comprising: determining a first region corresponding to a touch operation, the first region including multiple mutual capacitance nodes; determining the original coordinates of preset nodes in the first region, wherein the preset nodes are mutual capacitance nodes corresponding to the center position in the first region; and determining the control command corresponding to the touch operation based on the original coordinates of the preset nodes. Using the method of this disclosure, upon receiving a touch operation, the original coordinates corresponding to the center position are determined in the relevant region involved in the touch operation. The method of determining the original coordinates is more precise, thereby facilitating the accurate determination of the control command corresponding to the touch operation and improving the user experience.

[0087] In one exemplary embodiment, the touch control method of this embodiment is applied to an electronic device. The electronic device includes a display screen and a touch screen. The display screen may be, for example, an LCD display screen or an OLED display screen. The touch screen may be integrated onto a cover glass, which is disposed above the display screen. Alternatively, the touch screen may be integrated onto or within the display screen.

[0088] like Figure 1 As shown, the method in this embodiment may specifically include the following steps:

[0089] S110. Determine the first area corresponding to the touch operation. The first area includes multiple mutual capacitance nodes.

[0090] S120. Determine the original coordinates of the preset nodes in the first region.

[0091] S130. Determine the control command corresponding to the touch operation based on the original coordinates of the preset node.

[0092] Touch operations can be, for example, user commands during the use of an electronic device. The touchscreen receives the user's touch input and determines the touch location based on the input. The electronic device's processor receives the touch location information and issues corresponding control commands to control the display screen to show the corresponding content in conjunction with the touch operation.

[0093] A touchscreen, for example, is a mutual capacitance screen. It includes horizontal and vertical electrodes made of ITO (indium tin oxide), with mutual capacitance nodes formed at their intersections. At these nodes, the horizontal and vertical electrodes form the two poles of a capacitor. When a touch operation occurs, it affects the coupling between the two electrodes of the mutual capacitance node, thereby changing the capacitance value between them.

[0094] The lateral electrode can be a transmitting (TX) electrode, and the longitudinal electrode can be a receiving (RX) electrode. Each mutual capacitance node is connected to the sensing channel (the channel of the internal detection chip of the touch screen) via an ITO. The transmitting electrode can periodically send an excitation signal, the receiving electrode receives the signal, and the sensing channel determines the capacitance change at the corresponding mutual capacitance node by sensing the signal changes.

[0095] Therefore, the touchscreen can detect the change in capacitance at the node and determine the original coordinates to be reported to the processor based on the change in capacitance.

[0096] In step S110, the first area on the display screen of the electronic device in this step is the area affected by the touch operation, that is, the touch operation may affect multiple mutual capacitance nodes, causing the capacitance of multiple mutual capacitance nodes to change. The first area includes these multiple mutual capacitance nodes. For example, such as... Figure 8As shown, the first region includes 9 mutual capacitance nodes.

[0097] The processor can determine the first area based on the detection data from the touchscreen. Alternatively, the touchscreen can determine the first area and then report it to the processor.

[0098] In step S120, the preset node is the mutual capacitance node corresponding to the centroid position in the first region. For example, a two-dimensional centroid algorithm can be used to determine the centroid position of the first region in this step.

[0099] For example, such as Figure 8 As shown, the preset node is the node located at the center of the first region. The original coordinates of this preset node are determined as the coordinates corresponding to the touch operation. Understandably, in this example, the first region has a regular shape, and the capacitance change is greatest at the center of gravity, denoted as Diff. Here, capacitance change refers to the capacitance change between the two electrodes in the mutual capacitance node under the influence of a touch operation.

[0100] In step S130, the original coordinates of a preset node are used as the coordinates corresponding to the touch operation, and the touch screen reports these original coordinates. The processor can issue corresponding control commands based on these original coordinates to control the display screen to display in conjunction with the touch operation.

[0101] In one exemplary embodiment, such as Figure 2 As shown, step S120 in this embodiment may specifically include the following steps:

[0102] S121. Obtain the capacitance change of each mutual capacitance node in the first region.

[0103] S122. Obtain the node coordinates of the reference node.

[0104] S123. Determine the original coordinates of the preset node based on the capacitance change of each mutual capacitance node and the node coordinates of the reference node.

[0105] In step S121, when a touch operation occurs, the touchscreen can detect the capacitance change of each mutual capacitance node affected by the touch operation. The processor obtains the capacitance change of each mutual capacitance node in the first region.

[0106] like Figure 8 As shown, for example, the capacitance changes of the following mutual capacitance nodes involved in the first region are as follows: Diff 1, Diff 2, Diff 3, Diff 4, Diff, Diff 5, Diff 6, Diff 7 and Diff 8.

[0107] In step S122, each mutual capacitance node in the touchscreen has its corresponding node coordinates (horizontal and vertical coordinates). The processor can obtain the node coordinates of any mutual capacitance node as needed. In this step, the processor obtains the node coordinates of a reference node. For example, if the node coordinates of the reference node are (Tx8, Rx4), it indicates that the node is located at the intersection of the 8th horizontal electrode and the 4th vertical electrode. Figure 8 In the corresponding embodiment, the reference node coincides with the preset node.

[0108] In step S123, the original coordinates of the preset node are determined based on the values ​​of the capacitance changes in the first region involved in step S121 and the node coordinates involved in step S122.

[0109] like Figure 3 As shown, in this embodiment, step S123 may specifically include the following steps:

[0110] S1231. Determine the total capacitance change in the first region.

[0111] In this step, based on the capacitance change of each mutual capacitance node in the first region, the total capacitance change in the first region can be calculated. For example, as... Figure 8 In the example shown, the total capacitance change (ulSum_c) is:

[0112] ulSum_c=Diff 1+Diff 2+Diff 3+Diff 4+Diff+Diff 5+Diff 6+Diff 7+Diff8.

[0113] S1232. Determine the original coordinates of the preset nodes based on the capacitance change of each mutual capacitance node, the x-coordinate of the reference node, the node parameters of the two nodes adjacent to the reference node on the x-axis, and the total capacitance change.

[0114] In this step, node parameters may include, for example, the x-coordinates of adjacent nodes. For instance, the node parameters of the two nodes adjacent to the reference node on the x-axis include the x-coordinate of the left node and the x-coordinate of the right node of the reference node.

[0115] Combination Figure 8 As shown, the capacitance change corresponding to the reference node is the maximum value, Diff, and the node coordinates are (Tx8, Rx4). The x-coordinate of the node to the left of the reference node is Tx7, and the x-coordinate of the node to the right of the reference node is Tx9. The capacitance changes of the nodes in the first region are, in order, Diff 1, Diff 2, Diff 3, Diff 4, Diff, Diff 5, Diff 6, Diff 7, and Diff 8.

[0116] By combining the coordinates of the reference node and adjacent nodes, the initial x-coordinate of the preset node is obtained:

[0117] ulSum_tx=(Diff1+Diff4+Diff6)*Tx7+(Diff2+Diff+Diff7)*Tx8+(Diff3+Diff5+Diff8)*Tx9.

[0118] Therefore, the x-coordinate PosTX of the original coordinates of the preset node is: PosTX = ulSum_tx / ulSum_c.

[0119] S1233. Determine the original coordinates of the preset node based on the capacitance change of each mutual capacitance node, the ordinate of the reference node in the node coordinates, the node parameters of the two nodes adjacent to the reference node on the ordinate axis, and the total capacitance change.

[0120] In this step, node parameters may include, for example, the ordinates of adjacent nodes. For instance, the node parameters of the two nodes adjacent to the reference node on the ordinate axis include the ordinate of the node above the reference node and the ordinate of the node below the reference node.

[0121] Combination Figure 8 As shown, the capacitance change corresponding to the reference node is the maximum value, Diff, and the node coordinates are (Tx8, Rx4). The ordinate of the node above the reference node is Rx3, and the ordinate of the node below the reference node is Rx5. The capacitance changes of the nodes in the first region are, in order, Diff 1, Diff 2, Diff 3, Diff 4, Diff, Diff 5, Diff 6, Diff 7, and Diff 8.

[0122] By combining the coordinates of the reference node and adjacent nodes, the initial ordinate of the preset node is obtained:

[0123] ulSum_rx=(Diff1+Diff4+Diff6)*Rx3+(Diff2+Diff+Diff7)*Rx4+(Diff3+Diff5+Diff8)*Rx5.

[0124] Therefore, the original ordinate PosRX of the preset node is: PosRX = ulSum_rx / ulSum_c.

[0125] Understandably, the influence coefficients corresponding to (Diff1+Diff2+Diff3) or (Diff4+Diff+Diff5) or (Diff6+Diff7+Diff8) are considered to be 1, and therefore omitted in the above calculation formula.

[0126] Therefore, combining steps S1232 and S1233, in step S123, the original coordinates of the preset node are finally determined as (PosTX, PosRX) using the two-dimensional centroid algorithm.

[0127] Understandably, the above description uses... Figure 8 The corresponding example is illustrated, in which the preset node and the reference node coincide (both are located at the centroid of the first region), and the process of solving the original coordinates of the preset node is also the process of solving the original coordinates of the reference node. In other embodiments, when the first region is an irregularly shaped region, the preset node may not coincide with the reference node. In this case, the above calculation method is still used, and the original coordinates of the preset node are solved by using the relevant parameters of the reference node.

[0128] In this embodiment, the processor receives the original coordinates of a preset node reported by the touchscreen, or the processor determines the original coordinates of the preset node based on the relevant data reported by the touchscreen. During the determination of the original coordinates of the preset node, the influence of all mutual capacitance nodes within the first region is comprehensively considered, thereby more accurately determining the original coordinates to be reported. This allows the processor to issue more accurate control commands based on the highly accurate original coordinates, improving the touch experience in the application scenario.

[0129] In one exemplary embodiment, such as Figure 4 As shown, step S130 in this embodiment may specifically include the following steps:

[0130] S131. Determine the pixel coordinates corresponding to the original coordinates of the preset node.

[0131] S132. Determine the control command based on the pixel coordinates.

[0132] In step S131, the pixel coordinates correspond to the coordinates displayed on the screen. After obtaining the original coordinates of the preset node, the processor can determine the position corresponding to the touch operation and convert the original coordinates of the preset node into pixel coordinates for the display screen to recognize.

[0133] In step S132, after determining the pixel coordinates of the preset node, the processor can issue a control command containing the pixel coordinates to control the display screen to display content corresponding to the touch operation at the corresponding position (such as the position represented by the pixel coordinates).

[0134] In one exemplary embodiment, such as Figure 5 As shown, step S131 in this embodiment may specifically include the following steps:

[0135] S1311. Determine the conversion coefficient based on the area of ​​the preset node's original coordinates on the display screen.

[0136] S1312. Convert the original coordinates to pixel coordinates according to the conversion coefficient.

[0137] In step S1311, as follows Figure 9 As shown, the display screen area includes a central area, a secondary edge area, and an edge area. In the process of calculating the original coordinates of the preset node, as in step S120 above, the surrounding nodes of the preset node are referenced. However, for the secondary edge area of ​​the display screen, i.e. the edge area, there are no surrounding nodes for reference. Therefore, the coefficients for converting the original coordinates to pixel coordinates are different in the three areas.

[0138] The memory of an electronic device can store the correspondence between the display area and the conversion coefficient. The processor determines the corresponding conversion coefficient based on the area it is in.

[0139] In step S1312, the original coordinates of the preset node are converted into pixel coordinates according to the determined conversion coefficients.

[0140] In a specific example, such as Figure 9 As shown, for this display screen, the center point of the central area is A, the intersection of the central area and the secondary edge area is B, the intersection of the secondary edge area and the edge area is F, and the point D is located in the edge area.

[0141] Given that the original coordinates of point B are E0 and the pixel coordinates are P0; the original coordinates of point F are E1 and the pixel coordinates are P1; the original coordinates of point D are E2 and the pixel coordinates are P2; and the original coordinates of point A are C = ChNum * 256 / 2 and the pixel coordinates are Pc = P2 / 2, where ChNum represents the total number of sensing channels, and 256 represents the calculation precision of the sensing channels (2^35 * 2^6 * ... 8 (i.e., level 256).

[0142] It is understood that the coordinates mentioned above all include X-axis values ​​and Y-axis values. This embodiment is intended to illustrate the calculation method, and no specific distinction is made for ease of description.

[0143] In the first scenario:

[0144] When the original coordinates (PosTX, PosRX) of the preset node determined in step S120 are in the central region, that is, within the range of E0, the pixel coordinates corresponding to the preset node should also be within the range of P0. At this time, the pixel coordinates of the preset node are:

[0145] Px = |Pos–C|*K0+Cp;

[0146] Where K0 is the conversion coefficient corresponding to the central region, K0=|P0–Pc| / |E0–C|.

[0147] Cp represents the capacitance change at a preset node, such as in... Figure 8 In the example shown, Cp is the maximum capacitance change, Diff.

[0148] According to this formula, the x-coordinate of the preset node pixel coordinate is calculated using the x-coordinate PosTX of the original coordinates of the preset node, and the y-coordinate of the pixel coordinate is calculated using the y-coordinate PosRX of the original coordinates.

[0149] In the second scenario:

[0150] When the original coordinates (PosTX, PosRX) of the preset node determined in step S120 are in the secondary edge region, i.e., within the range of E0 to E1, the pixel coordinate range corresponding to the preset node should be within the range of P0 to P1. At this time, the pixel coordinates of the preset node are:

[0151] Px = |Pos–P0|*K1+P0;

[0152] Where K1 is the transformation coefficient corresponding to the sub-edge region, K1=|P1–P0| / |E1–E0|. The application of the formula is the same as in the previous scenario, and will not be repeated here.

[0153] In the third scenario:

[0154] When the original coordinates (PosTX, PosRX) of the preset node determined in step S120 are in the edge region, i.e., within the range of E1 to E2, the pixel coordinate range corresponding to the preset node should be within the range of P1 to P2. At this time, the pixel coordinates of the preset node are:

[0155] Px = |Po – P1| * K2 + P1;

[0156] Where K2 is the transformation coefficient corresponding to the edge region, K2=|P2–P1| / |E2–E1|. The application of the formula is the same as in the previous scenario, and will not be repeated here.

[0157] Based on the specific circumstances of the three scenarios described above, the processor can determine the pixel coordinates of preset nodes and then issue control commands. In this embodiment, the transformation coefficients of the coordinate transformation are adjusted regionally to improve the point reporting calculation speed and address the problem of inaccurate calculations caused by design defects in the display screen structure and electrode structure.

[0158] In one exemplary embodiment, such as Figure 6 As shown, the method in this embodiment further includes the following steps:

[0159] S210. In response to a touch operation being a swipe operation, determine the original coordinates of two adjacent preset nodes corresponding to two adjacent click operations in the swipe operation.

[0160] S220. Determine the control command corresponding to the sliding operation based on the original coordinates of two adjacent preset nodes.

[0161] In step S210, as described in the aforementioned embodiment, each determination of the original coordinates of a preset node is equivalent to receiving a click or quick click operation, allowing the electronic device to accurately determine the original coordinates and pixel coordinates of the preset node. When the touch operation is a swipe or draw, each touch action can be considered a click, and the overall swipe operation is considered to include multiple consecutive click actions.

[0162] For a swipe operation, determine the original coordinates corresponding to the click actions it contains. The original coordinates corresponding to each click action can be considered as one frame of data. Determine the data for multiple adjacent frames.

[0163] In step S220, control commands are determined based on the status of adjacent data frames.

[0164] In one example, in response to the fact that the original coordinates of the latter preset node among two adjacent predetermined preset nodes are 0, the original coordinates of the former preset node are used as the original coordinates of the latter preset node to determine the control command. An original coordinate of 0 for a preset node indicates that the touchscreen did not detect a click operation, therefore the capacitance change of the preset node corresponding to the click operation is 0, and the original coordinates of the corresponding preset node are 0.

[0165] In this example, during the swipe operation, if the user swipes too quickly, touch data might not be detected in a certain frame, resulting in an initial coordinate of 0. If the data in the previous frame is not 0, it can be used for patching, i.e., the previous frame's data is copied as the current frame's data. The processor determines the control instructions based on the initial coordinates of the two frames.

[0166] Therefore, in this example, it can be ensured that there will be no touch dropout during rapid swiping, improving the smoothness of touch operation and enhancing the user experience.

[0167] In another example, the sliding operation is terminated when the original coordinates of both preset nodes in two adjacent predetermined preset nodes are both 0.

[0168] In this example, if two consecutive frames of data are 0, it indicates that this is a normal end signal for the swipe operation (hand lifted), rather than a missed touch data detection. The swipe operation is then confirmed to be complete, and the processor issues corresponding instructions based on the collected swipe operation data.

[0169] In one exemplary embodiment, such as Figure 7 As shown, step S110 in this embodiment may specifically include the following steps:

[0170] S1101. Determine the second region and normalization coefficient corresponding to the touch operation.

[0171] S1102. Based on the normalization coefficient, the gain and the capacitance parameters of the mutual capacitance nodes in the second region.

[0172] S1103. Determine the first region in the second region based on the capacitor parameters after gain.

[0173] In step S1101, the second region may be, for example, a region corresponding to the touch operation that is not smaller than the first region. The normalization coefficient may be, for example, determined by the processor based on hardware characteristics and pre-stored in the processor. Hardware characteristics may include parameters such as the number, period, peak voltage, and sampling frequency of the excitation signal (waveform) sent by the transmit (TX) electrode, as well as the ADC sampling frequency in the detection chip. The processor can acquire this normalization coefficient at any time.

[0174] In step S1102, the normalization coefficient is used as a scaling factor to adjust the capacitance change of the node corresponding to the touch operation.

[0175] Before adjustment, the capacitance changes of each mutual capacitance node might differ only slightly (e.g., all on the order of tens), resulting in a potentially large and highly disruptive second region. However, after adjusting the scaling using normalization coefficients, the capacitance changes of each node in the second region after scaling (e.g., gain adjusted to the order of hundreds) become more distinct, making it easier to identify the main areas affected by touch operations.

[0176] It is understandable that the normalization coefficients corresponding to different mutual capacitance nodes may be the same or different.

[0177] In step S1103, based on the adjustment in step S1102, after adjustment using normalization coefficients, the main area affected by the touch operation in the second region can be determined, namely the first region. When determining the first region in the second region, it can be the node surrounding the node with the maximum capacitance change, where the capacitance change of the surrounding mutual capacitance nodes is also greater than the threshold, indicating that the first region is indeed the main area affected by the touch operation.

[0178] In this embodiment, by combining scaling adjustment, a more accurate first region can be determined, so that the capacitance change of each mutual capacitance node in the first region is within the optimal processing range, further improving the accuracy of the determination of the original coordinates and pixel coordinates.

[0179] In one exemplary embodiment, this disclosure also provides a touch control device, such as... Figure 10As shown, the apparatus of this embodiment includes: a first determining module 110, a second determining module 120, and a third determining module 130. The apparatus of this embodiment is used to implement... Figure 1 The method is illustrated below. The first determining module 110 is used to determine a first region corresponding to the touch operation, the first region including multiple mutual capacitance nodes. The second determining module 120 is used to determine the original coordinates of preset nodes in the first region, wherein the preset nodes are the mutual capacitance nodes corresponding to the centroid positions in the first region. The third determining module 130 is used to determine the control command corresponding to the touch operation based on the original coordinates of the preset nodes.

[0180] In one exemplary embodiment, reference is still made to... Figure 10 As shown, the apparatus of this embodiment includes: a first determining module 110, a second determining module 120, and a third determining module 130. The apparatus of this embodiment is used to implement... Figure 2 The method is shown. Specifically, the second determining module 120 is used to: obtain the capacitance change of each mutual capacitance node in the first region; obtain the node coordinates of a reference node, wherein the reference node is the mutual capacitance node corresponding to the maximum capacitance change in the first region; and determine the original coordinates of a preset node based on the capacitance change of each mutual capacitance node and the node coordinates of the reference node.

[0181] In one exemplary embodiment, reference is still made to... Figure 10 As shown, the apparatus of this embodiment includes: a first determining module 110, a second determining module 120, and a third determining module 130. The apparatus of this embodiment is used to implement... Figure 3 The method is shown. Specifically, the second determining module 120 is used to: determine the total capacitance change in the first region; determine the abscissa of the original coordinates based on the capacitance change of each mutual capacitance node, the abscissa of the reference node's node coordinates, the node parameters of the two nodes adjacent to the reference node on the abscissa, and the total capacitance change; and determine the ordinate of the original coordinates based on the capacitance change of each mutual capacitance node, the ordinate of the reference node's node coordinates, the node parameters of the two nodes adjacent to the reference node on the ordinate, and the total capacitance change.

[0182] In one exemplary embodiment, reference is still made to... Figure 10 As shown, the apparatus of this embodiment includes: a first determining module 110, a second determining module 120, and a third determining module 130. The apparatus of this embodiment is used to implement... Figure 4The method is illustrated. Specifically, the third determining module 130 is used to: determine the pixel coordinates corresponding to the original coordinates of the preset node; and determine the control command based on the pixel coordinates. In this embodiment, the third determining module 130 is specifically used to: determine the conversion coefficient based on the area of ​​the original coordinates located on the display screen; and convert the original coordinates into pixel coordinates based on the conversion coefficient.

[0183] In one exemplary embodiment, reference is still made to... Figure 10 As shown, the apparatus of this embodiment includes: a first determining module 110, a second determining module 120, and a third determining module 130. The apparatus of this embodiment is used to implement... Figure 6 The method is shown. The second determining module 120 is further configured to: in response to a touch operation being a swipe operation, determine the original coordinates of two adjacent preset nodes corresponding to two adjacent click operations in the swipe operation; the third determining module 130 is further configured to: determine the control command corresponding to the swipe operation based on the original coordinates of the two adjacent preset nodes. In this embodiment, the third determining module 130 is specifically configured to: in response to the original coordinate of the latter of the two adjacent preset nodes being 0, use the original coordinate of the former as the original coordinate of the latter to determine the control command; in response to the original coordinates of both adjacent preset nodes being 0, determine that the swipe operation has ended.

[0184] In one exemplary embodiment, reference is still made to... Figure 10 As shown, the apparatus of this embodiment includes: a first determining module 110, a second determining module 120, and a third determining module 130. The apparatus of this embodiment is used to implement... Figure 7 The method is shown. Specifically, the first determining module 110 is used to: determine the second region corresponding to the touch operation and the normalization coefficient, wherein the second region is not less than the first region; according to the normalization coefficient, gain and capacitance parameters of mutual capacitance nodes in the second region; and according to the gained capacitance parameters, determine the first region in the second region.

[0185] like Figure 11 The diagram shown is a block diagram of an electronic device. This disclosure also provides an electronic device, for example, device 500 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.

[0186] Device 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input / output (I / O) interface 512, sensor component 514, and communication component 516.

[0187] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.

[0188] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of this data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0189] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 500.

[0190] Multimedia component 508 includes a screen that provides an output interface between device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0191] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.

[0192] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0193] Sensor assembly 514 includes one or more sensors for providing state assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0194] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0195] In an exemplary embodiment, device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0196] Another exemplary embodiment of this disclosure provides a non-transitory computer-readable storage medium, such as a memory 504 including instructions that can be executed by a processor 520 of a device 500 to perform the described method. For example, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device. When the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to perform the described method.

[0197] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.

[0198] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A touch control method, characterized in that, include: A first region corresponding to the touch operation is determined, and the first region includes multiple mutual capacitance nodes; Determine the original coordinates of a preset node in the first region, wherein the preset node is the mutual capacitance node corresponding to the centroid position in the first region; Based on the original coordinates of the preset node, determine the control command corresponding to the touch operation; The step of determining the control command corresponding to the touch operation based on the original coordinates of the preset node includes: Based on the original coordinates located in the area of ​​the display screen, a conversion coefficient is determined. The area of ​​the display screen includes a central area, a secondary edge area, and an edge area, and the conversion coefficients are different for different areas. Based on the transformation coefficient, the original coordinates are converted into pixel coordinates; The control command is determined based on the pixel coordinates.

2. The touch control method according to claim 1, characterized in that, Determining the original coordinates of the preset nodes in the first region includes: Obtain the capacitance change of each mutual capacitance node in the first region; Obtain the node coordinates of the reference node, wherein the reference node is the mutual capacitance node corresponding to the maximum capacitance change in the first region; The original coordinates of the preset node are determined based on the capacitance change of each mutual capacitance node and the node coordinates of the reference node.

3. The touch control method according to claim 2, characterized in that, The step of determining the original coordinates of the preset node based on the capacitance change of each mutual capacitance node and the node coordinates of the reference node includes: Determine the total capacitance change in the first region; The x-coordinate of the original coordinates is determined based on the capacitance change of each mutual capacitance node, the x-coordinate of the node coordinates of the reference node, the node parameters of the two nodes adjacent to the reference node on the x-axis, and the total capacitance change. The ordinate of the original coordinates is determined based on the capacitance change of each mutual capacitance node, the ordinate of the node coordinates of the reference node, the node parameters of the two nodes adjacent to the reference node on the ordinate axis, and the total capacitance change.

4. The touch control method according to claim 1, characterized in that, The method further includes: In response to a touch operation being a swipe operation, the original coordinates of two adjacent preset nodes corresponding to two adjacent click operations in the swipe operation are determined; The control command corresponding to the sliding operation is determined based on the original coordinates of two adjacent preset nodes.

5. The touch control method according to claim 4, characterized in that, The step of determining the control command corresponding to the sliding operation based on the original coordinates of two adjacent preset nodes includes: In response to the fact that the original coordinates of the latter of two adjacent preset nodes are 0, the original coordinates of the former are used as the original coordinates of the latter to determine the control command. The sliding operation ends when the original coordinates of two adjacent preset nodes are both 0.

6. The touch control method according to claim 1, characterized in that, The determination of the first area corresponding to the touch operation includes: Determine the second region and normalization coefficient corresponding to the touch operation, wherein the second region is not less than the first region; Based on the normalization coefficient, the gain is related to the capacitance parameters of the mutual capacitance nodes in the second region; The first region is determined in the second region based on the capacitance parameters after gain.

7. A touch control device, characterized in that, include: The first determining module is used to determine the first area corresponding to the touch operation, the first area including multiple mutual capacitance nodes; The second determining module is used to determine the original coordinates of a preset node in the first region, wherein the preset node is the mutual capacitance node corresponding to the centroid position in the first region. The third determining module is used to determine the control command corresponding to the touch operation based on the original coordinates of the preset node; The step of determining the control command corresponding to the touch operation based on the original coordinates of the preset node includes: Based on the original coordinates located in the area of ​​the display screen, a conversion coefficient is determined. The area of ​​the display screen includes a central area, a secondary edge area, and an edge area, and the conversion coefficients are different for different areas. Based on the transformation coefficient, the original coordinates are converted into pixel coordinates; The control command is determined based on the pixel coordinates.

8. The touch control device according to claim 7, characterized in that, The second determining module is specifically used for: Obtain the capacitance change of each mutual capacitance node in the first region; Obtain the node coordinates of the reference node, wherein the reference node is the mutual capacitance node corresponding to the maximum capacitance change in the first region; The original coordinates of the preset node are determined based on the capacitance change of each mutual capacitance node and the node coordinates of the reference node.

9. The touch control device according to claim 8, characterized in that, The second determining module is specifically used for: Determine the total capacitance change in the first region; The x-coordinate of the original coordinates is determined based on the capacitance change of each mutual capacitance node, the x-coordinate of the node coordinates of the reference node, the node parameters of the two nodes adjacent to the reference node on the x-axis, and the total capacitance change. The ordinate of the original coordinates is determined based on the capacitance change of each mutual capacitance node, the ordinate of the node coordinates of the reference node, the node parameters of the two nodes adjacent to the reference node on the ordinate axis, and the total capacitance change.

10. The touch control device according to claim 7, characterized in that, The second determining module is also used for: In response to a touch operation being a swipe operation, the original coordinates of two adjacent preset nodes corresponding to two adjacent click operations in the swipe operation are determined; The third determining module is also used to determine the control command corresponding to the sliding operation based on the original coordinates of two adjacent preset nodes.

11. The touch control device according to claim 10, characterized in that, The third determining module is specifically used for: In response to the fact that the original coordinates of the latter of two adjacent preset nodes are 0, the original coordinates of the former are used as the original coordinates of the latter to determine the control command. The sliding operation ends when the original coordinates of two adjacent preset nodes are both 0.

12. The touch control device according to claim 7, characterized in that, The first determining module is specifically used for: Determine the second region and normalization coefficient corresponding to the touch operation, wherein the second region is not less than the first region; Based on the normalization coefficient, the gain is related to the capacitance parameters of the mutual capacitance nodes in the second region; The first region is determined in the second region based on the capacitance parameters after gain.

13. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to perform the touch control method as described in any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the touch control method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for detecting touch regions of mutual capacitance screen

    CN102945109A

  • Touch position determination method, touch device and electronic equipment

    CN111782077A