A data processing method and related apparatus

By receiving and processing subframe data of touch frame data in the SoC and dynamically adjusting the processing timing to generate touch coordinate response data, the latency problem of the SoC when receiving full touch data is solved, and the user experience in fast response scenarios is improved.

CN122172987APending Publication Date: 2026-06-09LENOVO (BEIJING) LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LENOVO (BEIJING) LTD
Filing Date
2026-02-28
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

The SoC experiences significant latency when processing all touch data received, which negatively impacts the user experience, especially in scenarios requiring rapid response, such as gaming.

Method used

By receiving the first and second subframe data from the touch frame data, the touch frame data is processed after determining the processing timing that matches the response mode. The first subframe data is more important than the second subframe data for touch coordinate response data. The processing timing is dynamically adjusted to generate touch coordinate response data.

Benefits of technology

While ensuring response accuracy, it reduces the latency of touch operation, improves the user experience in fast-response scenarios, and switches response modes by monitoring the target application status to adapt to the needs of different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122172987A_ABST
    Figure CN122172987A_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and related device, and relates to the technical field of artificial intelligence, and comprises the following steps: receiving touch frame data, wherein the touch frame data comprises first subframe data and second subframe data in a same sampling period, the first subframe data is higher in importance than the second subframe data in responding to touch coordinate response data; after determining that a processing opportunity matched with a response mode is reached, processing the received touch frame data to generate touch coordinate response data, wherein the processing opportunity comprises receiving the first subframe data or receiving the first subframe data and the second subframe data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a data processing method and related apparatus. Background Technology

[0002] Currently, after receiving the full touch data generated by a touch operation, the SoC (System on Chip) processes the full touch data to respond to the touch operation. Because the full touch data is large, its data transmission takes relatively long, which can cause latency issues in scenarios requiring fast touch response, such as gaming. Summary of the Invention

[0003] In view of the above problems, this application provides a data processing method and related apparatus, the specific solution of which is as follows:

[0004] A data processing method, comprising:

[0005] Receive touch frame data, which includes first subframe data and second subframe data under the same sampling period, wherein the first subframe data is more important to the touch coordinate response data than the second subframe data;

[0006] After determining the processing timing that matches the response mode, the received touch frame data is processed to generate touch coordinate response data. The processing timing includes receiving the first subframe data, or receiving both the first subframe data and the second subframe data.

[0007] In one possible implementation, after determining that a processing timing matching the response pattern has been reached, the received touch frame data is processed to generate touch coordinate response data, including:

[0008] In the first mode, after confirming that the first subframe data has been received, the first subframe data is processed to generate touch coordinate response data;

[0009] In the second mode, after confirming that the first subframe data and the second subframe data have been received, the first subframe data and the second subframe data are processed to generate touch coordinate response data.

[0010] In one possible implementation, the data processing method also includes:

[0011] Monitor the running status of at least one target application;

[0012] If the first condition is met, the response mode will be switched to the first mode. The first condition includes the existence of a target application running in the foreground.

[0013] If the second condition is met, the response mode will be switched to the second mode; the second condition includes that no target application is running in the foreground.

[0014] In one possible implementation, the data processing method also includes:

[0015] After switching the response mode to the first mode, a first instruction is sent to the touch screen controller. After switching the response mode to the second mode, a second instruction is sent to the touch screen controller. This causes the touch screen controller to generate the touch frame data based on the response mode and touch sampling data. The first subframe data and the second subframe data are transmitted sequentially according to the importance of the touch coordinate response data from high to low. The touch sampling data includes the original sampling values ​​of each touch sampling point.

[0016] In one possible implementation, in a first mode, the touch frame data generated by the touchscreen controller stores a first data component of the touch sampling data in the first subframe data, and the second subframe data is empty; in a second mode, the touch frame data generated by the touchscreen controller stores a first data component of the touch sampling data in the first subframe data, and the second subframe data stores a second data component of the touch sampling data.

[0017] In one possible implementation, in the first mode or the second mode, the element at the target position in the first subframe data stores the high-order component of the corresponding original sample value in bytes of the first number of bytes, so as to realize the first data component for storing touch sample data.

[0018] In the second mode, the element at the target position in the second subframe data stores the low-order component of the corresponding original sample value in bytes of the second number of bytes, so as to realize the second data component for storing touch sample data;

[0019] The number of the first byte is less than the total number of bytes required for the original sample value.

[0020] In one possible implementation, the first subframe data is processed to generate touch coordinate response data, including:

[0021] Based on the first subframe data, the high-order component of the original sampled value of each of the touch sampling points is determined element by element, and touch coordinate response data is generated based on the high-order component of the original sampled value of each of the touch sampling points.

[0022] In one possible implementation, the first subframe data and the second subframe data are processed to generate touch coordinate response data, including:

[0023] The first subframe data and the second subframe data are shifted and spliced ​​element by element to obtain the original sampled values ​​of each touch sampling point. Based on the original sampled values ​​of each touch sampling point, touch coordinate response data is generated.

[0024] A data processing system, the data processing system including a touch screen control unit and a processor control unit;

[0025] The touch screen control unit is used to generate touch frame data based on the response mode and send the touch frame data to the processor control unit; the touch frame data includes first subframe data and second subframe data under the same sampling period, and the first subframe data is more important to the touch coordinate response data than the second subframe data.

[0026] The processor control unit is used to receive touch frame data, determine the processing timing that matches the response mode, and process the received touch frame data to generate touch coordinate response data. The processing timing includes receiving the first subframe data, or receiving the first subframe data and the second subframe data.

[0027] An electronic device includes a first processor, a second processor, and a memory connected to each of the processors, wherein:

[0028] The memory is used to store the first computer program and the second computer program.

[0029] The first processor is used to execute the first computer program to enable the electronic device to: generate touch frame data based on a response mode and send the touch frame data to the second processor; the touch frame data includes first subframe data and second subframe data under the same sampling period, wherein the first subframe data is more important to the touch coordinate response data than the second subframe data;

[0030] The second processor is configured to execute the second computer program to enable the electronic device to: receive touch frame data, determine a processing timing that matches the response mode, and process the received touch frame data to generate touch coordinate response data, wherein the processing timing includes receiving the first subframe data, or receiving both the first subframe data and the second subframe data.

[0031] Using the above technical solution, the present application provides a data processing method and related apparatus that receive touch frame data, which includes first subframe data and second subframe data under the same sampling period. The first subframe data is more important than the second subframe data for touch coordinate response data. After determining that a processing timing that matches the response mode has been reached, the received touch frame data is processed to generate touch coordinate response data. The processing timing includes receiving the first subframe data, or receiving the first subframe data and the second subframe data. Attached Figure Description

[0032] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0033] Figure 1 A flowchart illustrating a data processing method provided in an embodiment of this application;

[0034] Figure 2 A flowchart illustrating another data processing method provided in an embodiment of this application;

[0035] Figure 3 A flowchart illustrating another data processing method provided in an embodiment of this application;

[0036] Figure 4 A flowchart illustrating another data processing method provided in an embodiment of this application;

[0037] Figure 5 This is a schematic diagram of a THP architecture provided in an embodiment of this application;

[0038] Figure 6 This is a schematic diagram of a response mode switching provided in an embodiment of this application;

[0039] Figure 7 A flowchart illustrating the specific implementation of a data processing method provided in this application embodiment;

[0040] Figure 8 A flowchart illustrating the specific implementation of another data processing method provided in this application embodiment;

[0041] Figure 9 A flowchart illustrating the specific implementation of another data processing method provided in this application embodiment;

[0042] Figure 10 This is a schematic diagram of the structure of a data processing system provided in an embodiment of this application;

[0043] Figure 11This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0044] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0045] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0046] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar elements and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing elements with the same properties in the description of embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of units is not necessarily limited to those units, but may include other units not explicitly listed or inherent to those processes, methods, products, or apparatuses.

[0047] The data processing method provided in this application can be applied to a system-on-a-chip (SoC). Figure 1 This is a flowchart illustrating a data processing method provided in an embodiment of this application, as shown below. Figure 1 As shown in the figure, the data processing method provided in this application embodiment may include steps 101 to 102, which are described in detail below.

[0048] Step 101: Receive touch frame data.

[0049] In this embodiment, the touch frame data includes first subframe data and second subframe data under the same sampling period. The first subframe data is more important to the touch coordinate response data than the second subframe data. Specifically, the criteria for judging the importance of the subframe data include the degree of impact on the accuracy of the touch coordinate response data generated by the SoC if the subframe data is discarded.

[0050] In one possible embodiment, the SoC receives touch frame data from the touchscreen controller. In a touch scenario, the touchscreen controller periodically scans the touch panel at a fixed frame rate, and each scan cycle corresponds to acquiring one complete frame of raw touch frame data. This raw touch frame data is used to describe the touch operation at the sampling moment. The touchscreen controller splits the raw touch frame data into a first subframe and a second subframe, sharing a timestamp, according to their contribution to touch coordinate reconstruction. The first subframe is more important than the second subframe in terms of touch coordinate response data; that is, the first subframe contributes more to touch coordinate reconstruction than the second subframe.

[0051] Step 102: After determining the processing timing that matches the response mode, process the received touch frame data to generate touch coordinate response data.

[0052] In this embodiment, the processing timing includes receiving the first subframe data, or receiving the first subframe data and the second subframe data.

[0053] In this embodiment, the SoC dynamically matches the processing timing according to the current response mode and monitors whether the processing timing has been reached.

[0054] If the current response mode matches the processing timing when the first subframe data is received, the SoC will immediately start the frame data processing flow for the first subframe data after receiving the first subframe data to generate touch coordinate response data. The second subframe data that arrives later will be discarded directly.

[0055] If the current response mode matches the processing timing when the first subframe data and the second subframe data are received, the SoC will immediately start the frame data processing flow for the first subframe data and the second subframe data after receiving the first subframe data and the second subframe data, in order to generate touch coordinate response data.

[0056] In this embodiment, the touch coordinate response data includes coordinate data describing the result of the user's touch operation. Optionally, the touch coordinate response data may specifically include the position coordinates of the touch point, the touch state, and the touch event type. The position coordinates of the touch point are used to indicate the specific position of the user's finger or stylus on the touch panel, the touch state is used to indicate whether the finger is pressed down, moved, or lifted, and the touch event type is used to distinguish between single-point touch and multi-point touch.

[0057] As can be seen from the above technical solutions, the data processing method provided in this application receives touch frame data divided according to importance, and dynamically adjusts the processing timing according to the response mode. After determining the processing timing that matches the response mode, the received touch frame data is processed to generate touch coordinate response data. When the processing timing is when the first subframe data is received, since the first subframe data is more important to the touch coordinate response data than the second subframe data, the transmission wait for the second subframe data can be omitted while ensuring response accuracy, thus reducing the response latency of the touch operation. When the processing timing is when the first subframe data and the second subframe data are received, the accuracy of the touch coordinate response data is improved based on the complete touch frame data. Thus, an adaptive balance between low response latency and high response accuracy is achieved.

[0058] Based on the above embodiments, see Figure 2 , Figure 2 This is a flowchart illustrating another data processing method provided in an embodiment of this application. Figure 2 The following illustrates the specific implementation flow of step 102, which involves processing the received touch frame data to generate touch coordinate response data after determining the processing timing that matches the response mode. Figure 2 As shown in the embodiment of this application, a data processing method may include steps 201 to 203, which will be described in detail below.

[0059] Step 201: Determine whether you are currently in the first mode or the second mode.

[0060] In this embodiment, the SoC first determines the current response mode, which includes a first mode and a second mode. The first mode is a working mode that prioritizes touch response speed, and the second mode is a working mode that prioritizes touch coordinate accuracy.

[0061] In one alternative embodiment, a response mode identification mechanism is triggered in real time to determine whether the system is in a first mode or a second mode.

[0062] In another optional embodiment, the SoC triggers the recognition of the response mode according to the triggering conditions of the recognition mechanism. After obtaining the response mode, it records the latest mode recognition result with a mode identifier. The SoC can then directly read the current mode identifier when receiving touch frame data, thereby determining the current response mode based on the mode identifier.

[0063] Step 202: In the first mode, after confirming that the first subframe data has been received, process the first subframe data to generate touch coordinate response data.

[0064] In this embodiment, the first mode is a touch response speed priority working mode. That is, when the SoC determines that it is currently in the touch response speed priority working mode, as long as it determines that the first subframe data has been received, it immediately performs frame data processing on the first subframe data. In the first mode, when the SoC performs frame data processing, it generates touch coordinate response data based on the first subframe data by calling the coordinate processing algorithm. The second subframe data that arrives later is directly discarded and does not participate in the coordinate calculation, so that the touch coordinate response for touch operation in the first mode has a first response time.

[0065] Step 203: In the second mode, after confirming that the first subframe data and the second subframe data have been received, process the first subframe data and the second subframe data to generate touch coordinate response data.

[0066] In this embodiment, the second mode is a touch coordinate precision priority working mode. That is, when the SoC determines that it is currently in the touch coordinate precision priority working mode, after waiting to receive all the first subframe data and the second subframe data, it performs frame data processing on the first subframe data and the second subframe data. In the second mode, when the SoC performs frame data processing, it first reconstructs the first subframe data and the second subframe data to obtain complete touch frame data, and then calls the coordinate processing algorithm to generate touch coordinate response data based on the complete touch frame data, so that the touch coordinate response for touch operation in the second mode has a second response time.

[0067] As can be seen from the above technical solutions, the data processing method provided in this application embodiment determines the current response mode and processes only the first subframe data in the first mode and processes the complete touch frame data reconstructed from the first subframe data and the second subframe data in the second mode. The first mode saves at least the transmission waiting time and reconstruction processing time of the second subframe data, so the first response time in the first mode is less than the second response time in the second mode. Under the premise of ensuring the validity of the touch coordinate response data in the first mode, the touch operation response delay is reduced, thereby improving the user experience in touch response speed priority scenarios.

[0068] Based on the above embodiments, the data processing method provided in this application further includes the step of the SoC triggering the identification of the response mode according to the triggering conditions of the identification mechanism to obtain the response mode. See [link to relevant documentation]. Figure 3 , Figure 3 This is a flowchart illustrating another data processing method provided in an embodiment of this application. Figure 3 This illustrates a possible implementation flow for response pattern recognition and switching, such as... Figure 3 As shown in the figure, the data processing method provided in this application embodiment may include steps 301 to 303, which are described in detail below.

[0069] Step 301: Monitor the running status of at least one target application and determine whether the first condition or the second condition is met.

[0070] In this embodiment, the SoC monitors in real time whether at least one target application in the electronic device is running in the foreground. The target application is a pre-installed or dynamically identified application that has high requirements for touch response speed. Specifically, applications that are sensitive to touch latency and whose faster touch response can significantly improve the user experience are configured as target applications, such as shooting games, competitive mobile games, music rhythm games, or drawing applications.

[0071] Step 302: If the first condition is met, switch the response mode to the first mode.

[0072] In this embodiment, the first condition includes the presence of a target application running in the foreground. Specifically, when the SoC detects that at least one target application is running in the foreground, it switches the response mode to a touch response speed-priority working mode. Furthermore, after the mode switch is completed, the mode identifier is updated. The updated mode identifier is used to indicate that the current mode is the first mode, so that the SoC can query and call it when receiving touch frame data.

[0073] Step 303: If the second condition is met, switch the response mode to the second mode.

[0074] In this embodiment, the second condition includes the absence of a target application running in the foreground. Specifically, when the SoC detects that no target application is running in the foreground, it switches the response mode to a touch response accuracy-priority working mode. Furthermore, after the mode switch is completed, the mode identifier is updated. The updated mode identifier is used to indicate that the current mode is the second mode, which can be queried and called by the SoC when receiving touch frame data.

[0075] As can be seen from the above technical solutions, in the data processing method provided by the embodiments of this application, by monitoring the running status of the target application, the method automatically switches to the first mode when the target application is running in the foreground, so that when the target application is running in the foreground, only the first subframe data is processed to generate touch coordinate response data, thereby improving the response speed of the target application to touch operations when running in the foreground. When the target application is not running in the foreground, the method automatically switches to the second mode, processes the complete first and second subframe data to generate touch coordinate response data, thereby improving the response accuracy to touch operations. Thus, the method realizes adaptive matching of touch processing strategies according to the application scenario. In application scenarios that are sensitive to touch latency, the priority is to shorten the response time, while in ordinary application scenarios, the priority is to ensure touch accuracy, thereby improving the user's touch experience in different scenarios.

[0076] In one optional embodiment, the data processing method provided in this application involves a System-on-Chip (SoC) monitoring the running status of a target application while simultaneously monitoring performance metrics. The SoC makes a comprehensive judgment based on the running status of the target application and the current performance metrics. The performance metrics include one or more combinations of CPU load, memory usage, bus occupancy, or system power consumption. When the SoC detects that at least one target application is running in the foreground and the current performance metrics match the trigger performance requirements of a first mode, it determines that a first condition is met and switches the response mode to the first mode. When the SoC detects that no target application is running in the foreground and the current performance metrics match the trigger performance requirements of a second mode, it determines that a second condition is met and switches the response mode to the second mode.

[0077] In summary, by combining the running status of the target application with the system's performance indicators as the basis for judging the response mode switching, the flexibility of touch response mode adaptation is achieved.

[0078] In one optional embodiment, the data processing method provided in this application involves the SoC switching the response mode to a first touch coordinate response data mode, sending a first instruction to the touch coordinate response data touchscreen controller, and then switching the response mode to a second touch coordinate response data mode, sending a second instruction to the touch coordinate response data touchscreen controller. This causes the touchscreen controller to generate touch frame data based on the response mode and touch sampling data, and to transmit the first subframe data and the second subframe data sequentially according to their importance to the touch coordinate response data from high to low.

[0079] Based on this, the SoC sends a mode switching command to the touch screen controller, so that the touch screen controller generates and transmits touch frame data based on the response mode and touch sampling data, thereby achieving dynamic synchronization of the dual-end response modes.

[0080] Specifically, Figure 4 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Figure 4 This example illustrates the specific process of dynamic synchronization and data transmission in dual-end response mode, such as... Figure 4 As shown in the embodiment of this application, a data processing method may include steps 401 to 405, which are described in detail below.

[0081] Step 401: The SoC sends a mode switching command to the touchscreen controller TP IC.

[0082] That is, after the SoC switches the response mode to the first mode of touch coordinate response data, it sends a first instruction to the touch coordinate response data touch screen controller. After switching the response mode to the second mode of touch coordinate response data, it sends a second instruction to the touch coordinate response data touch screen controller.

[0083] Step 402: TP IC receive mode switching command, and synchronously switch response mode.

[0084] In this embodiment, the TP IC receives a mode switching instruction and synchronously switches its own response mode to the corresponding response mode according to the instruction type. Specifically, after receiving the first instruction, the TP IC synchronously switches its own response mode to the first mode, and after receiving the second instruction, the TP IC synchronously switches its own response mode to the second mode.

[0085] Step 403: In the first mode, the TP IC obtains the first data component of the touch sampling data and generates touch frame data based on the first data component.

[0086] In this embodiment, the touch sampling data includes the original sampling values ​​of each touch sampling point. The TP IC extracts the first data component from the original sampling values ​​according to the preset data component division rules. The first data component is used to characterize the data component in the touch sampling data that has a high degree of response to the generation of touch coordinate response data, that is, the core data component.

[0087] In this embodiment, in the first mode, the touch frame data generated based on the first data component contains the first data component of the touch sampling data in the first subframe data, and the second subframe data is empty.

[0088] It should be noted that, depending on the metric used to measure the degree of response, there are various ways to divide the data components based on the degree of response to the generated touch coordinate response data. For example, the data component division methods include one or more combinations of division based on bit weight, division based on spatial frequency, or division based on region of interest.

[0089] In one optional embodiment, data components are divided based on bit weights, wherein the first data component corresponds to the high-order bit portion of the original sampled value, and the second data component corresponds to the low-order bit portion of the original sampled value. Specifically, in the first mode, the element at the target position in the first subframe data stores the high-order bit portion of the original sampled value in bytes of the first number of bytes to realize the storage of the first data component of the touch sampling data, and the second subframe data is empty.

[0090] Taking the touch sampling data as a 10-bit original sample value as an example, the first data component is the high 8 bits of the sample value. Therefore, in the first mode, the first subframe data stores the high 8 bits of all sampling points, and the second subframe data is empty.

[0091] In other alternative embodiments, the data components can be divided based on spatial frequency or region of interest (ROI). For example, in a spatial frequency-based division, the first data component corresponds to the high-frequency component of the touch area edge, and the second data component corresponds to the low-frequency component of the background noise or flat area. As another example, in a region of interest-based division, the first data component corresponds to sensor data within the region of interest, and the second data component corresponds to sensor data within the non-interest-bearing region.

[0092] Step 404: In the second mode, the TP IC obtains the first data component and the second data component of the touch sampling data, and generates touch frame data based on the first data component and the second data component.

[0093] In this embodiment, according to different measurement criteria for response degree, the data components are divided into a first data component and a second data component based on the degree of response to the generated touch coordinate response data. The first data component has a higher degree of response to the generated touch coordinate response data than the second data component.

[0094] In this embodiment, in the second mode, the touch frame data generated based on the first data component and the second data component, the first subframe data stores the first data component of the touch sampling data, and the second subframe data stores the second data component of the touch sampling data.

[0095] In an optional embodiment, the data components are divided based on bit weights. In the second mode, the elements at the target position in the first subframe data store the high-order components of the corresponding original sampled values ​​in bytes of the first number of bytes to realize the first data component for storing touch sampled data, and the elements at the target position in the second subframe data store the low-order components of the corresponding original sampled values ​​in bytes of the second number of bytes to realize the second data component for storing touch sampled data, wherein the first number of bytes is less than the total number of bytes required for the original sampled values.

[0096] Taking the touch sampling data as a 10-bit original sample value as an example, the first data component is the high 8 bits of the sample value, and the second data component is the low 2 bits of the sample value. Thus, in the second mode, the first subframe data stores the high 8 bits of all sampling points, and the second subframe data stores the low 2 bits of all sampling points.

[0097] Step 405: The TP IC sends touch frame data to the SoC.

[0098] In this embodiment, the TP IC transmits the first subframe data and the second subframe data in descending order of importance of the touch coordinate response data, so as to transmit the touch frame data to the SoC.

[0099] Specifically, regardless of whether it is in the first mode or the second mode, the TP IC transmits the first subframe data storing the first data component first, and then transmits the second subframe data storing the second data component, in descending order of importance.

[0100] As can be seen from the above technical solutions, the data processing method provided in this application embodiment allows for mode switching instruction interaction between the SoC and the TP IC, thereby achieving dynamic synchronization of dual-end response modes. Furthermore, the TP IC generates touch frame data containing different data components according to the response mode and transmits them sequentially according to their importance. This enables the SoC to quickly generate touch coordinate response data based on the first data component in the first mode, significantly shortening the touch response time. In the second mode, it generates high-precision touch coordinate response data based on the complete first and second data components, ensuring the accuracy of the touch coordinate response data.

[0101] In one optional embodiment, the TP IC divides data components based on bit weights. In the first mode, in the touch frame data sent to the SoC, the element at the target position in the first subframe data stores the high-order component of the corresponding original sample value in bytes of the first number of bytes, thus realizing the storage of the first data component of touch sample data. The second subframe data is empty. Based on this, the specific method for the SoC to process the first subframe data to generate touch coordinate response data in the first mode is as follows:

[0102] Based on the first subframe data, the high-order components of the original sampled values ​​of each touch sampling point are determined element by element. Based on the high-order components of the original sampled values ​​of each touch sampling point, touch coordinate response data is generated. Specifically, since the first subframe data already includes the core data components of the touch sampling data, the SoC can immediately reconstruct the touch coordinate response data of the touch operation through frame data processing after receiving the first subframe data, without waiting for the low-order data.

[0103] In one optional embodiment, the TP IC divides the data components based on bit weights. In the second mode, in the touch frame data sent to the SoC, the element at the target position in the first subframe data stores the high-order component of the corresponding original sample value in bytes of the first number of bytes, and the element at the target position in the second subframe data stores the low-order component of the corresponding original sample value in bytes of the second number of bytes. Based on this, the specific method for the SoC to process the first subframe data and the second subframe data to generate touch coordinate response data in the second mode is as follows:

[0104] The first and second subframe data are shifted and concatenated element by element to obtain the original sampled values ​​of each touch sampling point. Based on the original sampled values ​​of each touch sampling point, touch coordinate response data is generated. Since it is in the second mode, the SoC combines the high-bit and low-bit components of each sampling point into a complete original sampled value through a shift operation, which can restore the complete information of the touch sampling data, thereby providing high-precision input data for the coordinate algorithm and ensuring the accuracy of touch coordinate calculation.

[0105] Based on the above embodiments, the data processing method provided in this application can be specifically applied to a SoC under the THP (Touch Host Processing) framework. Figure 5 This is a schematic diagram of a THP architecture provided in an embodiment of this application. In the THP architecture, the TP IC is connected to the main control SoC via an SPI (Serial Peripheral Interface Bus Bandwidth) bus. Figure 5 As shown, the TouchFilm is a transparent metal mesh adhered to the display screen. Each line on the TouchFilm is connected to the TP IC, which controls all the rows and columns of lines and senses signal changes caused by touch operations through capacitance changes on these lines. After acquiring signals line by line, the TP IC converts them into different values ​​according to their strength. After completing the scan of all lines and obtaining the touch sampling data, it notifies the SoC by pulling the INT line low. Upon receiving the notification, the SoC reads a frame of touch sampling data via the SPI bus.

[0106] Taking touch operations in a game app as an example, after the underlying hardware layer receives data frames from the TP IC, the data is preprocessed and stored in system memory. The SoC performs the conversion from frame data to coordinates at the kernel layer, obtains a coordinate set, and reports the coordinate set to the system service layer via events. In the system service layer, the SoC determines the gesture, such as a click or swipe, based on the coordinate sets of multiple preceding and following data frames. Simultaneously, it determines the distribution target based on the current gesture's location and distributes the gesture information to the game application indicated by the distribution target. The game application then triggers a game action based on the gesture information.

[0107] For example, if the touch operation is a swipe from the bottom up on the screen of a game application, the system service will send the gesture information of the swipe gesture to the game application, and correspondingly, send a signal to the application to switch to the background.

[0108] For example, if the touch operation is an upward swipe from the center of the game application's screen, the system service recognizes it as an in-app gesture and sends the gesture information as a motion event to the game application for processing. Upon receiving the event, the game application, based on the current scene, further determines whether it's a "character movement" or "character attack," and subsequently updates the screen to respond to the action.

[0109] The processing speed of each step in the above touch operation response process affects the touch operation response speed. Response speed reflects the responsiveness of electronic devices (such as tablets, mobile phones, etc.), especially in gaming scenarios, such as shooting games and chasing games, where touch operation response speed is a key factor in user experience.

[0110] In summary, in the traditional THP architecture, the TP IC packages and uploads data frames containing complete touch sampling data. After the SoC receives the complete touch sampling data, it begins to process the frame data. With limited SPI bus bandwidth, data transmission delay leads to low touch response speed. Especially in game scenarios that require high touch operation response and low latency, the traditional single data transmission mode cannot meet the response requirements.

[0111] Taking a 50-row, 32-column configuration as an example, each touch sampling point consists of 2 bytes of data, therefore the data volume is 50 * 32 * 2 = 3200 bytes. When using the SPI bus for transmission, if the SPI clock is 9.6MHz, transmitting 3200 bytes of data at once will take 3.3ms. On tablet devices with relatively large screens, the corresponding number of rows and columns will be even greater, and the time taken can even reach around 8ms.

[0112] To address the above issues, the traditional approach is to increase the SPI bus transmission rate. Increasing the transmission rate can significantly reduce latency, thereby shortening touch response delay. For example, doubling the bus speed (to 19.2 Mbps) would reduce the transmission latency to 1.67 ms. However, increasing the transmission rate places high demands on hardware circuitry, making it difficult and costly to implement, and even impossible in some scenarios.

[0113] Based on the above technical problems, in order to accelerate the response speed of touch operation in game scenarios, this application provides a data processing method in which the SoC monitors the running status of the target game application and determines whether a first condition or a second condition is met. If the first condition is met, the response mode is switched to the first mode, i.e., fast touch mode. If the second condition is met, the response mode is switched to the second mode, i.e., normal touch mode. When receiving touch frame data, different frame data processing flows are executed according to the response mode.

[0114] Figure 6 This is a schematic diagram of a response mode switching provided in an embodiment of this application, such as... Figure 6 As shown, when a user clicks the game application icon to enter the game, the background will detect that the game belongs to the target application in the whitelist and is running in the foreground. At this time, the system triggers the entry into the quick touch mode, which is the first mode. When the user exits (or goes to the background), the system triggers the entry into the normal touch mode, which is the second mode.

[0115] See Figure 7 , Figure 7 This application provides a flowchart illustrating a specific implementation of a data processing method in an embodiment, showing the detailed implementation process of the data processing method in a fast touch mode under a scenario of no mode switching instruction interaction between the TP IC and SoC. Figure 7 As shown in the figure, a specific implementation process of a data processing method provided in this application includes:

[0116] Step 701: The TP IC samples all rows and columns line by line according to the first sampling frequency. After obtaining the touch sampling data, it divides the data components based on bit weights to obtain the first subframe data and the second subframe data.

[0117] In this embodiment, in a scenario where there is no instruction interaction between the TP IC and the SoC, the first subframe data and the second subframe data respectively store the first data component and the second data component. Specifically, the element at the target position in the first subframe data stores the high-order component of the corresponding original sample value in bytes of the first number of bytes, so as to realize the storage of the first data component of the touch sampling data, and the element at the target position in the second subframe data stores the low-order component of the corresponding original sample value in bytes of the second number of bytes.

[0118] In this embodiment, the TP IC collects and transmits a frame of touch data at regular intervals. For example, for a Touch system with a 240Hz reporting rate, a frame of touch data is collected and transmitted every 4.17ms. Internally, the TP IC typically samples the current gain value line-by-line, usually implemented by a built-in AD converter. The AD converter has 10 or 12 bits. After AD conversion, the TP IC sequentially stores the sampling data corresponding to each touch sampling point in two matrices according to the arrangement of the touch sampling points. In a 10-bit sampling scenario, the first byte contains the high 8 bits of the target sampling point's sampling data, stored in the high-bit matrix corresponding to the target sampling point's position, while the second byte contains the low 2 bits of the target sampling point's sampling data, stored in the low-bit matrix corresponding to the target sampling point's position.

[0119] After all lines (distributing all touch sampling points) have completed the acquisition, the full touch frame data is obtained. The full touch frame data includes the first subframe data storing the high-bit matrix and the second subframe data storing the low-bit matrix. The high-bit matrix is ​​the first data component, and the low-bit matrix is ​​the first data component.

[0120] Step 702: After the TP IC notifies the SoC by pulling INT low, it sends the first subframe data and the second subframe data to the SoC in sequence.

[0121] That is, the touch frame data is sent in batches according to the order of the first subframe data followed by the second subframe data.

[0122] Step 703: After receiving the INT line signal, the SoC immediately initiates an SPI read operation to the TP IC.

[0123] Step 704: In fast touch mode, after the SoC reads the first subframe data, it determines the high-order component of the original sampled value of each touch sampling point element by element.

[0124] Step 705: Generate touch coordinate response data based on the high-order components of the original sampled values ​​of each touch sampling point to respond to touch screen operations.

[0125] Step 706: After the SoC reads the second subframe data, it discards the second subframe data.

[0126] In this embodiment, in the fast touch mode, after the SoC initiates an SPI read operation, the TP IC transmits data in the order of first subframe data followed by second subframe data. After receiving the first subframe data, the SoC immediately starts the coordinate processing flow, generating touch coordinate response data based on the high-order bits of each touch sampling point contained in the first subframe data, while discarding the subsequent second subframe data. Taking the transmission of 3200 bytes of data at a 9.6MHz SPI transmission rate as an example, the fast touch mode can compress the start time of the coordinate processing flow from 3.3ms for receiving all data to 1.7ms for receiving only the first subframe data. It should be noted that when generating touch coordinate response data based on the first subframe data, since the high-order bits of the original sample value corresponding to the first subframe data contain the main energy of the touch signal, the touch coordinates calculated based on the high-order bits have an accuracy error of less than 1 / 128 compared to the touch coordinates calculated based on the complete original sample value. Converted to absolute position error, this is approximately 0.032mm. This error range has negligible impact on gesture recognition and touch response.

[0127] Further, see Figure 8 , Figure 8This application provides a specific implementation flow of a data processing method, illustrating the specific implementation process of a data processing method in normal touch mode under a scenario of no mode switching instruction interaction between the TP IC and SoC. Figure 8 As shown in the figure, a specific implementation process of a data processing method provided in this application includes:

[0128] Step 801: The TP IC samples all rows and columns line by line according to the first sampling frequency. After obtaining the touch sampling data, it divides the data components based on bit weights to obtain the first subframe data and the second subframe data.

[0129] Step 802: After the TP IC notifies the SoC by pulling INT low, it sends the first subframe data and the second subframe data to the SoC in sequence.

[0130] Step 803: After receiving the INT line signal, the SoC immediately initiates an SPI read operation to the TP IC.

[0131] Step 804: In normal touch mode, the SoC reads the first subframe data and the second subframe data in sequence.

[0132] Step 805: After reading the first subframe data and the second subframe data, shift and splice the high-bit matrix and the low-bit matrix element by element to obtain the original sampled values ​​of each touch sampling point.

[0133] Step 806: Based on the original sampled values ​​of each touch sampling point, generate touch coordinate response data to respond to touch screen operations.

[0134] In this embodiment, under normal touch mode, after the SoC initiates an SPI read operation, the TP IC sequentially transmits the first subframe data and the second subframe data. Taking a 50-row × 32-column touch panel as an example, the amount of data collected by the TP IC in a single frame is 50 × 32 × 2 = 3200 bytes. After the SoC completes the reception of all 3200 bytes of data, it performs a shift operation to concatenate the high-order components of the first subframe data with the low-order components of the second subframe data element by element, recombining them to obtain the complete original sample values ​​of each touch sampling point. Subsequently, the complete original sample values ​​are sent to the coordinate calculation algorithm module to generate touch coordinate response data. In the above processing flow, the SPI data transmission stage is the main time-consuming part, while the shift and concatenation operation is executed in parallel by the processor, and its time consumption is negligible compared to the transmission time.

[0135] Depend on Figure 7 and Figure 8As can be seen from the specific implementation flow of the data processing method shown, the data processing method provided in this application embodiment, in a scenario where there is no mode switching command interaction between the TP IC and SoC, receives touch frame data divided according to importance and dynamically adjusts the processing timing according to the current response mode. When in fast touch mode, the SoC immediately starts the coordinate processing process after receiving the first subframe data, generating touch coordinate response data based on the high-bit components contained in the first subframe data, eliminating the waiting time for the transmission of the second subframe data, compressing the coordinate processing start time from 3.3ms to 1.7ms, significantly reducing the response latency of touch operation, and the accuracy error caused by the high-bit component calculation is within an acceptable range. When in normal touch mode, after the SoC completely receives the first and second subframe data, it restores the complete original sampled values ​​through shifting and splicing, generating high-precision touch coordinate response data based on the complete data, ensuring the calculation accuracy of touch coordinates. Thus, this application embodiment achieves an adaptive balance between response speed and response accuracy without requiring mode switching command interaction between the TP IC and SoC, taking into account the touch experience requirements in different scenarios.

[0136] It should be noted that in scenarios where the TP IC and SoC interact with mode switching commands, the TP IC receives the mode switching command issued by the SoC, performs response mode synchronization, and generates touch frame data based on the response mode and touch sampling data. The first subframe data and the second subframe data are transmitted in order of importance to the touch coordinate response data from high to low.

[0137] Based on this, see Figure 9 , Figure 9 A flowchart illustrating the specific implementation of another data processing method provided in this application embodiment shows the specific implementation process of the data processing method in a scenario where there is mode switching instruction interaction between the TP IC and the SoC, such as... Figure 9 As shown in the figure, a specific implementation process of a data processing method provided in this application embodiment is as follows:

[0138] Step 901: The SoC detects that the target application has switched to the foreground, switches the response mode to the first mode, and sends the first instruction to the TP IC.

[0139] In this embodiment, the SoC monitors the running status of the target application in real time. When it detects that the target application has switched from the background to the foreground, it determines that the first condition is met, switches the current response mode from the second mode to the first mode, and generates a first instruction and sends it to the TP IC through the SPI bus to notify the TP IC to switch to the first mode synchronously.

[0140] Step 902: The TP IC receives the first instruction and switches its own response mode to the first mode.

[0141] Step 903: In the first mode, the TP IC generates first subframe data based on the touch sampling data and stores the high-order matrix, and transmits the first subframe data to the SoC.

[0142] In this embodiment, after the TP IC switches to the first mode, in subsequent sampling cycles, after completing the line-by-line scanning of the touch panel, it extracts the high-order bits of the original sampled values ​​from the original sampled values ​​according to the bit weight division of the data components, obtaining a high-order matrix. This high-order matrix is ​​stored in the first subframe data, and the first subframe data is sent to the SoC. Specifically, the elements at the target positions of the high-order matrix stored in the first subframe data store the corresponding high-order components of the original sampled values ​​in bytes of the first number of bytes.

[0143] It should be noted that in the first mode, the second subframe data is equivalent to being empty.

[0144] Step 904: In the first mode, after receiving the first subframe data, the SoC generates touch coordinate response data based on the first subframe data.

[0145] In this embodiment, after the SoC receives the first subframe data sent by the TP IC, it directly generates touch coordinate response data based on the high-bit components of each touch sampling point contained in the first subframe data through a coordinate processing algorithm to respond to touch screen operations.

[0146] Step 905: The SoC detects that the target application has switched to running in the background, switches the response mode to the second mode, and sends the second instruction to the TP IC.

[0147] In this embodiment, the SoC monitors the running status of the target application in real time. When it detects that the target application has switched from the foreground to the background, it determines that the second condition is met, switches the current response mode from the first mode to the second mode, and generates a second instruction and sends it to the TP IC through the SPI bus to notify the TP IC to switch to the second mode synchronously.

[0148] Step 906: The TP IC receives the second instruction and switches its response mode to the second mode.

[0149] Step 907: In the second mode, the TP IC generates first subframe data storing a high-order matrix and second subframe data storing a low-order matrix based on the touch sampling data, and transmits the first subframe data and the second subframe data to the SoC in sequence.

[0150] In this embodiment, after the TP IC switches to the second mode, it generates complete touch frame data based on the processing of touch sampling data in subsequent sampling cycles. Specifically, after completing the line-by-line scanning of the touch panel, the TP IC divides the data components according to the bit weights, extracts the high-order bits of the original sampled values ​​to obtain a high-order matrix, and stores the high-order matrix in the first subframe data. It also extracts the low-order bits of the original sampled values ​​to obtain a low-order matrix, and stores the high-order matrix in the second subframe data.

[0151] In this embodiment, the complete touch frame data is sent to the SoC in the order of transmitting the first subframe data first, followed by the second subframe data. Specifically, the elements at the target positions of the high-order matrix stored in the first subframe data store the high-order components of the corresponding original sampled values ​​in bytes equal to the first number of bytes. Similarly, the elements at the target positions of the low-order matrix stored in the second subframe data store the high-order components of the corresponding original sampled values ​​in bytes equal to the second number of bytes. The first number of bytes is less than the total number of bytes required for the original sampled values.

[0152] Step 908: After the SoC receives the first subframe data and the second subframe data in the second mode, it shifts and splices the high-bit matrix and the low-bit matrix, and generates touch coordinate response data based on the complete original sampled values ​​obtained by reconstruction.

[0153] In this embodiment, after the SoC receives the first subframe data and the second subframe data sent by the TP IC, it combines the high-order component in the first subframe data with the low-order component in the second subframe data through an element-by-element shift and splicing operation to restore the complete original sample value of each touch sampling point. Based on the complete original sample value, it generates high-precision touch coordinate response data through a coordinate processing algorithm to respond to touch screen operations.

[0154] Depend on Figure 9As shown in the detailed implementation process, the data processing method provided in this application embodiment, in a scenario where there is a mode switching command interaction between the TP IC and the SoC, achieves dynamic synchronization of the dual-end response modes by having the SoC trigger a response mode switch based on the target application's running state and sending a mode switching command to the TP IC. The TP IC generates corresponding touch frame data based on the synchronized response mode. In the first mode, it generates only touch frame data containing the first subframe data, allowing the SoC to quickly generate touch coordinate response data based on the high-order components of the first subframe data, significantly shortening the touch response time. In the second mode, it generates complete touch frame data containing both the first and second subframe data, enabling the SoC to generate high-precision touch coordinate response data based on the complete original sampled values ​​obtained through shifting and splicing, ensuring touch accuracy. Therefore, this application embodiment achieves precise synchronization of response modes through dual-end command interaction and obtains an optimized balance between touch response speed and touch accuracy in different modes.

[0155] The above describes a data processing method provided by an embodiment of this application. The following describes an apparatus for performing the above data processing method.

[0156] Please see Figure 10 , Figure 10 This is a schematic diagram of the structure of a data processing system provided in an embodiment of this application. Figure 10 As shown, the data processing system 1000 includes: a touch screen control unit 1001 and a processor control unit 1002;

[0157] In this embodiment, the touch screen control unit is used to generate touch frame data based on the response mode and send the touch frame data to the processor control unit; the touch frame data includes first subframe data and second subframe data under the same sampling period, and the first subframe data is more important to the touch coordinate response data than the second subframe data;

[0158] In this embodiment, the processor control unit is used to receive touch frame data, determine the processing timing that matches the response mode, and process the received touch frame data to generate touch coordinate response data. The processing timing includes receiving the first subframe data, or receiving the first subframe data and the second subframe data.

[0159] This application also provides an electronic device, which includes a first processor, a second processor, and a memory connected to each of the processors, wherein:

[0160] The memory is used to store the first computer program and the second computer program.

[0161] The first processor is used to execute the first computer program to enable the electronic device to: generate touch frame data based on a response mode and send the touch frame data to the second processor; the touch frame data includes first subframe data and second subframe data under the same sampling period, wherein the first subframe data is more important to the touch coordinate response data than the second subframe data;

[0162] The second processor is configured to execute the second computer program to enable the electronic device to: receive touch frame data, determine a processing timing that matches the response mode, and process the received touch frame data to generate touch coordinate response data, wherein the processing timing includes receiving the first subframe data, or receiving both the first subframe data and the second subframe data.

[0163] refer to Figure 11 The diagram illustrates a structural schematic suitable for implementing the electronic device in the embodiments of this application. The electronic device in the embodiments of this application may include, but is not limited to, fixed terminals such as laptops, PDAs (Personal Digital Assistants), PADs (Tablet PCs), gaming devices, etc. Figure 11 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0164] like Figure 11 As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage device 1108 into a random access memory (RAM) 1103. When the electronic device is powered on, the RAM 1103 also stores various programs and data required for the operation of the electronic device. The processing unit 1101, ROM 1102, and RAM 1103 are interconnected via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0165] Typically, the following devices can be connected to I / O interface 1105: input devices 1106 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1107 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1108 including, for example, memory cards, hard drives, etc.; and communication devices 1109. Communication device 1109 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 11 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0166] This application also provides a computer program product including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the data processing methods provided in this application.

[0167] This application also provides a computer-readable storage medium that carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the data processing methods provided in this application.

[0168] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0169] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0170] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.

[0171] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

Claims

1. A data processing method, comprising: Receive touch frame data, which includes first subframe data and second subframe data under the same sampling period, wherein the first subframe data is more important to the touch coordinate response data than the second subframe data; After determining the processing timing that matches the response mode, the received touch frame data is processed to generate touch coordinate response data. The processing timing includes receiving the first subframe data, or receiving both the first subframe data and the second subframe data.

2. The data processing method according to claim 1, after determining the processing timing that matches the response mode, processes the received touch frame data to generate touch coordinate response data, including: In the first mode, after confirming that the first subframe data has been received, the first subframe data is processed to generate touch coordinate response data; In the second mode, after confirming that the first subframe data and the second subframe data have been received, the first subframe data and the second subframe data are processed to generate touch coordinate response data.

3. The data processing method according to claim 2 further includes: Monitor the running status of at least one target application; If the first condition is met, the response mode will be switched to the first mode. The first condition includes the existence of a target application running in the foreground. If the second condition is met, the response mode will be switched to the second mode; the second condition includes that no target application is running in the foreground.

4. The data processing method according to claim 2 further includes: After switching the response mode to the first mode, a first instruction is sent to the touch screen controller. After switching the response mode to the second mode, a second instruction is sent to the touch screen controller. This causes the touch screen controller to generate the touch frame data based on the response mode and touch sampling data. The first subframe data and the second subframe data are transmitted sequentially according to the importance of the touch coordinate response data from high to low. The touch sampling data includes the original sampling values ​​of each touch sampling point.

5. The data processing method according to claim 4, In the first mode, in the touch frame data generated by the touch screen controller, the first subframe data stores the first data component of the touch sampling data, and the second subframe data is empty; In the second mode, in the touch frame data generated by the touch screen controller, the first subframe data stores the first data component of the touch sampling data, and the second subframe data stores the second data component of the touch sampling data.

6. The data processing method according to claim 5, In the first mode or the second mode, the element at the target position in the first subframe data stores the high-order component of the corresponding original sample value in bytes of the first number of bytes, so as to realize the first data component for storing touch sample data; In the second mode, the element at the target position in the second subframe data stores the low-order component of the corresponding original sample value in bytes of the second number of bytes, so as to realize the second data component for storing touch sample data; The number of the first byte is less than the total number of bytes required for the original sample value.

7. The data processing method according to claim 6, wherein processing the first subframe data to generate touch coordinate response data includes: Based on the first subframe data, the high-order component of the original sampled value of each of the touch sampling points is determined element by element, and touch coordinate response data is generated based on the high-order component of the original sampled value of each of the touch sampling points.

8. The data processing method according to claim 6, processing the first subframe data and the second subframe data to generate touch coordinate response data, comprising: The first subframe data and the second subframe data are shifted and spliced ​​element by element to obtain the original sampled values ​​of each touch sampling point. Based on the original sampled values ​​of each touch sampling point, touch coordinate response data is generated.

9. A data processing system, the data processing system comprising a touch screen control unit and a processor control unit; The touch screen control unit is used to generate touch frame data based on the response mode and send the touch frame data to the processor control unit; the touch frame data includes first subframe data and second subframe data under the same sampling period, and the first subframe data is more important to the touch coordinate response data than the second subframe data. The processor control unit is used to receive touch frame data, determine the processing timing that matches the response mode, and process the received touch frame data to generate touch coordinate response data. The processing timing includes receiving the first subframe data, or receiving the first subframe data and the second subframe data.

10. An electronic device comprising a first processor, a second processor, and a memory connected to each of the processors, wherein: The memory is used to store the first computer program and the second computer program. The first processor executes the first computer program to enable the electronic device to: generate touch frame data based on a response mode, and send the touch frame data to the second processor; the touch frame data includes first subframe data and second subframe data under the same sampling period, wherein the first subframe data is more important than the touch coordinate response data. The second processor is configured to execute the second computer program to enable the electronic device to: receive touch frame data, determine a processing timing that matches the response mode, and process the received touch frame data to generate touch coordinate response data, wherein the processing timing includes receiving the first subframe data, or receiving both the first subframe data and the second subframe data.