Touch-control method and related device

By introducing a dual-drive mechanism between the touch display and the system-on-a-chip (SoC), the touch display and the SoC calculate capacitance data and position coordinates respectively, solving the problems of difficulty in making touch displays thinner and lighter and easy to malfunction in the prior art, and achieving more efficient touch operation and a lower probability of failure.

WO2025260751A1PCT designated stage Publication Date: 2025-12-26HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/073706
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-19
Filing Date
2025-01-21
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

Existing touch displays require significant computing power to calculate position coordinates, making it difficult to achieve thinner and lighter products and prone to touch malfunctions.

Method used

By introducing a dual-drive mechanism between the touch display and the system-on-a-chip, the touch display and the system-on-a-chip respectively undertake the tasks of calculating capacitance data and position coordinates, and switch drivers under certain conditions to achieve a flexible communication and response mechanism.

Benefits of technology

It reduces the probability of touch malfunction, improves the flexibility and accuracy of touch operation, and supports the design of thinner and lighter products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025073706_26122025_PF_FP_ABST
    Figure CN2025073706_26122025_PF_FP_ABST
Patent Text Reader

Abstract

A touch-control method and a related device, which are used for reducing the probability of a touch-control failure on a touch-control display screen and improving the touch-control operation experience. For example, a display system comprises a system on a chip and a touch-control display screen. The touch-control display screen collects first capacitance data. The system on a chip receives first information, wherein the first information comprises the first capacitance data. The system on a chip determines first position coordinates on the basis of the first capacitance data, and gives a response. The touch-control display screen collects second capacitance data. Upon determining that the display system meets a first condition, the touch-control display screen obtains second position coordinates on the basis of the second capacitance data. The system on a chip receives second information, wherein the second information comprises the second position coordinates. The system on a chip gives a response on the basis of the second position coordinates.
Need to check novelty before this filing date? Find Prior Art

Description

A touch control method and related equipment

[0001] Cross-references to related applications

[0002] This application claims priority to Chinese Patent Application No. 202410790277.2, filed on June 19, 2024, entitled "A Touch Method and Related Device", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of terminal technology, and in particular to a touch control method and related equipment. Background Technology

[0004] Currently, most electronic products feature touchscreen displays. As user demands increase, the sensitivity of touchscreens is becoming more critical, making products with smooth touch response and timely feedback more attractive. Generally, the touch principle of a touchscreen involves collecting capacitance data, calculating the coordinate position based on that data, and then sending the coordinate position to the on-chip system for a response. This method requires the touchscreen to perform position coordinate calculations, meaning it needs a certain level of computing power. This makes it difficult to achieve very small areas and thicknesses for touchscreens, which conflicts with the concept of thinner and lighter products. Summary of the Invention

[0005] This application provides a touch control method and related device to reduce the probability of touch screen malfunction and improve the touch operation experience.

[0006] Firstly, a touch control method is provided, which can be applied to a display system. The display system includes a system-on-a-chip (SoC) and a touch display screen. The method includes: the touch display screen acquiring first capacitance data; the SoC receiving first information sent by the touch display screen, the first information including the first capacitance data; the SoC determining first position coordinates based on the first capacitance data, and responding based on the first position coordinates; the touch display screen acquiring second capacitance data; when the touch display screen determines that the display system meets a first condition, obtaining second position coordinates based on the second capacitance data; the SoC receiving second information sent by the touch display screen, the second information including the second position coordinates; and the SoC responding based on the second position coordinates.

[0007] In this embodiment, after the touch display screen collects the first capacitance data, it can directly send the first capacitance data to the on-chip system (SoC) without calculating the first position coordinates based on the first capacitance data. The SoC then calculates the position coordinates. This facilitates product thinning and lightness. Furthermore, due to the powerful computing capabilities of the SoC, calculating the position coordinates by the SoC improves accuracy and reduces the probability of touch malfunction. In this embodiment, there are two interaction mechanisms between the touch display screen and the SoC. One is that the touch display screen sends capacitance data to the SoC, and the other is that the touch display screen sends position coordinates to the SoC. In the first mechanism, the computing power (the process of calculating the position coordinates) is borne by the SoC; in the second mechanism, the computing power is borne by the touch display screen. These two interaction mechanisms can be switched. For example, if the display system meets a first condition, the interaction between the touch display screen and the SoC switches from the first interaction mechanism to the second interaction mechanism. Compared to solutions where the computing power is solely provided by the touch display (i.e., only supporting the second interaction mechanism), the technical solution provided in this application is more flexible and has a lower probability of touch malfunction.

[0008] In one possible design, the system-on-a-chip includes a first driver and a second driver, both of which are drivers for the touch display screen. The first driver supports the first driver protocol, and the second driver supports the second driver protocol. The system-on-a-chip receives first information sent by the touch display screen, including: when the system-on-a-chip runs the first driver, it receives the first information sent by the touch display screen, the first information being based on the first driver protocol. The system-on-a-chip receives second information sent by the touch display screen, including: when the system-on-a-chip runs the second driver, it receives the second information sent by the touch display screen, the second information being based on the second driver protocol.

[0009] In this embodiment, the display system supports dual drivers (i.e., a first driver and a second driver). For example, if the system-on-chip (SoC) and the touch display communicate based on the first driver, and the display system meets a first condition (e.g., the first driver malfunctions), then the SoC and the touch display communicate based on the second driver. Therefore, compared to a single-driver solution for the display system, the dual-driver solution provided in this embodiment reduces the probability of touch display failure and improves the touch operation experience.

[0010] In one possible design, when the system-on-a-chip (SoC) runs the first driver, receiving first information sent by the touch display screen includes: when the SoC runs the first driver, reading the first information from a first cache of the touch display screen; when the SoC runs the second driver, receiving second information sent by the touch display screen includes: when the SoC runs the second driver, reading the first information from a second cache of the touch display screen.

[0011] In this embodiment, the touch display screen includes a first cache and a second cache. Information in the first cache conforms to a first driving protocol, and information in the second cache conforms to a second driving protocol. The system-on-a-chip (SoC) can read information from the first cache by running the first driver and read information from the second cache by running the second driver. This enables communication between the touch display screen and the SoC based on dual drivers.

[0012] Optionally, the on-chip system may respond based on the first or second position coordinates, which may include: the on-chip system updating the displayed content at the first or second position coordinates, such as displaying editing content such as a cursor, text, lines, or drawings at the first or second position coordinates.

[0013] Optionally, the on-chip system determines the first position coordinates based on the first capacitance data and responds based on the first position coordinates. This can include: the on-chip system determines the first position coordinates and a first operation type based on the first capacitance data, and responds based on the first operation type and the first position coordinates. The first operation type can include: single-click operation, double-click operation, long-press operation, swipe operation, etc. In this approach, the on-chip system can respond differently to different operation types.

[0014] Optionally, when the touch display determines that the display system meets the first condition, obtaining the second position coordinates based on the second capacitance data may include: when the touch display determines that the display system meets the first condition, obtaining the second position coordinates and a second operation type based on the second capacitance data; the second information received by the on-chip system includes the second position coordinates and the second operation type; and the on-chip device responds based on the second position coordinates and the second operation type. The second operation type may include: single-click operation, double-click operation, long-press operation, swipe operation, etc.

[0015] In one possible design, the first driver is the Touch Master Process (THP) driver, and the second driver is the Hardware Interface Device (HID) driver.

[0016] It should be noted that the first driver and the second driver can be other drivers, and this application embodiment does not limit them. Optionally, the first driver and the second driver can be the same or different.

[0017] In one possible design, the display system satisfies a first condition, including at least one of the following: the first driver is malfunctioning; the on-chip system is currently running a second system; the on-chip system is currently running a second preset application; the on-chip system's operating load is greater than or equal to a first preset load; the touch display screen's operating load is less than or equal to a second preset load; and the on-chip system receives a second operation, the second operation being used to instruct a switch from the first driver to the second driver.

[0018] In this embodiment, the display system supports dual drivers, namely a first driver and a second driver. When communication between the system-on-chip (SoC) and the touchscreen is based on the first driver, if the first driver malfunctions, or is running on a second system, or is running a second preset application, or is under a load exceeding a preset load, or receives a user switching operation, the SoC and the touchscreen communicate based on the second driver to ensure uninterrupted transmission between the touchscreen and the SoC. Compared to a single-driver solution for the display system, this dual-driver solution reduces the probability of touchscreen malfunction and improves the touch operation experience.

[0019] In one possible design, the method further includes: the touch display acquiring third capacitance data; when the touch display determines that the display system meets the second condition, sending third information to the system-on-a-chip, the third information being based on the first driving protocol and including the third capacitance data; the system-on-a-chip determining third position coordinates based on the third capacitance data and responding based on the third position coordinates.

[0020] In this embodiment, the display system supports dual drivers, namely a first driver and a second driver. When the system-on-chip (SoC) and the touch display screen communicate based on the second driver, if the display system meets a second condition, it switches to the first driver for communication to ensure that the transmission channel between the touch display screen and the SoC is uninterrupted and to reduce the probability of touch failure.

[0021] In one possible design, the display system satisfies a second condition, including at least one of the following: the first driver returns to normal; the second driver malfunctions; the on-chip system is currently running the first system; the on-chip system is currently running the first preset application; the on-chip system's operating load is less than the first preset load; the touch display screen's operating load is greater than the second preset load; the on-chip system receives a first operation, the first operation being used to instruct a switch from the second driver to the first driver.

[0022] In this embodiment, the display system supports dual drivers, namely a first driver and a second driver. When communication between the on-chip system and the touch display is based on the second driver, if the first driver recovers, or is running on the first system, or running a first preset application, or its load is below a preset load, or a user switching operation is received, communication between the on-chip system and the touch display is based on the first driver to ensure uninterrupted transmission between the touch display and the on-chip system. Compared to a single-driver solution for the display system, this dual-driver solution reduces the probability of touch display failure and improves the touch operation experience.

[0023] In one possible design, the system-on-a-chip receives first information sent by the touch display screen, including: the system-on-a-chip receives the first information through a first interface, wherein the first interface is an SPI interface or a USB interface.

[0024] In the embodiments of this application, the first driver can correspond to the first interface, which can be an SPI interface or a USB interface, or of course, other types of interfaces. The embodiments of this application do not limit this.

[0025] In one possible design, the system-on-a-chip receives second information sent by the touch display screen, including: the system-on-a-chip receives the second information through a second interface, which is an I2C interface, an SPI interface, or a USB interface.

[0026] In this embodiment, the second driver can correspond to a second interface, which can be an I2C interface, an SPI interface, or a USB interface. Of course, it can also be other types of interfaces, and this embodiment does not limit it. Optionally, the first interface and the second interface can be the same type of interface or different types of interfaces, and this is not limited.

[0027] In one possible design, the first information and / or the second information further include first indication information, which is used to instruct the on-chip system to receive other data through a short-range communication module. The other data includes at least one of pressure data, angle data, and acceleration data. The method further includes: the on-chip system receiving the other data through the short-range communication module and responding based on the other data.

[0028] In this embodiment of the application, the on-chip system can receive pressure data, angle data, acceleration data, etc. through a short-range communication module (e.g., Bluetooth). In this way, pressure data, angle data, acceleration data, etc. do not need to be carried in the first information and / or the second information, which can save the number of bytes of the first information and / or the second information and reduce the data transmission volume of the driver.

[0029] In one possible design, the method further includes: the on-chip system controlling the first driver to be disabled.

[0030] In this embodiment of the application, when the on-chip system and the touch display screen communicate based on the first driver, if the second driver is switched, the first driver is disabled to save power consumption.

[0031] In one possible design, the method further includes: the touch display screen outputting a first prompt message, the first prompt message being used to indicate that the display system has entered a second mode, the second mode being a mode that implements touch functionality based on the second driver.

[0032] In this embodiment, after the on-chip system switches from the first driver to the second driver between the system on-chip and the touch display, the touch display can output a prompt message to prompt the user to enter the second mode, resulting in a better user experience.

[0033] In one possible design, before obtaining the second position coordinates based on the second capacitance data, the method further includes: the touch screen outputting a second prompt message, the second prompt message indicating whether to enter a second mode, the second mode being a mode that implements touch functionality based on the second driver; the touch screen receiving a confirmation operation, the confirmation operation indicating confirmation to enter the second mode.

[0034] In this embodiment, the dual-drive switching between the system-on-a-chip and the touch display (e.g., switching from the first driver to the second driver) is confirmed by the user, resulting in a better user experience.

[0035] In one possible design, the method further includes: the touch display screen outputting a third prompt message, the third prompt message being used to prompt the display system to enter a first mode, the first mode being a mode that implements touch functionality based on the first driver.

[0036] In this embodiment, after the system-on-a-chip switches from the second driver to the first driver between the system on-chip and the touch display, the system on-chip can output a prompt message to prompt the user to enter the first mode, resulting in a better user experience.

[0037] In one possible design, before the touch display screen sends the third information to the system on-chip, the method further includes: the touch display screen outputting a fourth prompt message, the fourth prompt message being used to prompt whether to enter a first mode, the first mode being a mode that implements touch functionality based on the first driver; the touch display screen receiving a confirmation operation, the confirmation operation being used to indicate confirmation of entering the first mode.

[0038] In this embodiment, the dual-drive switching between the system-on-a-chip and the touch display (e.g., switching from the second driver to the first driver) is confirmed by the user, resulting in a better user experience.

[0039] In one possible design, the touch display screen determines that the display system meets a first condition by: the touch display screen obtaining system status information from the system-on-a-chip via a third interface, the system status information indicating at least one of the following: the currently running system, the currently running application, the currently running load, whether the first driver is normal, and whether the second driver is normal; the touch display screen determines that the display system meets the first condition based on the system status information.

[0040] In this embodiment, the system-on-chip transmits system status information to the touch display screen through a third interface, so that the touch display screen can determine whether to switch drivers based on the system status information, thereby achieving flexible switching between dual drivers.

[0041] In one possible design, the system-on-a-chip includes applications and / or functions for collecting system status information and sending the system status information to the touch display screen via the third interface.

[0042] In the embodiments of this application, the applications and / or functions in the system-on-a-chip can collect system status information and provide system status information to the touch screen, so that the touch screen can determine whether to switch the driver based on the system status information, thereby realizing flexible switching between dual drivers.

[0043] In one possible design, the method further includes: the on-chip system responding to a third operation by displaying a first interface via the touch display screen, the first interface including a first identifier of the first driver and a second identifier of the second driver.

[0044] In this embodiment, users can see the dual-drive indicator in the display system, providing a better user experience.

[0045] Secondly, a touch control method is also provided, applied to a system-on-a-chip (SoC), wherein the SoC is connected to a touch display screen. The method includes: the SoC receiving first information, the first information including first capacitance data; the SoC determining first position coordinates based on the first capacitance data, and responding based on the first position coordinates; when the SoC satisfies a first condition and / or the touch display screen satisfies a second condition, the SoC receiving second information, the second information including second position coordinates, the second position coordinates being obtained by the touch display screen based on the second capacitance data; and the SoC responding based on the second position coordinates.

[0046] In one possible design, the system-on-a-chip includes a first driver and a second driver, both of which are drivers for the touch display screen. The first driver supports a first driver protocol, and the second driver supports the second driver protocol. The system-on-a-chip receives first information sent by the touch display screen, including: when the system-on-a-chip runs the first driver, it receives the first information sent by the touch display screen, the first information being based on the first driver protocol. The system-on-a-chip receives second information sent by the touch display screen, including: when the system-on-a-chip runs the second driver, it receives the second information sent by the touch display screen, the second information being based on the second driver.

[0047] In this embodiment, the system-on-a-chip (SoC) can support dual drivers (i.e., a first driver and a second driver). For example, if the SoC communicates with the touch display based on the first driver, and the SoC meets a first condition (e.g., the first driver malfunctions), then the SoC and the touch display communicate based on the second driver. Therefore, compared to a single-driver solution, the dual-driver solution provided in this embodiment can reduce the probability of touch display failure and improve the touch operation experience.

[0048] In one possible design, the first driver is the Touch Master Process (THP) driver, and the second driver is the Hardware Interface Device (HID) driver.

[0049] In one possible design, the system-on-a-chip satisfies a first condition, including at least one of the following: the first driver is malfunctioning; the system-on-a-chip is currently running a second system; the application currently running on the system-on-a-chip is a second preset application; the operating load of the system-on-a-chip is greater than or equal to a first preset load; the system-on-a-chip receives a second operation, the second operation being used to instruct a switch from the first driver to the second driver.

[0050] In one possible design, the touch display screen satisfies a second condition, including: the operating load of the touch display screen is less than or equal to a second preset load.

[0051] In one possible design, the method further includes: when the on-chip system satisfies a third condition and / or the touch display screen satisfies a fourth condition, the on-chip system receives third information, the third information being based on a first driving protocol and including third capacitance data collected by the touch display screen; the on-chip system determines third position coordinates based on the third capacitance data and responds based on the third position coordinates.

[0052] In one possible design, the system-on-a-chip (SoC) satisfies a third condition, including at least one of the following: the first driver recovers to normal; the second driver malfunctions; the SoC is currently running the first system; the SoC is currently running the first preset application; the SoC's operating load is less than the first preset load; and the SoC receives a first operation, which instructs the SoC to switch from the second driver to the first driver.

[0053] In one possible design, the touch display screen satisfies a fourth condition, including: the operating load of the touch display screen is greater than a second preset load.

[0054] In one possible design, the system-on-a-chip receives first information, including: the system-on-a-chip receives the first information through a first interface, wherein the first interface is an SPI interface or a USB interface.

[0055] In one possible design, the system-on-chip receives second information by means of: the system-on-chip receiving second information through a second interface, wherein the second interface is an I2C interface, an SPI interface, or a USB interface.

[0056] In one possible design, the first information and / or the second information further include first indication information, which is used to instruct the on-chip system to receive other data through a short-range communication module. The other data includes at least one of pressure data, angle data, and acceleration data. The method further includes: the on-chip system receiving the other data through the short-range communication module and responding based on the other data.

[0057] In one possible design, the method further includes: the on-chip system controlling the first driver to be disabled.

[0058] In one possible design, the method further includes: the system-on-chip sending system status information to the touch display screen through a third interface, the system status information being used to indicate at least one of the following: the currently running system, the currently running application, whether the first driver is normal, whether the second driver is normal, and the current running load of the system-on-chip.

[0059] In one possible design, the system-on-a-chip includes applications and / or functions for collecting system status information and sending the system status information to the touch display screen via the third interface.

[0060] In one possible design, the method further includes: the on-chip system responding to a third operation by displaying a first interface via the touch display screen, the first interface including a first identifier of the first driver and a second identifier of the second driver.

[0061] Thirdly, a touch control method is also provided, applied to a touch display screen, the touch display screen being connected to a system-on-a-chip (SoC), the method comprising: the touch display screen acquiring first capacitance data; the touch display screen sending first information to the SoC, the first information including the first capacitance data; the touch display screen acquiring second capacitance data; the touch display screen determining that the SoC satisfies a first condition and / or the touch display screen satisfies a second condition, and obtaining second position coordinates based on the second capacitance data; the touch display screen sending second information to the SoC, the second information including the second position coordinates.

[0062] In one possible design, the touch display sends first information to the system-on-a-chip, including: the touch display writes the first information into a first cache, the first information being based on a first driver protocol, the first cache being used to read the first information in the first cache when the system-on-a-chip runs a first driver program, the first driver program supporting the first driver protocol; the touch display sends second information to the system-on-a-chip, including: the touch display writes the second information into a second cache, the second information being based on a second driver protocol, the second cache being used to read the second information in the second cache when the system-on-a-chip runs a second driver program, the second driver program supporting the second driver protocol.

[0063] In this embodiment, the touch display screen includes a first cache and a second cache. Information in the first cache satisfies a first driving protocol, and information in the second cache satisfies a second driving protocol. The system-on-a-chip (SoC) can read information from the first cache by running a first driver program and read information from the second cache by running a second driver program, thereby enabling communication between the touch display screen and the SoC.

[0064] In one possible design, the first driver is the Touch Master Process (THP) driver, and the second driver is the Hardware Interface Device (HID) driver.

[0065] In one possible design, the system-on-a-chip satisfies a first condition, including at least one of the following: the first driver is malfunctioning; the system-on-a-chip is currently running a second system; the application currently running on the system-on-a-chip is a second preset application; the operating load of the system-on-a-chip is greater than or equal to a first preset load; the system-on-a-chip receives a second operation, the second operation being used to instruct a switch from the first driver to the second driver.

[0066] In one possible design, the touch display screen satisfies a second condition, including: the operating load of the touch display screen is less than or equal to a second preset load.

[0067] In one possible design, the method further includes: the touch display acquiring third capacitance data; when the touch display determines that the on-chip system meets a third condition and / or the touch display meets a fourth condition, sending third information to the on-chip system, the third information being based on the first driving protocol and including the third capacitance data.

[0068] In one possible design, the system-on-a-chip (SoC) satisfies a third condition, including at least one of the following: the first driver recovers to normal; the second driver malfunctions; the SoC is currently running the first system; the SoC is currently running the first preset application; the SoC's operating load is less than the first preset load; and the SoC receives a first operation, which instructs the SoC to switch from the second driver to the first driver.

[0069] In one possible design, the touch display screen satisfies a fourth condition, including: the operating load of the touch display screen is greater than a second preset load.

[0070] In one possible design, the touch display screen sends first information to the system-on-a-chip, including: the touch display screen sends the first information to the system-on-a-chip through a first interface, wherein the first interface is an SPI interface or a USB interface.

[0071] In one possible design, the touch display screen sends second information to the system on-chip, including: the touch display screen sends second information to the system on-chip through a second interface, wherein the second interface is an I2C interface, an SPI interface, or a USB interface.

[0072] In one possible design, the first information and / or the second information may further include first indication information, which is used to instruct the on-chip system to receive other data through a short-range communication module. The other data includes at least one of pressure data, angle data, and acceleration data.

[0073] In one possible design, the method further includes: the touch display screen outputting a first prompt message, the first prompt message being used to indicate that the touch display screen has entered a second mode, the second mode being a mode that implements touch functionality based on the second driver.

[0074] In one possible design, before the touch display screen sends the second information to the system on-chip, the method further includes: the touch display screen outputting a second prompt message, the second prompt message being used to indicate whether to enter a second mode, the second mode being a mode that implements touch functionality based on the second driver; the touch display screen receiving a confirmation operation, the confirmation operation being used to indicate confirmation of entering the second mode.

[0075] In one possible design, the method further includes: the touch display screen outputting a third prompt message, the third prompt message being used to indicate that the touch display screen has entered a first mode, the first mode being a mode that implements touch functionality based on the first driver.

[0076] In one possible design, before sending the third information to the system-on-a-chip, the method further includes: the touch display screen outputting a fourth prompt message, the fourth prompt message being used to prompt whether to enter a first mode, the first mode being a mode that implements touch functionality based on the first driver; the touch display screen receiving a confirmation operation, the confirmation operation being used to indicate confirmation of entering the first mode.

[0077] In one possible design, the touch display screen determines that the system on-chip meets a first condition by: the touch display screen obtaining system status information from the system on-chip through a third interface, and determining that the system on-chip meets the first condition based on the system status information, wherein the system status information is used to indicate at least one of the following: the currently running system, the currently running application, whether the first driver is normal, whether the second driver is normal, and the current running load of the system on-chip.

[0078] In one possible design, the method further includes: the touch screen displaying a first interface, the first interface including a first identifier of the first driver and a second identifier of the second driver.

[0079] Fourthly, a touch control method is also provided, applied to a display system, the display system including a system-on-a-chip (SoC) and a touch display screen. The method includes: the touch display screen acquiring first capacitance data; the touch display screen determining first position coordinates based on the first capacitance data; the SoC receiving first information sent by the touch display screen, the first information including the first position coordinates; the SoC responding based on the first position coordinates; the touch display screen acquiring second capacitance data; when the touch display screen determines that the display system meets a second condition, sending second information to the SoC, the second information including the second capacitance data; the SoC obtaining second position coordinates based on the second capacitance data, and responding based on the second position coordinates.

[0080] In one possible design, the system-on-a-chip includes a first driver and a second driver, both of which are drivers for the touch display screen. The first driver supports the first driver protocol, and the second driver supports the second driver protocol. The system-on-a-chip receives first information sent by the touch display screen, including: when the system-on-a-chip runs the first driver, it receives the first information sent by the touch display screen, the first information being based on the first driver protocol. The system-on-a-chip receives second information sent by the touch display screen, including: when the system-on-a-chip runs the second driver, it receives the second information sent by the touch display screen, the second information being based on the second driver protocol.

[0081] In one possible design, the first driver is a hardware interface device HID driver, and the second driver is a touch controller process THP driver.

[0082] In one possible design, the display system satisfies a second condition, including at least one of the following: the first driver is malfunctioning; the on-chip system is currently running a first system; the on-chip system is currently running a first preset application; the on-chip system's operating load is less than the first preset load; the touch display screen's operating load is greater than the second preset load; the on-chip system receives a first operation, the first operation being used to instruct a switch from the first driver to the second driver.

[0083] In one possible design, the method further includes: the touch display acquiring third capacitance data; when the touch display determines that the display system meets a first condition, determining third position coordinates based on the third capacitance data; the on-chip system receiving third information based on the first driving protocol, the third information including the third position coordinates; and the on-chip system responding based on the third position coordinates.

[0084] In one possible design, the display system satisfies a first condition, including at least one of the following: the first driver returns to normal; the second driver malfunctions; the on-chip system is currently running a second system; the on-chip system is currently running a second preset application; the on-chip system's operating load is greater than or equal to a first preset load; the touch display screen's operating load is less than or equal to a second preset load; and the on-chip system receives a second operation, the second operation being used to instruct a switch from the second driver to the first driver.

[0085] In one possible design, the system-on-chip receives first information, including: the system-on-chip receives the first information through a first interface, wherein the first interface is an I2C interface, an SPI interface, or a USB interface.

[0086] In one possible design, sending the second information to the system-on-a-chip includes sending the second information to the system-on-a-chip via a second interface, which is an SPI interface or a USB interface.

[0087] In one possible design, the first information and / or the second information further include first indication information, which is used to instruct the on-chip system to receive other data through a short-range communication module. The other data includes at least one of pressure data, angle data, and acceleration data. The method further includes: the on-chip system receiving the other data through the short-range communication module and responding based on the other data.

[0088] In one possible design, the method further includes: the on-chip system controlling the first driver to be disabled.

[0089] In one possible design, the method further includes: the touch display screen outputting a first prompt message, the first prompt message being used to indicate that the display system has entered a second mode, the second mode being a mode that implements touch functionality based on the second driver.

[0090] In one possible design, before sending the second information to the system-on-a-chip, the method further includes: the touch display screen outputting a second prompt message, the second prompt message being used to indicate whether to enter a second mode, the second mode being a mode that implements touch functionality based on the second driver; the touch display screen receiving a confirmation operation, the confirmation operation being used to indicate confirmation of entering the second mode.

[0091] In one possible design, the method further includes: the touch display screen outputting a third prompt message, the third prompt message being used to prompt the display system to enter a first mode, the first mode being a mode that implements touch functionality based on the first driver.

[0092] In one possible design, before determining the third position coordinates based on the third capacitance data, the method further includes: the touch screen outputting a fourth prompt message, the fourth prompt message being used to prompt whether to enter a first mode, the first mode being a mode that implements touch functionality based on the first driver; the touch screen receiving a confirmation operation, the confirmation operation being used to indicate confirmation of entering the first mode.

[0093] In one possible design, the touch display screen determines that the display system meets the second condition by: the touch display screen obtaining system status information from the system on-chip through a third interface, the system status information indicating at least one of the following: the currently running system, the currently running application, the currently running load, whether the first driver is normal, and whether the second driver is normal; the touch display screen determines that the display system meets the second condition based on the system status information.

[0094] In one possible design, the system-on-a-chip includes applications and / or functions for collecting system status information and sending the system status information to the touch display screen via the third interface.

[0095] In one possible design, the method further includes: the on-chip system responding to a third operation by displaying a first interface via the touch display screen, the first interface including a first identifier of the first driver and a second identifier of the second driver.

[0096] Fifthly, a touch control method is also provided, applied to a system-on-a-chip (SoC), wherein the SoC is connected to a touch display screen. The method includes: the SoC receiving first information, the first information including first position coordinates, the first coordinate position being obtained by the touch display screen based on first capacitance data; the SoC responding based on the first position coordinates; when the SoC satisfies a first condition and / or the touch display screen satisfies a second condition, the SoC receiving second information, the second information including second capacitance data collected by the touch display screen; the SoC obtaining second position coordinates based on the second capacitance data, and responding based on the second position coordinates.

[0097] In one possible design, the system-on-a-chip includes a first driver and a second driver, both of which are drivers for the touch display screen. The first driver supports the first driver protocol, and the second driver supports the second driver protocol. The system-on-a-chip receives first information sent by the touch display screen, including: when the system-on-a-chip runs the first driver, it receives the first information sent by the touch display screen, the first information being based on the first driver protocol. The system-on-a-chip receives second information sent by the touch display screen, including: when the system-on-a-chip runs the second driver, it receives the second information sent by the touch display screen, the second information being based on the second driver protocol.

[0098] In one possible design, the first driver is a hardware interface device HID driver, and the second driver is a touch controller process THP driver.

[0099] In one possible design, the system-on-a-chip satisfies a first condition, including at least one of the following: the first driver is malfunctioning; the system-on-a-chip is currently running a first system; the application currently running on the system-on-a-chip is a first preset application; the operating load of the system-on-a-chip is less than the first preset load; the system-on-a-chip receives a first operation, the first operation being used to instruct a switch from the first driver to a second driver.

[0100] In one possible design, the touch display screen satisfies a second condition, including: the operating load of the touch display screen is greater than the second preset load amount.

[0101] In one possible design, the method further includes: when the on-chip system satisfies a third condition and / or the touch display screen satisfies a fourth condition, the on-chip system receives third information based on the first driving protocol, the third information including third position coordinates obtained by the touch display screen based on third capacitance data; the on-chip system responds based on the third position coordinates.

[0102] In one possible design, the system-on-a-chip (SoC) satisfies a third condition, including at least one of the following: the first driver recovers to normal; the second driver malfunctions; the SoC is currently running the second system; the SoC is currently running the second preset application; the SoC's operating load is greater than or equal to a first preset load; and the SoC receives a second operation, which instructs the SoC to switch from the second driver to the first driver.

[0103] In one possible design, the touch display screen satisfies a fourth condition, including: the operating load of the touch display screen is less than or equal to a second preset load.

[0104] In one possible design, the system-on-chip receives first information, including: the system-on-chip receives the first information through a first interface, wherein the first interface is an I2C interface, an SPI interface, or a USB interface.

[0105] In one possible design, the system-on-chip receives second information by means of: the system-on-chip receiving second information through a second interface, wherein the second interface is an SPI interface or a USB interface.

[0106] In one possible design, the first information and / or the second information further include first indication information, which is used to instruct the on-chip system to receive other data through a short-range communication module. The other data includes at least one of pressure data, angle data, and acceleration data. The method further includes: the on-chip system receiving the other data through the short-range communication module and responding based on the other data.

[0107] In one possible design, the method further includes: the on-chip system controlling the first driver to be disabled.

[0108] In one possible design, the method further includes: the system-on-chip sending system status information to the touch display screen through a third interface, the system status information being used to indicate at least one of the following: the currently running system, the currently running application, the currently running load, whether the first driver is functioning properly, and whether the second driver is functioning properly.

[0109] In one possible design, the system-on-a-chip includes applications and / or functions for collecting system status information and sending the system status information to the touch display screen via the third interface.

[0110] In one possible design, the method further includes: the on-chip system responding to a third operation by displaying a first interface via the touch display screen, the first interface including a first identifier of the first driver and a second identifier of the second driver.

[0111] Sixthly, a touch control method is also provided, applied to a touch display screen, the touch display screen being connected to a system-on-a-chip (SoC), the method comprising: the touch display screen acquiring first capacitance data; the touch display screen determining first position coordinates based on the first capacitance data; the touch display screen sending first information to the SoC, the first information including the first position coordinates; the touch display screen acquiring second capacitance data; and the touch display screen sending second information to the SoC when it determines that the SoC meets a first condition and / or the touch display screen meets a second condition, the second information including the second capacitance data.

[0112] In one possible design, the touch display sends first information to the system-on-a-chip, including: the touch display writes the first information into a first cache, the first information being based on a first driver protocol, the first cache being used to read the first information in the first cache when the system-on-a-chip runs a first driver program, the first driver program supporting the first driver protocol; the touch display sends second information to the system-on-a-chip, including: the touch display writes the second information into a second cache, the second information being based on a second driver protocol, the second cache being used to read the second information in the second cache when the system-on-a-chip runs a second driver program, the second driver program supporting the second driver protocol.

[0113] In one possible design, the first driver is a hardware interface device HID driver, and the second driver is a touch controller process THP driver.

[0114] In one possible design, the system-on-a-chip satisfies a first condition, including at least one of the following: the first driver is malfunctioning; the system-on-a-chip is currently running a first system; the application currently running on the system-on-a-chip is a first preset application; the operating load of the system-on-a-chip is less than the first preset load; the system-on-a-chip receives a first operation, the first operation being used to instruct a switch from the first driver to a second driver.

[0115] In one possible design, the touch display screen satisfies a second condition, including: the operating load of the touch display screen is greater than the second preset load amount.

[0116] In one possible design, the method further includes: the touch display acquiring third capacitance data; when the touch display determines that the on-chip system meets a third condition and / or the touch display meets a fourth condition, determining third position coordinates based on the third capacitance data; the touch display sending third information to the on-chip system, the third information being based on the first driving protocol, and the third information including the third position coordinates.

[0117] In one possible design, the system-on-a-chip (SoC) satisfies a third condition, including at least one of the following: the first driver recovers to normal; the second driver malfunctions; the SoC is currently running the second system; the SoC is currently running the second preset application; the SoC's operating load is greater than or equal to a first preset load; and the SoC receives a second operation, which instructs the SoC to switch from the second driver to the first driver.

[0118] In one possible design, the touch display screen satisfies a fourth condition, including: the operating load of the touch display screen is less than or equal to a second preset load.

[0119] In one possible design, the touch display screen sends first information to the system on-chip, including: the touch display screen sends first information to the system on-chip through a first interface, wherein the first interface is an I2C interface, an SPI interface, or a USB interface.

[0120] In one possible design, the touch display screen sends second information to the system-on-a-chip, including: the touch display screen sends second information to the system-on-a-chip through a second interface, the second interface being an SPI interface or a USB interface.

[0121] In one possible design, the first information and / or the second information may further include first indication information, which is used to instruct the on-chip system to receive other data through a short-range communication module. The other data includes at least one of pressure data, angle data, and acceleration data.

[0122] In one possible design, the method further includes: the first driver being disabled.

[0123] In one possible design, the method further includes: the touch display screen outputting a first prompt message, the first prompt message being used to indicate that the display system has entered a second mode, the second mode being a mode that implements touch functionality based on the second driver.

[0124] In one possible design, before sending the second information to the system-on-a-chip, the method further includes: the touch display screen outputting a second prompt message, the second prompt message being used to indicate whether to enter a second mode, the second mode being a mode that implements touch functionality based on the second driver; the touch display screen receiving a confirmation operation, the confirmation operation being used to indicate confirmation of entering the second mode.

[0125] In one possible design, the method further includes: the touch display screen outputting a third prompt message, the third prompt message being used to prompt the display system to enter a first mode, the first mode being a mode that implements touch functionality based on the first driver.

[0126] In one possible design, before determining the third position coordinates based on the third capacitance data, the method further includes: the touch screen outputting a fourth prompt message, the fourth prompt message being used to prompt whether to enter a first mode, the first mode being a mode that implements touch functionality based on the first driver; the touch screen receiving a confirmation operation, the confirmation operation being used to indicate confirmation of entering the first mode.

[0127] In one possible design, the touch display screen determines that the on-chip system meets a first condition by: the touch display screen obtaining system status information from the on-chip system through a third interface, the system status information indicating at least one of the following: the currently running system, the currently running application, the currently running load, whether the first driver is normal, and whether the second driver is normal; the touch display screen determines that the on-chip system meets the first condition based on the system status information.

[0128] In one possible design, the method further includes: in response to a third operation, the touch display screen displays a first interface, the first interface including a first identifier of the first driver and a second identifier of the second driver.

[0129] In a seventh aspect, a display system is also provided, including: a system-on-a-chip and a touch display screen.

[0130] The on-chip system is used to perform the steps of the on-chip system as described in the first or fourth aspect above, or to perform the methods as described in the second or fifth aspect above.

[0131] The touch display screen is used to perform the steps of the touch display screen as described in the first or fourth aspect above, or to perform the method as described in the third or sixth aspect above.

[0132] Eighthly, a system-on-a-chip is also provided, comprising: a processing circuit and a storage medium storing instructions; when the instructions are executed by the processing circuit, they implement the steps of the system-on-a-chip as described in the first or fourth aspect above, or implement the method as described in the second or fifth aspect above.

[0133] In a ninth aspect, a touch display screen is also provided, comprising: a touch panel and a touch integrated circuit (TPIC).

[0134] The touch panel is used to display the interface;

[0135] The TPIC is used to perform the steps of the touch display screen as described in the first or fourth aspect above, or to perform the methods described in the third or sixth aspect above.

[0136] In a tenth aspect, an electronic device is also provided, comprising: a display system as described in the seventh aspect above.

[0137] Eleventhly, an electronic device is also provided, comprising: a system-on-a-chip as described in the eighth aspect above, and / or, a touch display screen as described in the ninth aspect above.

[0138] In a twelfth aspect, a computer-readable storage medium is also provided, the computer-readable storage medium storing a computer program that, when executed by a processor, implements the method as described in any one of the first to sixth aspects above.

[0139] In a thirteenth aspect, a computer program product is also provided, the computer program product comprising a computer program that, when run on a computer, causes the computer to perform the method as described in any one of the first to sixth aspects above.

[0140] For the technical effects that can be achieved in aspects two through thirteen above, please refer to the description of the technical effects that can be achieved by the corresponding design scheme in aspect one above. This application will not repeat them here. Attached Figure Description

[0141] Figure 1 is a schematic diagram of an electronic device provided in an embodiment of this application;

[0142] Figure 2A is another schematic diagram of an electronic device provided in an embodiment of this application;

[0143] Figure 2B is a schematic diagram of a GUI of an electronic device provided in an embodiment of this application;

[0144] Figure 3A is another schematic diagram of an electronic device provided in an embodiment of this application;

[0145] Figure 3B is another schematic diagram of the GUI of an electronic device provided in an embodiment of this application;

[0146] Figure 4A is another schematic diagram of an electronic device provided in an embodiment of this application;

[0147] Figure 4B is another schematic diagram of the GUI of an electronic device provided in an embodiment of this application;

[0148] Figure 5 is a flowchart illustrating a touch control method provided in an embodiment of this application;

[0149] Figure 6A is a schematic diagram of the first information provided in an embodiment of this application;

[0150] Figure 6B is a schematic diagram of the second information provided in an embodiment of this application;

[0151] Figure 7 is a schematic flowchart of another touch method provided in an embodiment of this application;

[0152] Figure 8 is a schematic diagram of the software system of an electronic device provided in an embodiment of this application;

[0153] Figure 9 is a schematic diagram of the interaction between various modules in the software system of an electronic device provided in an embodiment of this application;

[0154] Figure 10 is another interactive schematic diagram of the various modules in the software system of an electronic device provided in an embodiment of this application;

[0155] Figure 11 is another schematic diagram of an electronic device provided in an embodiment of this application;

[0156] Figure 12 is another schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0157] The following explanations of some terms used in the embodiments of this application are provided to facilitate understanding by those skilled in the art.

[0158] The embodiments of this application involve at least one, including one or more; where "multiple" means two or more. Furthermore, it should be understood that in the description of this specification, terms such as "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or order. For example, "first driver" and "second driver" do not represent the degree of importance of the two or their order, but are merely for descriptive distinction. In the embodiments of this application, "and / or" merely describes an association relationship, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0159] The directional terms mentioned in the embodiments of this application, such as "up", "down", "left", "right", "inner", and "outer", are only for reference to the directions in the accompanying drawings. Therefore, the directional terms used are for better and clearer explanation and understanding of the embodiments of this application, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the embodiments of this application.

[0160] References to "one embodiment," "in some examples," or "some embodiments" as described in this specification mean that one or more embodiments of this specification include a particular feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in some examples," "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0161] The touch control method provided in this application can be applied to electronic devices. The electronic device can be any device with a touch display screen. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, personal computer (PC), ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), or other portable devices; or it can be an entertainment device such as a television set or game console; or it can be a wearable device such as a watch or bracelet; or it can be an in-vehicle device, such as a device installed in a vehicle, like a display device; of course, the vehicle can also be replaced by other vehicles or transportation tools such as trains, aircraft, or mobile platforms; or it can be a virtual reality (VR) device, augmented reality (AR) device, mixed reality (MR) device, etc. In short, this application does not limit the specific type of electronic device. For ease of understanding, this document mainly uses a laptop computer or tablet computer as an example for explanation; optionally, the laptop computer can be a 2-in-1 laptop.

[0162] In this embodiment of the application, the operating system (OS) of the electronic device can be any type of operating system, for example, it can be Etc. For ease of understanding, this article mainly uses... Let's take an example to illustrate.

[0163] In this embodiment, the electronic device has touch functionality. For example, the electronic device may include a touch device for implementing touch functionality. Optionally, the touch device may include any type of device such as a touch screen, touchpad, gamepad, keyboard, or mouse; this embodiment is not limited thereto. Optionally, the touch device and the electronic device may be an integrated design or a separate design. Taking an integrated design as an example, the touch device may be integrated into the electronic device; for example, the electronic device integrates a touch screen and / or touchpad. Taking a separate design as an example, the touch device and the electronic device may be two completely independent devices; for example, the touch device is connected to the electronic device, and the connection may include a wired connection or a wireless connection. Taking a wired connection as an example, the electronic device may provide an interface for wired connection to the touch device. The interface may be, for example, a Universal Serial Bus (USB) interface or other interfaces. For ease of understanding, this document uses an electronic device integrating a touch screen as an example for explanation.

[0164] For example, please refer to Figure 1, which is a schematic diagram of a display system provided in an embodiment of this application. The display system can be installed in an electronic device, which can be various devices listed above, such as laptops, tablets, etc. As shown in Figure 1, the display system includes a system on a chip (SOC) and a touch screen. It should be understood that Figure 1 only shows some of the components in the display system related to the embodiment of this application. In fact, the display system may include more components than those shown in Figure 1, which are not listed here.

[0165] As shown in Figure 1, the System-on-a-Chip (SOC) can be understood as the nerve center and command center of the display system, responsible for processing various tasks. For example, an SOC may include one or more processors, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, a neural network processing unit (NPU), etc.

[0166] As shown in Figure 1, a touch display screen can include a display panel (DP) and a touch panel (TP). The display panel is used to display information such as images, videos, and text. Optionally, the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. The touch panel supports operation by the user's fingers, stylus, or any suitable object or accessory on or near the touch panel. Optionally, the touch panel can be implemented using any of the following technologies: resistive, capacitive, infrared, and surface acoustic wave; of course, other technologies that may be used in the future are also possible. Taking a touch panel employing capacitive technology as an example, when a user operates the touch panel using a finger, stylus, or any suitable object or accessory, the capacitance on the touch panel changes, generating capacitance data. This capacitance data can be used to calculate the specific operation position (e.g., position coordinates) to accurately respond to the operation. It should be noted that Figure 1 illustrates an example where the display panel is located below the touch panel, and the touch panel is disposed on the surface of the electronic device. However, this embodiment does not limit the positional relationship between the display panel and the touch panel.

[0167] As shown in Figure 1, the touch display screen may include a Touch Panel Integrated Circuit (TPIC). The TPIC is connected to the touch panel and can be understood as the processing center of the touch panel. Taking a touch panel using capacitive technology as an example, the TPIC can be used to collect capacitance data generated on the touch panel. Optionally, it can also perform calculations on the capacitance data, such as calculating the specific operation position (e.g., position coordinates) based on the capacitance data. It should be noted that Figure 1 shows the TPIC located inside the touch display screen as an example. It should be understood that, in order not to obstruct the touch panel and display panel, the TPIC can be placed at the edge of the touch display screen (e.g., a non-display area). Of course, the TPIC can also be located in other positions. For example, if the touch display screen is full-screen, the TPIC can be located behind the touch display screen, or the TPIC can be located outside the touch display screen. In short, the embodiments of this application do not limit the position of the TPIC.

[0168] The following text continues to use Figure 1 as an example to illustrate the touch method provided in the embodiments of this application.

[0169] In Figure 1, the SOC needs to respond to user actions on the touch panel, so communication needs to be established between the TPIC and the SOC for information exchange. One possible approach is that the SOC includes a driver for the touch display, which is used to implement information transmission between the TPIC and the SOC. For ease of understanding, a driver (hereinafter referred to as "driver") will be briefly explained first. A driver is a software program used to enable normal communication between the SOC and other hardware. The SOC may include more than one driver; for example, it may also include hardware such as graphics cards, sound cards, and network cards, which would then have corresponding graphics card drivers, sound card drivers, and network card drivers to enable the graphics card, sound card, and network card to function properly. Alternatively, if other hardware (e.g., mouse, keyboard, gamepad) is connected, the SOC can install the corresponding drivers to enable the other hardware to function properly.

[0170] In some embodiments, the driver for the touch display screen can be a Hardware Interface Device (HID) driver. For example, as shown in Figure 2A, the TPIC and SOC communicate via an HID driver. It should be understood that when the TPIC and SOC transmit information via the HID driver, they need to meet certain protocols, such as the HID standard protocol (HID protocol for short). This protocol can specify the format and content of the transmitted information. Taking the HID protocol's specification that the information transmitted by the TPIC to the SOC is position coordinates as an example, after the TPIC collects the capacitance data on the touch panel, it needs to calculate the position coordinates based on the capacitance data, and then send the position coordinates to the SOC via the HID driver based on the HID protocol. Therefore, the TPIC needs to have a certain computing power to calculate the position coordinates based on the capacitance data. One possible approach is that the TPIC includes a processing unit (not shown in Figure 2A) used to calculate the position coordinates based on the capacitance data. Considering factors such as the area and cost of the touch panel, the processing unit can be a small processing unit or a micro processing unit, such as a micro control unit (MCU). Therefore, the computing power of the processing unit is limited. Once the load is too heavy, it will be unable to calculate the specific position coordinates of the operation, which can easily lead to touch failure.

[0171] Optionally, the electronic device can display the HID driver in a certain way. For example, after the electronic device is powered on, the user can view the HID driver in the electronic device. For example, in response to user operation, the electronic device opens the Device Manager interface, which can display relevant information about the HID driver. For example, please refer to Figure 2B, which is a schematic diagram of the Device Manager interface in the electronic device. As shown in Figure 2B, the Device Manager interface includes a directory, which includes an option for human input devices. Under this option, there is an identifier 201, and optionally, an identifier 202. Identifier 201 is used to indicate the HID driver. For example, identifier 201 can be "I2C HID device". Identifier 202 is used to indicate a touch screen in the electronic device that conforms to the HID standard protocol. It should be noted that the embodiments of this application do not limit the form of identifiers 201 and 202, and they can be various types of text, icons, images, etc.

[0172] In this embodiment of the application, the above-mentioned mode in which the computing power is undertaken by TPIC can be called the Touch Post Process (TPP) mode.

[0173] As mentioned earlier, the TPIC has limited computing power, and excessive workload can lead to touch malfunction. To alleviate the computing burden on the TPIC, one possible approach is to transfer the TPIC's computing power to the SOC, whereby the SOC handles the calculation process from capacitance data to position coordinates. In this way, the TPIC only needs to send the collected capacitance data to the SOC, without needing to calculate position coordinates, thus reducing computing power. However, in this method, the information transmitted by the TPIC to the SOC is capacitance data, not position coordinates, so it cannot be transmitted using the HID driver. One solution is to use a Touch Host Process (THP) driver for the touch display. For example, as shown in Figure 3A, the TPIC and SOC communicate via the THP driver. The difference between the THP driver and the HID driver is that the HID driver supports the HID protocol, which specifies that the transmitted content is position coordinates; the THP driver supports the THP protocol, which specifies that the transmitted content can be capacitance data. Therefore, in Figure 3A, the TPIC can send the collected capacitance data to the SOC via the THP driver based on the THP protocol, and the SOC can calculate the position coordinates based on the capacitance data. In this way, the computing power of TPIC is transferred to SOC, and SOC has powerful computing power, which can improve the accuracy of calculation to a certain extent.

[0174] Optionally, the electronic device can display the THP driver in a certain way. For example, after the electronic device is powered on, the user can view the THP driver in the electronic device. For example, in response to user operation, the electronic device opens the Device Manager interface, which can display relevant information about the THP driver. For example, please refer to Figure 3B, which is a schematic diagram of the Device Manager interface in the electronic device. As shown in Figure 3B, the Device Manager interface includes a directory, which includes an option for human input devices. Under this option, there is an identifier 301, and optionally, an identifier 302. Identifier 301 is used to indicate the THP driver. For example, identifier 301 can be "USB THP device". Identifier 302 is used to indicate a touch screen that conforms to the THP standard protocol. It should be noted that the form of identifiers 301 and 302 is not limited in this embodiment of the application, and they can be various types of text, icons, images, etc.

[0175] In this embodiment of the application, the above-mentioned TPIC computing power transfer mode to SOC can be called the Touch Host Process (THP) mode.

[0176] The above embodiments illustrate two modes: TPP mode and THP mode. TPP mode corresponds to the HID driver, and THP mode corresponds to the THP driver. In the embodiments of this application, the display system may support only TPP mode, only THP mode, or both TPP and THP modes. Taking TPP mode as an example, the display system may include the HID driver but not the THP driver. Taking THP mode as an example, the display system may include the THP driver but not the HID driver. Whether only TPP mode or THP mode is supported, a single driver is used. If this driver malfunctions, touch malfunction will occur. Therefore, in the following embodiments, the display system that supports both TPP and THP modes is used as an example, that is, the display system includes dual drivers, the HID driver and the THP driver. When one driver malfunctions, the other driver can be used for communication, which reduces the probability of touch malfunction compared to the single-driver approach.

[0177] The following description, in conjunction with the accompanying drawings, illustrates the dual-drive touch control scheme provided in the embodiments of this application.

[0178] Please refer to Figure 4A, which is a schematic diagram of a display system provided in an embodiment of this application. The display system can be disposed in an electronic device, which can be various devices listed above, such as laptops and tablets. As shown in Figure 4A, the display system includes a System-on-Chip (SOC) and a touch display screen. Please refer to the previous description of the SOC and touch display screen; for the sake of brevity, they will not be repeated here. As shown in Figure 4A, the SOC includes a first driver and a second driver, both of which are used to implement communication between the SOC and the TPIC.

[0179] In some embodiments, the first driver and the second driver can be the same. For example, both the first driver and the second driver are HID drivers (see the previous section for information on HID drivers); or, both the first driver and the second driver are THP drivers (see the previous description for information on THP drivers). Alternatively, the first driver and the second driver can also be different. For example, the first driver is an HID driver and the second driver is a THP driver; or, the first driver is a THP driver and the second driver is an HID driver. Wherein, the first driver supports a first protocol, and the second driver supports a second protocol. Optionally, the first protocol and the second protocol can be the same or different. For example, when both the first driver and the second driver are HID drivers, both the first protocol and the second protocol are HID protocols (see the previous description for information on HID protocols). Alternatively, when both the first driver and the second driver are THP drivers, both the first protocol and the second protocol are THP protocols (see the previous description for information on THP protocols). Alternatively, when the first driver is a THP driver and the second driver is an HID driver, the first protocol is the THP protocol, and the second protocol is the HID protocol. For ease of explanation, the following embodiments are described using the example of a THP driver and a HID driver.

[0180] Optionally, the electronic device can display the dual drivers in a certain way. For example, after the electronic device is powered on, the user can view the dual drivers in the electronic device. For example, in response to user operation, the electronic device opens the device manager interface, which can display relevant information about the dual drivers. For example, please refer to Figure 4B, which is a schematic diagram of the device manager interface in the electronic device. As shown in Figure 4B, the device manager interface includes a directory, which includes options for human body input devices, and under these options are identifiers 401, 402, 403, and 404. The order of these four identifiers is not limited in this embodiment. Identifier 401 is used to indicate the HID driver. Identifier 402 is used to indicate a touch screen in the electronic device that conforms to the HID standard protocol. Identifier 403 is used to indicate the THP driver. Identifier 404 is used to indicate a touch screen in the electronic device that conforms to the THP standard protocol. It should be understood that the touch screen indicated by identifiers 402 and 404 is the same, that is, the electronic device has only one touch screen, but corresponds to two touch drivers, namely the HID driver and the THP driver.

[0181] The following section continues to use Figure 4A as an example to illustrate the dual-drive touch method provided in the embodiments of this application.

[0182] For example, please refer to Figure 5, which is a flowchart illustrating a touch method provided in an embodiment of this application. This method can be applied to a display system, such as the structure shown in Figure 4A. The display system can be located in an electronic device, which can be one of the devices listed above, such as a laptop or tablet computer. As shown in Figure 5, the process includes:

[0183] S501, TPIC obtains system status information.

[0184] Optionally, the system status information may include at least one of information a to information e. Information a indicates the system currently running on the electronic device. For example, information a may be the identifier, name, etc., of the currently running system. In this embodiment, the electronic device may include more than one system. Taking two systems as an example, such as a first system and a second system, when the electronic device is currently running on the first system, information a indicates the first system; when the electronic device is currently running on the second system, information a indicates the second system. As an example, the first system may be the main operating system, such as the Windows system (Win OS), and the second system may be, for example, a pre-operating system, such as a pre-OS system. The pre-OS system may include: a system entered after the electronic device is powered on but before loading the main operating system, or a system entered after a restart. Optionally, the restart may involve system partitioning, modification of critical system files, or other restarts related to the operating system. As another example, the first system may be a host system, and the second system may be a guest system. The host system may be an operating system running on the hardware of the electronic device, and the guest system can be understood as an operating system running in a virtual machine or container within the electronic device. Information b indicates whether the first driver is abnormal. For example, when the first driver is normal, information b is represented by 1; when the first driver is abnormal, information b is represented by 0. Information c is used to indicate whether the second driver is abnormal. For example, when the second driver is normal, information c is represented by 1; when the second driver is abnormal, information c is represented by 0. Information d is used to indicate the application currently running on the electronic device. For example, information d may include the name of the currently running application. Optionally, the currently running application may include a foreground application and / or a background application. Information e is used to indicate the current operating load of the electronic device. Optionally, the current operating load can be described by at least one of CPU utilization and memory resource utilization. The foregoing has listed several specific pieces of information included in the system status information. It is understood that the system status information may contain more information, which is not limited in the embodiments of this application.

[0185] Optionally, one possible way for the TPIC to obtain system status information is that the TPIC and the SOC can be connected through a third interface, and the TPIC receives the system status information sent by the SOC through the third interface. For example, the third interface can be a general-purpose input / output (GPIO) interface or other interfaces; this embodiment is not limited to this. In this approach, the SOC needs to collect system status information. One possible way is that the SOC includes applications and / or functions for monitoring system status, and these applications and / or functions can collect system status information in real time. Optionally, the applications and / or functions can be system-level applications and / or functions, or they can be third-party applications and / or functions. For example, the applications and / or functions can be monitoring applications, such as mobile phone management applications, PC management applications, etc.

[0186] S502, TPIC determines whether to use the first mode (e.g., THP mode) or the second mode (e.g., TPP mode) based on the system status information. If the first mode is used, execute S503; if the second mode is used, execute S504.

[0187] In this embodiment of the application, S502 may include at least one of the following:

[0188] Method 1: The TPIC uses the first mode when it determines the currently running system is the first system based on system status information; otherwise, it uses the second mode. For example, the system status information includes information 'a', which indicates the currently running system. The TPIC can determine whether the currently running system is the first system based on information 'a'. As mentioned earlier, the first system is the main operating system or host system, and the second system is the pre-operating system or client system. In this embodiment, considering the high touch demand under the main operating system or host system, if the second mode (TPP mode) is used, the TPIC cannot handle the excessive computing power, which could easily lead to touch malfunction. Therefore, under the main operating system or host system, the first mode (i.e., THP mode) is used to reduce the probability of touch malfunction.

[0189] Method 2: TPIC uses the first mode if the first driver is functioning normally based on system status information; otherwise, it uses the second mode. For example, the system status information includes information b, which indicates whether the first driver is malfunctioning. TPIC can determine whether the first driver is malfunctioning based on information b.

[0190] Method 3: If TPIC determines that the second driver is malfunctioning based on system status information, it uses the first mode; otherwise, it uses the second mode. For example, the system status information includes information c, which indicates whether the second driver is malfunctioning. TPIC can determine whether the second driver is malfunctioning based on information c.

[0191] Method 4: Based on system status information, TPIC determines if the currently running application is the first preset application and uses the first mode; otherwise, it uses the second mode. For example, the first preset application could be an application with high touch requirements, such as a drawing application, a game application, or a conferencing application. Considering that if an application has high touch requirements, using the second mode (TPP mode) would overload TPIC with excessive computing power, potentially leading to touch malfunctions, the first mode (THP mode) is used to reduce the probability of touch malfunctions. One possible way for TPIC to determine if the currently running application is the first preset application is as follows: the system status information includes information 'd', which indicates the currently running application. TPIC can determine the currently running application based on information 'd'. Then, TPIC determines whether the currently running application is the first preset application based on the currently running application and the preset application list. For example, if the application identifier of the currently running application exists in the preset application list, it is determined that the currently running application is the first preset application; otherwise, it is determined that the currently running application is not the first preset application. Optionally, the preset application list can be pre-configured.

[0192] Method 5: TPIC determines the current operating load based on system status information. If the current load is less than or equal to a preset load, it uses the first mode; otherwise, it uses the second mode. For example, the system status information includes information 'e', ​​which indicates the current operating load. TPIC determines the current operating load based on information 'e' and compares it with the preset load. As mentioned earlier, in the first mode, the computing power is borne by the SOC. Considering that using the first mode would increase the SOC's load and cause device lag when the SOC load is high, the second mode (where the computing power is borne by TPIC) can be used when the SOC load is high, and the first mode (where the computing power is borne by the SOC) is used when the SOC load is low.

[0193] Optionally, there can be a certain priority order among the methods one through five. For example, the priority order is: Method two / three > Method one > Method five > Method four. Method two and method three can have the same priority. The method with higher priority is used first to determine whether to use the first mode or the second mode. If the specific mode cannot be determined, then the method with lower priority is used for determination. For example, TPIC first uses methods two and three to determine the mode. Suppose that method two determines the first mode (first driver is normal), and method three determines the second mode (second driver is normal), meaning the specific mode cannot be determined. Then, methods one, five, four, etc., can be used for further determination according to the aforementioned priority relationship.

[0194] S503, in the first mode, the TPIC sends first information to the SOC via the first driver. The first information includes first capacitance data, so that the SOC can calculate the first position coordinates based on the first capacitance data. As mentioned above, the first driver is a THP driver, which supports the THP protocol. The THP protocol specifies that the information transmitted by the TPIC to the SOC can be capacitance data. Therefore, if the TPIC uses the first mode, it can send the collected first capacitance data to the SOC via the THP driver.

[0195] Optionally, the TPIC sends the first information to the SOC via the first driver, which may include: the TPIC writing the first information into the first cache, the first information conforming to the THP protocol, and the SOC running the first driver (i.e., the THP driver) to read the first information from the first cache. For example, the first driver includes the address information of the first cache, so the SOC running the first driver can read the first information from the first cache based on the address information.

[0196] In some embodiments, the first information includes one or more fields, and the first field of the one or more fields includes first capacitance data. The first field may be a field specified in the THP protocol for storing capacitance data.

[0197] In other embodiments, the first information may also include other data, such as pressure data. This is because when a user operates on the touchscreen, the TPIC can collect not only the first capacitance data but also other data, such as pressure data. One possible approach is to include a pressure sensor within the touchscreen, which can sense the pressure applied by the user on the touchscreen and send the pressure data to the TPIC. In some scenarios (e.g., drawing scenarios), the SOC needs to respond differently depending on the pressure applied by the user on the touchscreen; for example, thicker lines are drawn when the pressure is greater, and thinner lines are drawn when the pressure is less. Therefore, the TPIC needs to transmit the pressure data to the SOC for response. Thus, the first information also includes pressure data. As an example, please refer to Figure 6A(a), which is a schematic diagram of the first information. As shown in Figure 6A(a), the first information includes the first capacitance data and other data, such as pressure data. It should be noted that pressure data is mainly used as an example here, but other data can also be used, and this application embodiment is not limited to this.

[0198] Optionally, the other data may not need to be included in the first information, but can be sent to the SOC through other means. An exemplary scenario is that the stylus includes a pressure sensor, Bluetooth, etc. When a user operates the stylus on the touchscreen, the pressure sensor in the stylus can sense the pressure data and send it to the SOC via Bluetooth. Therefore, the pressure data is transmitted to the SOC by the stylus via Bluetooth, without the TPIC needing to transmit pressure data to the SOC. Optionally, in this case, to prompt the SOC to receive the pressure data via Bluetooth, one possible approach is that the first information includes first indication information, which instructs the SOC to receive the pressure data via Bluetooth. As an example, please refer to Figure 6A(b), which is another schematic diagram of the first information. As shown in Figure 6A(b), the first information includes first capacitance data and first indication information, which instructs the SOC to receive the pressure data via Bluetooth. It should be noted that this mainly uses pressure data as an example, but other data can also be used, such as angle data, acceleration data, etc. For example, the stylus includes an angle sensor to detect the angle between the stylus and the touchscreen. For example, the stylus includes an accelerometer to detect the stylus's acceleration.

[0199] If we refer to the form of the first information in Figure 6A(a) as the first form, and the form of the first information in Figure 6A(b) as the second form, the electronic device can use either the first or the second form depending on the actual scenario. For example, the first form is used when the user's finger is operating on the touch screen, and the second form is used when a stylus is operating on the touch screen.

[0200] Optionally, in the first mode, the TPIC and SOC communicate via a first driver, which may include: the TPIC and SOC communicating via a first interface, where the first interface corresponds to the first driver. The first interface can be various types of interfaces, such as an inter-integrated circuit (I2C) interface, a serial peripheral interface (SPI), a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a universal serial bus (USB) interface, etc.

[0201] S504, in the second mode, the TPIC sends second information to the SOC via the second driver. This second information includes second position coordinates, which are calculated based on the second capacitance data generated by the touch panel. As mentioned earlier, the second driver is an HID driver, supporting the HID protocol. The HID protocol specifies that the information transmitted by the TPIC to the SOC is position coordinates. Therefore, when the TPIC uses the second mode, it needs to calculate the collected second capacitance data into second position coordinates and then send these coordinates to the SOC via the HID driver.

[0202] Optionally, the TPIC sends second information to the SOC via a second driver. This can include: the TPIC writing the second information into a second cache, the second information conforming to the HID protocol; and the SOC running the second driver (i.e., the HID driver) to read the second information from the second cache. For example, the second driver includes the address information of the second cache, so the SOC running the second driver can read the second information from the second cache based on the address information. Optionally, the second cache is a different cache from the first cache mentioned above.

[0203] In some embodiments, the second information includes one or more fields, and the second field among the one or more fields includes second location coordinates. The second field may be a field specified in the HID protocol for placing location coordinates.

[0204] In other embodiments, the second information may also include other data, such as pressure data. The reason for including pressure data in the second information is explained above and will not be repeated here. As an example, please refer to Figure 6B(a), which is a schematic diagram of the second information. The second information includes second position coordinates and other data, such as pressure data.

[0205] Optionally, the other data may not need to be included in the second information, but can be sent to the SOC through other means. For example, in the case of a stylus, pressure data can be sent to the SOC by the stylus via Bluetooth; please refer to the previous description for the specific principle. Optionally, to prompt the SOC to receive pressure data via Bluetooth, one possible approach is that the second information includes second indication information, which instructs the SOC to receive pressure data via Bluetooth. As an example, please refer to Figure 6B(b), which is another schematic diagram of the second information. The second information includes second position coordinates and also includes second indication information.

[0206] If we refer to the form of the second information in Figure 6B(a) as the first form, and the form of the second information in Figure 6B(b) as the second form, the electronic device can use either the first or the second form depending on the actual scenario. For example, the first form is used when the user's finger is operating on the touch screen, and the second form is used when a stylus is operating on the touch screen.

[0207] Optionally, in the second mode, the TPIC and SOC communicate via a second driver, which may include: the TPIC and SOC communicating via a second interface, where the second interface corresponds to the second driver. The second interface can be various types of interfaces, such as I2C, SPI, PCM, UART, MIPI, GPIO, USB, etc. The second interface can be the same type as the first interface mentioned above, or a different type of interface; for example, the first interface could be a USB interface, and the second interface could be an I2C interface.

[0208] Through the embodiment shown in Figure 5, the TPIC can use either a first mode or a second mode. Regardless of which mode is used, it can switch to another mode when certain conditions are met. For example, please refer to Figure 7, which is a flowchart illustrating a touch method provided in an embodiment of this application. This method can be applied to a display system, such as the structure shown in Figure 4A. The display system can be installed in an electronic device, such as a laptop or tablet computer. As shown in Figure 7, the process includes:

[0209] S701, TPIC uses the first mode. The first mode is the mode that uses the first driver to communicate with the SOC. Please refer to the previous text for details.

[0210] S702, when TPIC determines that the first condition is met, it can switch from the first mode to the second mode.

[0211] In some embodiments, TPIC can determine whether the first condition is met based on system status information. For information on system status information and how TPIC obtains it, please refer to the preceding text; it will not be repeated here.

[0212] Optionally, the first condition may include at least one of the following:

[0213] (1) First driver anomaly. Optionally, first driver anomaly may include: the first driver being deleted, uninstalled, disabled, or invaded by a virus.

[0214] (2) The current system enters the second system. The second system is a system other than the first system. For example, the first system is the main operating system, such as the Windows system, and the second system is the pre-operating system, such as the Pre system; or, the first system is the host system and the second system is the client system.

[0215] (3) The SOC is currently running the second preset application. The second preset application is an application other than the first preset application mentioned above. For information about the first preset application, please refer to the previous description.

[0216] (4) The current operating load of the SOC is greater than the first preset load. As mentioned above, in the first mode, the computing power is borne by the SOC, and in the second mode, the computing power is borne by the TPIC. Therefore, when the SOC load is large, the second mode can be used to reduce the burden on the SOC, and when the SOC load is small, the first mode can be used to reduce the burden on the TPIC.

[0217] (5) A user operation is received, which is used to switch from the first mode to the second mode. As an example, before receiving the user operation, the electronic device may output a prompt message to indicate whether to enter the second mode. The electronic device enters the second mode after receiving the confirmation operation.

[0218] (6) The current operating load of the TPIC is less than the second preset load. As mentioned above, in the first mode, the computing power is borne by the SOC, and in the second mode, the computing power is borne by the TPIC. Therefore, when the TPIC load is large, the first mode can be used to reduce the burden on the TPIC, and when the TPIC load is small, the second mode can be used to reduce the burden on the SOC.

[0219] S703, TPIC uses the second mode.

[0220] In some embodiments, after the electronic device switches to the second mode, it may also output a prompt message to indicate that the electronic device has entered the second mode.

[0221] S704, when TPIC determines that the second condition is met, it can switch from the second mode to the first mode.

[0222] In some embodiments, TPIC can determine whether the second condition is met based on system status information. For information on system status information and how TPIC obtains it, please refer to the preceding text; it will not be repeated here.

[0223] Optionally, the second condition may include at least one of the following:

[0224] (1) The first drive has returned to normal.

[0225] (2) The current system enters the first system.

[0226] (3) The SOC is currently running the first preset application.

[0227] (4) The current operating load of the SOC is less than or equal to the first preset load.

[0228] (5) A user operation is received, which is used to switch from the second mode to the first mode. As an example, before receiving the user operation, the electronic device may output a prompt message to indicate whether to enter the first mode. The electronic device enters the first mode after receiving the confirmation operation.

[0229] (6) The current running load of TPIC is greater than or equal to the second preset load.

[0230] (7) The second driver is abnormal.

[0231] In some embodiments, after the electronic device switches to the first mode, it may also output a prompt message to indicate that the electronic device has entered the first mode.

[0232] Figure 8 is a schematic diagram of an electronic device provided in an embodiment of this application. This figure can be understood as a schematic diagram of the software system of the electronic device. As shown in Figure 8, the software system of the electronic device can adopt a layered architecture, which divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. Of course, in addition to the layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture can also be adopted, etc., which are not limited in this embodiment. This embodiment mainly uses a layered architecture as an example for explanation. As shown in Figure 8, the software system of the electronic device can include four layers, from top to bottom: application layer, service layer, driver layer, and hardware layer. It should be noted that Figure 8 uses a software system with four layers as an example. In actual products, there may be more or fewer layers than in Figure 8, and the name of each layer, the positional relationship between layers, etc., are not limited in this embodiment.

[0233] As shown in Figure 8, the application layer includes various types of applications, such as the first application. The first application can be an application with a writing scenario, such as a note-taking application (e.g., a memo), a drawing application, a meeting application, etc. Of course, the first application can also be other applications, which are not limited in the embodiments of this application.

[0234] As shown in Figure 8, the service layer includes HID service and THP service. HID service connects the first application in the application layer with the HID driver in the driver layer. For example, HID service can send the location coordinates provided by the HID driver to the first application for a response. THP service connects to the THP driver in the driver layer and calculates the location coordinates based on the capacitance data reported by the THP driver. It should be noted that THP service needs to provide the calculated location coordinates to the first application for a response. The communication methods between THP service and the first application can include several types. Method A: THP service connects directly to the first application and directly sends the calculated location coordinates to the first application. Method B: THP service connects to the first application through HID service. For example, THP service sends the calculated location coordinates to HID service, which then sends the location coordinates to the first application. One possible scenario for Method B is that the electronic device is pre-configured with HID service at the factory, and the first application only recognizes the location coordinates transmitted by HID service (where "recognize" can be understood as responding to the location coordinates). If THP service directly sends the location coordinates to the first application, the first application may treat it as unfamiliar information and delete it. Therefore, the THP service needs to send the location coordinates to the HID service, which then forwards them to the first application. As mentioned earlier, in method B, the THP service needs to send the calculated location coordinates to the HID service. Optionally, the THP service sending the location coordinates to the HID service can include: the THP service is directly connected to the HID service and directly sends the location coordinates to the HID service. Alternatively, there is a possibility that the HID service recognizes the location coordinates sent by the HID driver in the driver layer, and the THP service directly sending the location coordinates to the HID service might be treated as unfamiliar information and deleted. Therefore, the electronic device can create a virtual HID. Since the virtual HID is a simulation of the HID driver, the HID service will recognize the location coordinates sent by the virtual HID. Therefore, the THP service can send the location coordinates to the virtual HID, which then sends them to the HID service, so that the HID service can send the location coordinates to the first application.

[0235] As shown in Figure 8, the driver layer includes the HID driver, the virtual HID driver, and the THP driver. The HID driver and THP driver are described previously and will not be repeated here. The virtual HID driver can be understood as a virtual unit of the HID driver, which can connect the THP service and the HID driver. For example, it can provide the location coordinates sent by the THP service to the HID service, so that the HID service can send the location coordinates to the first application for a response.

[0236] As shown in Figure 8, the hardware layer includes a touch display screen. The touch display screen includes a touch panel and a TPIC, as described above, and will not be repeated here.

[0237] The following text continues with Figure 8 as an example to illustrate the dual-drive touch method provided in the embodiments of this application.

[0238] As an example, please refer to Figure 9, which is a flowchart of a touch method provided in an embodiment of this application. This figure can be understood as an information interaction diagram between various modules in the software system shown in Figure 8. As shown in Figure 9, the process may include:

[0239] (1) The TPIC in the touchscreen determines whether to use a first mode (e.g., THP mode) or a second mode (e.g., TPP mode). For example, the TPIC can obtain system status information and determine whether to use the first mode or the second mode based on the system status information. Please refer to the preceding text for information on system status information and the process of determining which mode to use based on the system status information; it will not be repeated here. One possible implementation is as shown in Figure 9, where the TPIC (not shown in Figure 9) can connect to the THP driver through a third interface to obtain system status information from the THP driver through the third interface. For example, the third interface can be a GPIO interface. As an example, the THP driver can obtain system status information from the THP service. Optionally, the THP service can collect system status information itself or from applications and / or functions in the electronic device used to collect system status information. For example, the application and / or function can be called a monitoring application, which is not shown in Figure 9.

[0240] If TPIC determines to use the first mode, the first path in Figure 9 can be used, which is represented by ①. If it determines to use the second mode, the second path in Figure 9 can be used, which is represented by ②.

[0241] (2) In the first mode, the information transmission process using the first path may include: (2.1) TPIC sends first information to the THP driver, the first information including first capacitor data. (2.2) The THP driver sends the first capacitor data to the THP service. (2.3) The THP service calculates the first location coordinates based on the first capacitor data and sends the first location coordinates to the virtual HID driver. (2.4) The virtual HID driver sends the first location coordinates to the HID service. (2.5) The HID service sends the first location coordinates to the first application so that the first application can respond to the first location coordinates.

[0242] (3) In the second mode, the information transmission process using the second path may include: (3.1) TPIC sends second information to the HID driver, the second information including second location coordinates, which are calculated by TPIC based on the second capacitance data. (3.2) The HID driver sends the second location coordinates to the HID service. (3.3) The HID service sends the second location coordinates to the first application so that the first application can respond to the second location coordinates.

[0243] As mentioned above, when a user operates on the touch screen of an electronic device using a stylus, the stylus can sense at least one of the following: pressure data, angle data, acceleration data, etc. The stylus can transmit at least one of the following data to the SOC of the electronic device via Bluetooth.

[0244] For example, please refer to Figure 10, which is another flowchart illustrating a touch method provided in an embodiment of this application. The difference between Figure 10 and Figure 9 is that Figure 10 is applicable to stylus interaction scenarios, where the stylus sends other data, such as pressure data, angle data, acceleration data, etc., to the THP service via Bluetooth. One possible approach is that if the TPIC determines to use the first mode, the first path and the third path in Figure 10 can be used, where the first path is represented by ① and the third path by ③; the third path is used to transmit pressure data, angle data, acceleration data, etc., via Bluetooth. If the second mode is determined to be used, the second path in Figure 10 can be used, where the second path is represented by ②.

[0245] The following describes an electronic device provided by an embodiment of this application. The electronic device may be any of the devices listed above, such as a laptop or tablet computer.

[0246] For example, please refer to Figure 11, which is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in Figure 11, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0247] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the nerve center and command center of the electronic device. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has just used or is repeatedly used. If processor 110 needs to reuse the instruction or data, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of processor 110, and thus improves system efficiency.

[0248] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0249] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0250] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0251] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0252] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.

[0253] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.

[0254] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0255] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0256] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0257] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in conjunction with a tuning switch.

[0258] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G in electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0259] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0260] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the electronic device to communicate with networks and other devices via wireless communication technology.

[0261] The display screen 194 is used to display the application's interface, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device may include one or N display screens 194, where N is a positive integer greater than 1.

[0262] In this embodiment, the display screen 194 may be a touch display screen. The touch display screen includes a touch panel and a TPIC, which are described above. The TPIC supports two modes: a first mode and a second mode. In the first mode, the TPIC communicates with the processor 110 based on a first driver (e.g., a THP driver). In the second mode, the TPIC communicates with the processor 110 based on a second driver (e.g., a HID driver). Taking the first mode as an example, after the TPIC collects the first capacitance data, it sends the first information to the processor 110. The first information is based on a first driver protocol (e.g., a THP protocol) and includes the first capacitance data. The processor 110 determines the first position coordinates based on the first capacitance data and responds based on the first position coordinates (e.g., updating the interface). In the first mode, the TPIC does not need to perform the calculation process from capacitance data to position coordinates, reducing computational power. When the electronic device meets a first condition (e.g., a first driver malfunction), it switches from the first mode to the second mode. After switching to the second mode, the TPIC collects the second capacitance data and obtains the second position coordinates based on the second capacitance data. The TPIC sends second information to the processor 110, which is based on a second driving protocol (e.g., HID protocol) and includes second position coordinates. The processor 110 responds based on these second position coordinates (e.g., updating the interface). In this second mode, the TPIC handles the calculation of the capacitance data to position coordinates, eliminating the need for the processor 110 to calculate the coordinates, thus enabling a faster response.

[0263] The electronic device 100 can perform shooting functions through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor. The ISP is used to process the data fed back by the camera 193.

[0264] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and software code for at least one application program. The data storage area may store data generated during the use of the electronic device (e.g., images, videos, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, general-purpose flash memory, etc.

[0265] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, images, videos, and other files can be saved on the external memory card.

[0266] Electronic devices can implement audio functions such as music playback and recording through audio modules 170, speakers 170A, receivers 170B, microphones 170C, headphone jacks 170D, and application processors.

[0267] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0268] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls and other external playback scenarios through one or more speakers 170A.

[0269] The receiver 170B, also known as a "handpiece," can be one or more, and is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0270] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.

[0271] The 170D headphone jack is used to connect wired headphones.

[0272] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.

[0273] The gyroscope sensor 180B can be used to determine the motion attitude of an electronic device. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization.

[0274] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0275] The magnetic sensor 180D includes a Hall effect sensor. Electronic devices can use the magnetic sensor 180D to detect the opening and closing of a flip cover.

[0276] The 180E accelerometer can detect the magnitude of acceleration in various directions (typically three axes) of electronic devices. When the electronic device is stationary, it can detect the magnitude and direction of gravity.

[0277] The 180F distance sensor is used to measure distance. Electronic devices can measure distance using infrared or laser.

[0278] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device emits infrared light outward through the LED. The electronic device uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the electronic device. When insufficient reflected light is detected, the electronic device can determine that no object is near the electronic device.

[0279] An ambient light sensor 180L is used to detect ambient light levels. Electronic devices can adaptively adjust the brightness of the display screen 194 based on the detected ambient light levels.

[0280] The fingerprint sensor 180H is used to collect fingerprints.

[0281] The 180J temperature sensor is used to detect temperature.

[0282] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K is used to detect touch operations applied to or near it. The touch sensor can then transmit the detected touch operation to the application processor to determine the type of touch event.

[0283] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords.

[0284] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. The electronic device can receive button inputs and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device.

[0285] It is understood that the components shown in Figure 11 do not constitute a specific limitation on the electronic device. The electronic device in embodiments of the present invention may include more or fewer components than those shown in Figure 11. Furthermore, the combination / connection relationships between the components in Figure 11 can also be adjusted and modified.

[0286] Figure 12 is a schematic diagram of another structure of the electronic device provided in an embodiment of this application. The electronic device 1200 can be any of the devices listed above, such as a laptop computer. As shown in Figure 12, the electronic device 1200 may include: one or more processors 1201; one or more memories 1202; a communication interface 1203; and one or more computer programs 1204. The above-mentioned devices can be connected through one or more communication buses 1205. The one or more computer programs 1204 are stored in the memory 1202 and configured to be executed by the one or more processors 1201. The one or more computer programs 1204 include instructions. For example, when the electronic device 1200 is the electronic device mentioned above, the instructions can be used to perform the relevant steps of the electronic device as described in any of the embodiments of Figures 1 to 10 above. The communication interface 1203 is used to realize communication between the electronic device 1200 and other devices, such as a transceiver.

[0287] In the embodiments provided above, the methods provided by the embodiments of this application are described from the perspective of an electronic device (e.g., a laptop computer) as the executing entity. To implement the functions of the methods provided in the embodiments of this application above, the terminal device may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is implemented in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.

[0288] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. 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 the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, 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 can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)). Where there is no conflict, the solutions in the above embodiments can be combined.

[0289] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0290] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.

[0291] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.

[0292] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.

[0293] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope and intent of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and variations.

Claims

1. A touch control method, characterized in that, Applied to a display system, the display system including a system-on-a-chip and a touch display screen, the method includes: The touch screen collects the first capacitance data; The system-on-a-chip receives first information sent by the touch display screen, the first information including the first capacitance data; The on-chip system determines the first position coordinates based on the first capacitance data, and responds based on the first position coordinates; The touch screen collects the second capacitance data; When the touch display screen determines that the display system meets the first condition, it obtains the second position coordinates based on the second capacitance data; The system-on-chip receives second information sent by the touch display screen, the second information including the second position coordinates; The on-chip system responds based on the second position coordinates.

2. The method according to claim 1, characterized in that, The system-on-a-chip includes a first driver and a second driver, both of which are drivers for the touch display screen. The first driver supports the first driver protocol, and the second driver supports the second driver protocol. The system-on-a-chip receiving the first information sent by the touch display screen includes: when the system-on-a-chip is running the first driver, receiving the first information sent by the touch display screen, wherein the first information is based on the first driver protocol; The system-on-a-chip (SoC) receiving second information sent by the touch display screen includes: when the SoC is running the second driver, receiving the second information sent by the touch display screen, wherein the second information is based on the second driver protocol.

3. The method according to claim 2, characterized in that, The first driver is the touch controller process THP driver, and the second driver is the hardware interface device HID driver.

4. The method according to claim 2 or 3, characterized in that, The display system satisfies at least one of the following conditions: The first driver is faulty; The system-on-chip is currently running the second system. The application currently running on the on-chip system is the second preset application; The current operating load of the on-chip system is greater than or equal to the first preset load. The current operating load of the touch screen is less than or equal to the second preset load. The system-on-chip receives a second operation, which instructs a switch from the first driver to the second driver.

5. The method according to any one of claims 2-4, characterized in that, The method further includes: The touch screen collects data from the third capacitor. When the touch display screen determines that the display system meets the second condition, it sends third information to the system on-chip, the third information including the third capacitance data; The on-chip system determines the third position coordinates based on the third capacitor data, and responds based on the third position coordinates.

6. The method according to claim 5, characterized in that, The display system includes at least one of the following conditions: The first driver program has returned to normal. The second driver is malfunctioning; The system-on-chip is currently running the first system. The application currently running on the on-chip system is the first preset application; The current operating load of the on-chip system is less than the first preset load. The current operating load of the touch screen is greater than the second preset load. The system-on-chip receives a first operation, which instructs a switch from the second driver to the first driver.

7. The method according to any one of claims 1-6, characterized in that, The system-on-a-chip (SoC) receiving the first information sent by the touch display screen includes: the SoC receiving the first information through a first interface, wherein the first interface is an SPI interface or a USB interface.

8. The method according to any one of claims 1-7, characterized in that, The system-on-a-chip receives the second information sent by the touch display screen, including: the system-on-a-chip receives the second information through a second interface, the second interface being an I2C interface, an SPI interface, or a USB interface.

9. The method according to any one of claims 1-8, characterized in that, The first information and / or the second information further include first indication information, which instructs the on-chip system to receive other data via a short-range communication module. The other data includes at least one of pressure data, angle data, and acceleration data. The method further includes: The system-on-a-chip receives the other data through the short-range communication module and responds based on the other data.

10. The method according to any one of claims 2-9, characterized in that, The method further includes: The system-on-a-chip controls the first driver to be disabled.

11. The method according to any one of claims 2-10, characterized in that, The method further includes: The touch screen outputs a first prompt message, which indicates that the display system has entered a second mode, which is a mode that implements touch functionality based on the second driver.

12. The method according to any one of claims 2-11, characterized in that, Before obtaining the second position coordinates based on the second capacitance data, the method further includes: The touch screen outputs a second prompt message, which is used to prompt whether to enter the second mode. The second mode is a mode that implements touch function based on the second driver. The touch screen receives a confirmation operation, which indicates confirmation to enter the second mode.

13. The method according to any one of claims 5-12, characterized in that, The method further includes: The touch screen outputs a third prompt message, which indicates that the display system has entered a first mode, which is a mode that implements touch functionality based on the first driver.

14. The method according to any one of claims 5-13, characterized in that, Before sending the third information to the on-chip system, the method further includes: The touch screen outputs a fourth prompt message, which is used to prompt whether to enter the first mode. The first mode is a mode that implements touch function based on the first driver. The touch screen receives a confirmation operation, which is used to indicate confirmation to enter the first mode.

15. The method according to any one of claims 1-14, characterized in that, The touch screen determines that the display system meets a first condition, including: The touch display screen obtains system status information from the system on-chip through a third interface. The system status information is used to indicate at least one of the following: the current running system, the current running application, the current running load, whether the first driver is normal, and whether the second driver is normal. The touch screen determines that the display system meets the first condition based on the system status information.

16. A touch control method, characterized in that, Applied to a system-on-a-chip (SoC) connected to a touch display screen, the method includes: The system-on-a-chip receives first information sent by the touch display screen, the first information including first capacitance data; The on-chip system determines the first position coordinates based on the first capacitance data, and responds based on the first position coordinates; When the on-chip system satisfies the first condition and / or the touch display screen satisfies the second condition, the on-chip system receives second information sent by the touch display screen, the second information including second position coordinates, the second position coordinates being obtained by the touch display screen based on second capacitance data; The on-chip system responds based on the second position coordinates.

17. The method according to claim 16, characterized in that, The system-on-a-chip includes a first driver and a second driver, both of which are drivers for the touch display screen. The first driver supports the first driver protocol, and the second driver supports the second driver protocol. The system-on-a-chip receiving the first information sent by the touch display screen includes: when the system-on-a-chip is running the first driver, receiving the first information sent by the touch display screen, wherein the first information is based on the first driver protocol; The system-on-a-chip (SoC) receiving second information sent by the touch display screen includes: when the SoC is running the second driver, receiving the second information sent by the touch display screen, wherein the second information is based on the second driver.

18. The method according to claim 17, characterized in that, The first driver is the touch controller process THP driver, and the second driver is the hardware interface device HID driver.

19. The method according to claim 17 or 18, characterized in that, The on-chip system satisfies the first condition, including at least one of the following: The first driver is faulty; The system-on-chip is currently running the second system. The application currently running on the on-chip system is the second preset application; The current operating load of the on-chip system is greater than or equal to the first preset load. The system-on-chip receives a second operation, which instructs a switch from the first driver to the second driver.

20. The method according to any one of claims 16-19, characterized in that, The touch display screen satisfies the second condition, including: The current operating load of the touch display screen is less than or equal to the second preset load.

21. A touch control method, characterized in that, Applied to a touch display screen, wherein the touch display screen is connected to a system-on-a-chip, the method includes: The touch screen collects the first capacitance data; The touch display screen sends first information to the system on-chip, the first information including the first capacitance data; The touch screen collects the second capacitance data; When the touch display screen determines that the on-chip system meets the first condition and / or the touch display screen meets the second condition, it obtains the second position coordinates based on the second capacitance data; The touch display screen sends second information to the system-on-a-chip, the second information including the second position coordinates.

22. The method according to claim 21, characterized in that, The touch display screen sends first information to the system on-chip, including: the touch display screen writes the first information into a first cache, the first information is based on a first driver protocol, the first cache is used to read the first information in the first cache when the system on-chip runs a first driver program, and the first driver program supports the first driver protocol; The touch display screen sends second information to the system on-chip, including: the touch display screen writes the second information into a second cache, the second information is based on a second driver protocol, the second cache is used to read the second information in the second cache when the system on-chip runs a second driver program, and the second driver program supports the second driver protocol.

23. The method according to claim 22, characterized in that, The first driver is the touch controller process THP driver, and the second driver is the hardware interface device HID driver.

24. The method according to claim 22 or 23, characterized in that, The on-chip system satisfies the first condition, including at least one of the following: The first driver is faulty; The system-on-chip is currently running the second system. The application currently running on the on-chip system is the second preset application; The current operating load of the on-chip system is greater than or equal to the first preset load. The system-on-chip receives a second operation, which instructs a switch from the first driver to the second driver.

25. The method according to any one of claims 21-24, characterized in that, The touch display screen satisfies the second condition, including: The current operating load of the touch display screen is less than or equal to the second preset load.

26. A system-on-a-chip, characterized in that, include: The processing circuit and the storage medium storing instructions; when the instructions are executed by the processing circuit, they implement the steps of the system-on-a-chip in the method as described in any one of claims 1-15, or implement the method as described in any one of claims 16-20.

27. A touch display screen, characterized in that, include: Touch panel and touch integrated circuit TPIC, The touch panel is used to display the interface; The TPIC is used to perform the step of touching the display screen in the method as described in any one of claims 1-15, or to perform the method as described in any one of claims 21-25.

28. An electronic device, characterized in that, include: The system-on-a-chip as claimed in claim 26, and / or the touch display screen as claimed in claim 27.

29. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 25.

30. A computer program product, characterized in that, The computer program product includes a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1 to 25.

Citation Information

Patent Citations

  • Touch method and related equipment

    CN121165954A

  • OLED (Organic Light Emitting Diode) touch display device

    CN106406622A

  • Touch response method and device, terminal and storage medium

    CN116594522A

  • Display driving integrated circuit, system including the same and display driving method

    US20150309649A1