CN115016666A - Touch processing method, terminal device and storage medium - Google Patents

Touch processing method, terminal device and storage medium Download PDF

Info

Publication number
CN115016666A
CN115016666A CN202111370462.9A CN202111370462A CN115016666A CN 115016666 A CN115016666 A CN 115016666A CN 202111370462 A CN202111370462 A CN 202111370462A CN 115016666 A CN115016666 A CN 115016666A
Authority
CN
China
Prior art keywords
execution environment
environment system
integrated circuit
terminal device
driving unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111370462.9A
Other languages
Chinese (zh)
Other versions
CN115016666B (en
Inventor
刘仕远
付博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111370462.9A priority Critical patent/CN115016666B/en
Priority to CN202310996471.1A priority patent/CN117234351A/en
Publication of CN115016666A publication Critical patent/CN115016666A/en
Application granted granted Critical
Publication of CN115016666B publication Critical patent/CN115016666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application provides a touch processing method, terminal equipment and a storage medium, wherein the method is applied to the terminal equipment, the terminal equipment is provided with an integrated circuit panel, and the method comprises the following steps: sending a reading instruction to an integrated circuit panel in response to a periodic interrupt event sent by the integrated circuit panel of the terminal equipment; the integrated circuit unit (IC unit) used for calculating the coordinate information of the touch operation in the terminal equipment is eliminated, the IC unit is saved, and the cost of the terminal equipment is saved; receiving original data sent by an integrated circuit panel; processing the original data based on a preset THP algorithm library to obtain coordinate information, and responding to a response event result corresponding to the coordinate information; therefore, based on the periodic interrupt events sent by the integrated circuit panel and the deployed THP algorithm library, the coordinate information corresponding to the periodic interrupt events can be obtained, and the response event results corresponding to the coordinate information can be responded.

Description

Touch processing method, terminal device and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a touch processing method, a terminal device, and a storage medium.
Background
Currently, with the development of terminal technology, terminal devices have become important tools in people's lives. In order to facilitate the user to use the terminal device, a terminal device screen is set on the terminal device, and the terminal device screen is, for example, a touch screen.
In the prior art, an Integrated Circuit (IC) unit is disposed in an IC panel of a terminal device screen, and when a user touches the terminal device screen, the IC unit may send an interrupt event; the IC unit may generate coordinate information based on raw data corresponding to the interrupt event; and the terminal equipment responds to the response event corresponding to the coordinate information based on the coordinate information.
However, since the IC unit needs to be provided in the IC panel of the terminal device screen, the cost of the terminal device screen is high, and further the cost of the terminal device is high.
Disclosure of Invention
The embodiment of the application provides a touch processing method, a terminal device and a storage medium, which can reduce the cost of a screen of the terminal device and reduce the cost of the terminal device.
In a first aspect, an embodiment of the present application provides a touch processing method applied to a terminal device, where the terminal device is provided with an integrated circuit panel, and the method includes:
sending a reading instruction to an integrated circuit panel in response to a periodic interrupt event sent by the integrated circuit panel of the terminal equipment, wherein the reading instruction is used for indicating to read original data corresponding to the periodic interrupt event; receiving original data sent by an integrated circuit panel; processing the original data based on a preset THP algorithm library, wherein the THP algorithm library comprises at least one THP algorithm to obtain coordinate information; responding to a response event result corresponding to the coordinate information.
In this way, an integrated circuit unit (IC unit) used for calculating coordinate information of touch operation in the terminal equipment is removed, the IC unit is saved, and the cost of the terminal equipment is saved; the periodic interruption event is sent by an integrated circuit panel of the terminal equipment, and the integrated circuit panel does not need to calculate coordinates; the terminal equipment sends a reading instruction to the integrated circuit panel so as to obtain original data sent by the integrated circuit panel; the THP algorithm library is deployed in the terminal equipment and comprises at least one THP algorithm, and the THP algorithm is used for calculating coordinate information corresponding to the periodic interrupt event, so that the terminal equipment can calculate the coordinate information and respond to a response event result corresponding to the coordinate information. An IC unit for calculating coordinate information does not need to be arranged in a terminal screen, so that the cost of the terminal equipment screen is reduced, and the cost of the terminal equipment is reduced; based on the periodic interrupt event sent by the integrated circuit panel and the deployed THP algorithm library, coordinate information corresponding to the periodic interrupt event can be obtained, and a response event result corresponding to the coordinate information is responded.
In one possible implementation manner, a rich execution environment system and a trusted execution environment system are deployed in the terminal device; in response to a periodic interrupt event issued by an integrated circuit panel of a terminal device, sending a read instruction to the integrated circuit panel, comprising: receiving a periodic interrupt event sent by an integrated circuit panel based on a rich execution environment system, and sending a notification message to a trusted execution environment system based on the rich execution environment system; the notification message is used for indicating to read original data corresponding to the periodic interrupt event; and sending a reading instruction to the integrated circuit panel based on the trusted execution environment system.
Receiving original data sent by an integrated circuit panel, comprising: and receiving the original data sent by the integrated circuit panel based on the trusted execution environment system.
In this way, the terminal device sends a notification message to the trusted execution environment system based on the rich execution environment system, so that the terminal device reads original data corresponding to the periodic interrupt event based on the trusted execution environment system; the integrated circuit panel can not send the original data to the rich execution environment system, and the integrated circuit panel directly sends the original data to the trusted execution environment system, so that the safety of the original data is guaranteed.
In one possible implementation, the rich execution environment system includes a first touch panel driving unit; the trusted execution environment system comprises a second touch panel driving unit; the method for receiving a periodic interrupt event sent by an integrated circuit panel based on a rich execution environment system, sending a notification message to a trusted execution environment system based on the rich execution environment system, and sending a reading instruction to the integrated circuit panel based on the trusted execution environment system includes: receiving a periodic interrupt event sent by an integrated circuit panel based on a first touch panel driving unit, and sending a notification message to a second touch panel driving unit based on the first touch panel driving unit; and sending a reading instruction to the integrated circuit panel based on the second touch panel driving unit.
The method for receiving the original data sent by the integrated circuit panel based on the trusted execution environment system comprises the following steps: and receiving the original data sent by the integrated circuit panel based on the second touch panel driving unit.
Thus, the unit and the module of the rich execution environment system of the terminal equipment are refined, and the unit and the module of the trusted execution environment system of the terminal equipment are refined; after receiving a periodic interrupt event sent by the integrated circuit panel, the first touch panel driving unit of the rich execution environment system can send a notification message to the second touch panel driving unit of the trusted execution environment system, so as to inform the second touch panel driving unit of the trusted execution environment system to read original data of the integrated circuit panel; then, the second touch panel driving unit of the trusted execution environment system directly interacts with the integrated circuit panel, and the second touch panel driving unit of the trusted execution environment system acquires original data of the integrated circuit panel. The original data of the integrated circuit panel can not be sent to any unit and module of the rich execution environment system, and the safety of the original data is guaranteed.
In one possible implementation, the rich execution environment system and the trusted execution environment system communicate based on a common input output interface; the method for receiving a periodic interrupt event sent by an integrated circuit panel based on a rich execution environment system, sending a notification message to a trusted execution environment system based on the rich execution environment system, and sending a reading instruction to the integrated circuit panel based on the trusted execution environment system includes: receiving a periodic interrupt event sent by an integrated circuit panel based on a rich execution environment system, and sending a notification message to a trusted execution environment system through a general input/output interface based on the rich execution environment system; and sending a reading instruction to the integrated circuit panel based on the trusted execution environment system.
Therefore, when the rich execution environment system and the trusted execution environment system communicate based on the general input/output interface, the rich execution environment system sends a notification message to the trusted execution environment system through the general input/output interface, and further informs the trusted execution environment system to read the original data of the integrated circuit panel. And the rich execution environment system and the trusted execution environment system complete information communication based on the input and output interfaces.
In one possible implementation, the rich execution environment system includes a first touch panel driving unit; the trusted execution environment system comprises a driving mapping module and a second touch panel driving unit; the method comprises the steps of receiving a periodic interrupt event sent by an integrated circuit panel based on a rich execution environment system, sending a notification message to a trusted execution environment system through a general input/output interface based on the rich execution environment system, and sending a reading instruction to the integrated circuit panel based on the trusted execution environment system, and comprises the following steps: receiving a periodic interrupt event sent by an integrated circuit panel based on a first touch panel driving unit, and sending a notification message to a driving mapping module through a universal input/output interface based on the first touch panel driving unit; sending a notification message to a second touch panel driving unit based on the driving mapping module; and sending a reading instruction to the integrated circuit panel based on the second touch panel driving unit.
The method for receiving the original data sent by the integrated circuit panel based on the trusted execution environment system comprises the following steps: and receiving the original data sent by the integrated circuit panel based on the second touch panel driving unit.
Therefore, when the rich execution environment system and the trusted execution environment system communicate based on the universal input/output interface, the unit and the module of the rich execution environment system of the terminal equipment are refined, and the unit and the module of the trusted execution environment system of the terminal equipment are refined; after receiving a periodic interrupt event sent by an integrated circuit panel, a first touch panel driving unit of the rich execution environment system can send notification information to a driving mapping module of the trusted execution environment system through a general input/output interface, and then the driving mapping module of the trusted execution environment system sends the notification information to a second touch panel driving unit of the trusted execution environment system, so as to inform the second touch panel driving unit of the trusted execution environment system to read original data of the integrated circuit panel; then, the second touch panel driving unit of the trusted execution environment system directly interacts with the integrated circuit panel, and the second touch panel driving unit of the trusted execution environment system acquires original data of the integrated circuit panel. The original data of the integrated circuit panel can not be sent to any unit and module of the rich execution environment system, and the safety of the original data is guaranteed.
In one possible implementation manner, a THP algorithm library is deployed in the trusted execution environment system; processing the original data based on a preset THP algorithm library to obtain coordinate information, wherein the coordinate information comprises the following steps: and processing the original data according to the THP algorithm library based on the trusted execution environment system to obtain coordinate information.
Thus, based on the above process, the trusted execution environment system obtains the original data directly from the integrated circuit panel; the THP algorithm library is deployed in the trusted execution environment system and comprises at least one THP algorithm, the THP algorithm is used for calculating coordinate information corresponding to the periodic interrupt event, and therefore the terminal equipment can calculate the coordinate information by adopting the THP algorithm based on the trusted execution environment system. The process of calculating the coordinates is executed in the trusted execution environment system, and the safety of coordinate calculation is guaranteed.
In one possible implementation manner, the trusted execution environment system comprises a second touch panel driving unit, and the THP algorithm library is deployed in the second touch panel driving unit; based on a trusted execution environment system, processing the original data according to the THP algorithm library to obtain coordinate information, wherein the coordinate information comprises: and processing the original data according to the THP algorithm library based on the second touch panel driving unit to obtain coordinate information.
In this way, the units and modules of the trusted execution environment system are refined, and the THP algorithm library is deployed in a second touch panel driving unit of the trusted execution environment system; calculating the original data by a second touch panel driving unit to obtain coordinate information; the process of calculating the coordinates is executed in the trusted execution environment system, and the safety of coordinate calculation is guaranteed.
In one possible implementation, the trusted execution environment system includes a trusted user interface module and a trusted application module: responding to a response event result corresponding to the coordinate information, including: transmitting the coordinate information to a trusted user interface module based on a second touch panel driving unit of the trusted execution environment system; determining a response event result corresponding to the coordinate information based on the trusted user interface module, and transmitting the response event result to the trusted application module; responding to the response event result based on the trusted application module.
In this way, since the trusted execution environment system acquires the raw data of the integrated circuit panel, the trusted execution environment system calculates the raw data to obtain the coordinate information, and thus the trusted execution environment system needs to respond to the coordinate information. The unit and the module of the trusted execution environment system are refined, the trusted user interface module of the trusted execution environment system determines a response event result corresponding to the coordinate information, and the trusted application module responds to the response event result. And further, the coordinate calculation and the event response are guaranteed to be executed in a trusted execution environment system of the terminal equipment, and the safety of the coordinate calculation and the safety of the event response are guaranteed.
In one possible implementation manner, before sending the notification message to the trusted execution environment system based on the rich execution environment system, the method further includes: and responding to the invoking instruction, and determining that the terminal equipment invokes the safety interface.
In this way, since the terminal device determines that the security interface is invoked, it can be determined that the rich execution environment system of the terminal device cannot read the raw data of the ic panel, but the trusted execution environment system of the terminal device needs to read the raw data of the ic panel.
In one possible implementation manner, determining that the terminal device invokes the security interface in response to the invoking instruction includes: responding to the calling instruction, calling up a security interface based on the trusted execution environment system, and sending indication information to the rich execution environment system based on the trusted execution environment system; the indication information represents that the terminal equipment invokes the safety interface. Here, "indication information" corresponds to the first indication information and the second indication information in the embodiment.
Therefore, the trusted execution environment system of the terminal device can determine that the trusted execution environment system invokes the security interface, and at the moment, the response event of the screen of the terminal device has higher security requirement; the trusted execution environment system informs the rich execution environment system, and the terminal equipment invokes a security interface at the moment; the rich execution environment system of the terminal device cannot read the raw data of the integrated circuit panel, but needs to read the raw data of the integrated circuit panel by the trusted execution environment system of the terminal device.
In one possible implementation, in response to the call instruction, the invoking the secure interface based on the trusted execution environment system, and sending the indication information to the rich execution environment system based on the trusted execution environment system, includes: in response to the call instruction, calling a trusted user interface module of the trusted execution environment system based on a trusted application module of the trusted execution environment system; based on the trusted application module, sending indication information to a second touch panel driving unit of the trusted execution environment system through the trusted user interface module; and sending indication information to the first touch panel driving unit of the rich execution environment system based on the second touch panel driving unit of the trusted execution environment system.
In this way, the unit and module of the trusted execution environment system are refined, and the unit and module of the rich execution environment system are refined; when the trusted application module of the trusted execution environment system calls the trusted user interface module, determining that the terminal equipment calls the security interface, and further sending indication information to a second touch panel driving unit of the trusted execution environment system by the trusted application module through the trusted user interface module; and informing the first touch panel driving unit of the rich execution environment system by the second touch panel driving unit, and calling up the security interface by the terminal equipment at the moment. Furthermore, the rich execution environment system of the terminal device cannot read the raw data of the ic panel, but the trusted execution environment system of the terminal device needs to read the raw data of the ic panel.
In one possible implementation manner, if the rich execution environment system and the trusted execution environment system communicate based on the general input/output interface, sending the indication information to the first touch panel driving unit of the rich execution environment system based on the second touch panel driving unit of the trusted execution environment system includes:
sending indication information to a driving mapping module of the trusted execution environment system based on a second touch panel driving unit of the trusted execution environment system; and sending indication information to a first touch panel driving unit of the rich execution environment system through a general input/output interface based on a driving mapping module of the trusted execution environment system.
Therefore, when the rich execution environment system and the trusted execution environment system communicate based on the general input/output interface, the trusted execution environment system of the terminal device can determine that the trusted execution environment system invokes the security interface, and at the moment, the request for the response event of the screen of the terminal device is high in security; the trusted execution environment system informs the rich execution environment system through the general input/output interface, and the terminal equipment calls up a safety interface at the moment; the rich execution environment system of the terminal device cannot read the original data of the integrated circuit panel, but needs to read the original data of the integrated circuit panel by the trusted execution environment system of the terminal device.
In one possible implementation manner, a rich execution environment system is deployed in the terminal device; in response to a periodic interrupt event issued by an integrated circuit panel of a terminal device, sending a read instruction to the integrated circuit panel, comprising:
receiving a periodic interrupt event sent by the integrated circuit panel based on the rich execution environment system, and sending a reading instruction to the integrated circuit panel based on the rich execution environment system; receiving original data sent by an integrated circuit panel, comprising: the rich execution environment based system receives raw data sent by the integrated circuit panel.
Therefore, the terminal equipment determines that the terminal equipment invokes the non-safety interface, and the rich execution environment system can read the integrated circuit panel to send the original data. An integrated circuit unit (IC unit) used for calculating coordinate information of touch operation in the terminal equipment is removed, the IC unit is saved, and the cost of the terminal equipment is saved; the integrated circuit panel of the terminal device does not need to calculate coordinates when the integrated circuit panel sends out periodic interrupt events.
In one possible implementation manner, the rich execution environment system comprises a first touch panel driving unit; the method for receiving the periodic interrupt event sent by the integrated circuit panel based on the rich execution environment system and sending a reading instruction to the integrated circuit panel based on the rich execution environment system comprises the following steps: the first touch panel driving unit receives a periodic interrupt event sent by the integrated circuit panel, and the first touch panel driving unit sends a reading instruction to the integrated circuit panel.
The method for receiving the original data sent by the integrated circuit panel based on the rich execution environment system comprises the following steps: the first touch panel driving unit receives original data sent by the integrated circuit panel.
In this way, the elements and modules of the rich execution environment system are refined. Under the condition that the rich execution environment system can read the original data sent by the integrated circuit panel, the first touch panel driving unit of the rich execution environment system interacts with the integrated circuit panel, and then the first touch panel driving unit of the rich execution environment system can read the original data of the integrated circuit panel.
In one possible implementation, a THP algorithm library is deployed in the rich execution environment system; processing the original data based on a preset THP algorithm library to obtain coordinate information, wherein the processing method comprises the following steps: and processing the original data according to the THP algorithm library based on the rich execution environment system to obtain coordinate information.
In this way, the THP algorithm library is deployed in the rich execution environment system, and the rich execution environment system of the terminal device can calculate the coordinate information corresponding to the periodic interrupt event based on the THP algorithm after reading the original data of the integrated circuit panel, so that the terminal device can calculate the coordinate information and respond to the response event result corresponding to the coordinate information. An IC unit for calculating coordinate information is not required to be arranged in a terminal screen, so that the cost of the terminal equipment screen is reduced, and the cost of the terminal equipment is reduced; based on the periodic interrupt event sent by the integrated circuit panel and the deployed THP algorithm library, coordinate information corresponding to the periodic interrupt event can be obtained, and a response event result corresponding to the coordinate information is responded.
In one possible implementation manner, the THP algorithm library is deployed in a first touch panel driving unit of the rich execution environment system; based on a rich execution environment system, processing the original data according to the THP algorithm library to obtain coordinate information, wherein the coordinate information comprises: and processing the original data according to the THP algorithm library based on the first touch panel driving unit to obtain coordinate information.
In this way, the elements and modules of the rich execution environment system are refined. Under the condition that the rich execution environment system can read the original data sent by the integrated circuit panel, the THP algorithm library is deployed in a first touch panel driving unit of the rich execution environment system, and the first touch panel driving unit of the rich execution environment system carries out coordinate calculation.
In one possible implementation, the rich execution environment system includes a user interface module and an application; responding to a response event result corresponding to the coordinate information, including: transmitting the coordinate information to a user interface module based on a first touch panel driving unit of the rich execution environment system; determining a response event result corresponding to the coordinate information based on the user interface module, and transmitting the response event result to the application program; the response event results based on the application.
In this way, the elements and modules of the rich execution environment system are refined. The rich execution environment system may respond to the coordinate information in case the rich execution environment system can read the raw data sent by the ic panel. And determining a response event result corresponding to the coordinate information by the user interface module of the rich execution environment system, and responding the response event result by the application program of the rich execution environment system. At this time, since the terminal device calls up a non-secure interface, the coordinate calculation and the event response can be performed in the rich execution environment system of the terminal device.
In a second aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a processing unit, and the processing unit is configured to implement the method of the first aspect.
In a third aspect, an embodiment of the present application provides a terminal device, including: a display unit, a processor and a memory; wherein the memory is for storing code instructions or a computer program; the display unit is provided with an integrated circuit panel, and the integrated circuit panel is used for sending out periodic interrupt events; the processor is configured to execute the code instructions or the computer program in response to a periodic interrupt event to perform the method performed by the terminal device described in any one of the possible implementations of the first aspect. The integrated circuit panel eliminates an integrated circuit unit for calculating coordinate information corresponding to touch operation.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which a computer program or an instruction is stored, and when the computer program or the instruction runs on a computer, the computer is caused to execute the method performed by the terminal device described in any one of the possible implementation manners of the first aspect.
In a fifth aspect, the present application provides a computer program product including a computer program, which when run on a computer, causes the computer to execute the method performed by the terminal device described in any one of the possible implementation manners of the first aspect.
In a sixth aspect, the present application provides a chip or a chip system, where the chip or the chip system includes at least one processor and a communication interface, where the communication interface and the at least one processor are interconnected by a line, and the at least one processor is configured to execute a computer program or instructions to perform the method performed by the terminal device described in any one of the possible implementation manners of the first aspect. The communication interface in the chip may be an input/output interface, a pin, a circuit, or the like.
In one possible implementation, the chip or chip system described above in this application further comprises at least one memory having instructions stored therein. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or may be a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).
It should be understood that the second aspect to the sixth aspect of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by the aspects and the corresponding possible implementations are similar and will not be described again.
Drawings
Fig. 1 shows a first scene schematic diagram applicable to a touch processing method according to an embodiment of the present application;
fig. 2 shows a second scenario diagram applicable to the touch processing method in the embodiment of the present application;
fig. 3 shows a third scene schematic diagram applicable to the touch processing method in the embodiment of the present application;
fig. 4 shows a scene schematic diagram four applicable to the touch processing method in the embodiment of the present application;
fig. 5 shows a schematic structural diagram of the terminal device 100;
fig. 6 is a block diagram of a software structure of the terminal device 100 according to the embodiment of the present application;
fig. 7 is a signaling diagram of a touch processing method according to an embodiment of the present application;
fig. 8 is a first software structure diagram of a touch processing method according to an embodiment of the present disclosure;
fig. 9 is a schematic trigger diagram of a touch processing method according to an embodiment of the present disclosure;
fig. 10 is a first schematic interface diagram of a touch processing method according to an embodiment of the present disclosure;
fig. 11 is a second schematic interface diagram of a touch processing method according to an embodiment of the present application;
fig. 12 is a second software structure diagram of a touch processing method according to an embodiment of the present application;
fig. 13 is a third software structure diagram of a touch processing method according to an embodiment of the present disclosure;
fig. 14 is a signaling diagram of another touch processing method according to an embodiment of the present application;
fig. 15 is a software structure diagram of another touch processing method according to an embodiment of the present disclosure;
fig. 16 is a schematic trigger diagram of another touch processing method according to an embodiment of the present disclosure;
fig. 17 is a signaling diagram of another touch processing method according to an embodiment of the present application;
fig. 18 is an interface schematic diagram of another touch processing method according to an embodiment of the present application;
fig. 19 is a signaling diagram of another touch processing method according to an embodiment of the present application;
fig. 20 is a schematic structural diagram of a chip according to an embodiment of the present disclosure;
fig. 21 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the embodiments of the present application, the terms "first", "second", and the like are used to distinguish the same or similar items having substantially the same function and effect. For example, the first chip and the second chip are only used for distinguishing different chips, and the order of the chips is not limited. Those skilled in the art will appreciate that the terms "first," "second," and the like do not denote any order or importance, but rather the terms "first," "second," and the like do not denote any order or importance.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
Terminal devices have become indispensable tools in people's lives. A plurality of payment applications may be provided in the terminal device. For example, applications of bank cards of different banks are set in the terminal device. The user can then complete the transaction process using the payment application in the terminal device.
In addition, in order to facilitate the user to use the payment application, the terminal device may set one payment application as a default payment application, and further, when the terminal device performs the payment transaction each time, the terminal device may invoke the default payment application to complete the transaction process.
However, in the above process, since the terminal device can configure a plurality of payment applications, the terminal device sets one payment application of the plurality of payment applications as a default payment application; if the default payment application of the terminal device is not matched with the payment device, the user needs to manually reset the default payment application in the terminal device, and then the transaction process between the terminal device and the payment device can be completed. Causing delays in the transaction process and reducing the user experience.
In view of this, according to the touch processing method provided by the embodiment of the application, the default payment application can be automatically set, so that the payment transaction process can be rapidly completed between the terminal device and the payment device, and the user experience is improved.
Fig. 1 shows a scene schematic diagram applicable to the touch processing method in the embodiment of the present application. As shown in fig. 1, the terminal device 100 is configured to display an interactive interface, which is an interface with a high requirement on security.
For example, fig. 2 shows a scene diagram applicable to the touch processing method according to the embodiment of the present application. As shown in fig. 2, the interactive interface is a password input interface in a transaction scenario.
For another example, fig. 3 shows a scene diagram applicable to the touch processing method according to the embodiment of the present application. As shown in fig. 3, the interactive interface is a function selection interface, which prompts the user with "authorization request information" indicating authorization information for obtaining the user, such as the user's identification number, identification card photo, user address, etc.; and confirming whether the terminal equipment can acquire the authorization information of the user or not by the user. Or, the authorization request message indicates that a two-dimensional checkout code needs to be displayed to the user.
For another example, fig. 4 shows a scene diagram applicable to the touch processing method according to the embodiment of the present application. As shown in fig. 4, the interactive interface is a function selection interface, which prompts "please input authorization information" to the user, the prompt indicates the authorization information that the user needs to input into the terminal device, and the authorization information is, for example, the user's identification number, the user's address, etc.
The terminal device 100 may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), and the like. The terminal device may be a mobile phone (mobile phone), a smart television, a wearable device, a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like. The embodiment of the present application does not limit the specific technology and the specific device form adopted by the terminal device.
The payment device 200 may be a pos (point of sales) machine, or other payment transaction machine that can execute the present embodiment. The embodiment of the present application does not limit the specific technology and the specific device form adopted by the payment device.
A plurality of payment applications may be set in the terminal device 100; for example, a plurality of different payment applications may be installed in the terminal device 100, or data of a plurality of different payment applications may be deployed in the terminal device 100. Payment applications, including but not limited to: bank card, digital RMB card. Other transaction applications may also be provided in the terminal device 100. Other transaction applications, including but not limited to: access cards, traffic cards.
The terminal device 100 has a function of displaying an interface.
In order to better understand the embodiments of the present application, the following describes a structure of a terminal device according to the embodiments of the present application:
fig. 5 shows a schematic configuration diagram of the terminal device 100. The terminal device 100 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, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the terminal device 100. In other embodiments of the present application, terminal device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it may be called from memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (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.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the terminal device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may 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 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to implement the function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 with peripheral devices such as the display screen 194, the camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a display screen serial interface (DSI), and the like. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the photographing function of the terminal device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the terminal device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
Wherein, the display screen 194 is provided with an ic (integrated circuit) panel; in the present application, an IC panel is used to automatically generate periodic interrupt events; the IC unit for calculating coordinate information of touch operation is removed from the display screen 194.
The USB interface 130 is an interface conforming to the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device 100, and may also be used to transmit data between the terminal device 100 and a peripheral device. And the method can also be used for connecting a headset and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is an illustrative description, and does not limit the structure of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the terminal device 100. The charging management module 140 may also supply power to the terminal device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. The antennas in terminal device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied on the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication applied to the terminal device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the terminal device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, among others. GNSS may include Global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), and/or Satellite Based Augmentation System (SBAS).
The terminal device 100 implements a display function by the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the terminal device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device 100 can implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.
The ISP is used to process the data fed back by the camera 193. For example, when a user takes a picture, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, an optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and converting the electric signal into an image visible to the naked eye. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the terminal device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the terminal device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record video in a plurality of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can implement applications such as intelligent recognition of the terminal device 100, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, a phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The terminal device 100 may implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into a sound signal. The terminal device 100 can listen to music through the speaker 170A, or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the terminal device 100 answers a call or voice information, it is possible to answer a voice by bringing the receiver 170B close to the human ear.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure from the change in the capacitance. When a touch operation is applied to the display screen 194, the terminal device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The terminal device 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but have different touch operation intensities may correspond to different operation instructions.
The gyro sensor 180B may be used to determine the motion attitude of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the terminal device 100, calculates the distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the terminal device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates an altitude from the barometric pressure measured by the barometric pressure sensor 180C, and assists in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The terminal device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the terminal device 100 is a folder, the terminal device 100 may detect the opening and closing of the folder according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E can detect the magnitude of acceleration of the terminal device 100 in various directions (generally, three axes). The magnitude and direction of gravity can be detected when the terminal device 100 is stationary. The method can also be used for identifying the attitude of the terminal equipment, and is applied to application programs such as horizontal and vertical screen switching, pedometers and the like.
A distance sensor 180F for measuring a distance. The terminal device 100 may measure the distance by infrared or laser. In some embodiments, the scene is photographed and the terminal device 100 may range using the distance sensor 180F to achieve fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light to the outside through the light emitting diode. The terminal device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100. The terminal device 100 can utilize the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. The terminal device 100 may adaptively adjust the brightness of the display screen 194 according to the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket, in order to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The terminal device 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 executes a temperature processing policy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the terminal device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the terminal device 100 heats the battery 142 when the temperature is below another threshold to avoid abnormal shutdown of the terminal device 100 due to low temperature. In other embodiments, when the temperature is lower than a further threshold, the terminal device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the terminal device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human voice vibrating a bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signals acquired by the bone conduction sensor 180M, and the heart rate detection function is realized.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The terminal device 100 may receive a key input, and generate a key signal input related to user setting and function control of the terminal device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the terminal device 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The terminal device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the terminal device 100 employs esims, namely: an embedded SIM card. The eSIM card may be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
The software system of the terminal device 100 may adopt a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, a cloud architecture, or the like. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the terminal device 100.
Fig. 6 is a block diagram of a software structure of the terminal device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 6, the application package may include camera, calendar, phone, map, phone, music, settings, mailbox, video, social, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 6, the application framework layers may include a window manager, content provider, resource manager, view system, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, touch the screen, drag the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to notify download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal device vibrates, an indicator light flickers, and the like.
The Android runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver. The terminal equipment is provided with a Rich Execution Environment (REE) system and a Trusted Execution Environment (TEE) system; wherein, the TEE system runs in the kernel layer of the terminal equipment.
The following describes an exemplary workflow of software and hardware of the terminal device 100 in conjunction with a scenario where an application is started or an interface is switched in the application.
When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including information such as touch coordinates, touch strength and a time stamp of the touch operation). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a mailbox application icon as an example, the mailbox application calls an interface of an application framework layer to start the mailbox application, and then starts a display driver by calling a kernel layer to display a functional interface of the mailbox application.
The following describes in detail an operation process of application processing and a display process of an interface in the application processing process provided in an embodiment of the present application with reference to the drawings. It should be noted that "at … …" in the embodiment of the present application may be at the instant of a certain condition, or may be within a certain period of time after a certain condition occurs, and the embodiment of the present application is not particularly limited to this.
Fig. 7 is a signaling diagram of a touch processing method according to an embodiment of the present disclosure. As shown in fig. 7, the method may include:
and S701, generating a periodic interrupt event by an IC panel of the terminal equipment.
Illustratively, the terminal device is deployed with a REE system and a TEE system. Among them, the REE system may also be referred to as a non-secure world, and the TEE system may also be referred to as a secure world. Operating an operating system closely related to a user in the REE system; and operating the technology for ensuring the system safety in the TEE system. The non-secure world does not mean that the operating system or software running in the REE system is malicious, but rather that the REE system is less secure than the TEE system.
Fig. 8 is a first software structure diagram of a touch processing method according to an embodiment of the present application, and as shown in fig. 8, a first Touch Panel (TP) driving unit and a User Interface (UI) module are deployed in an REE system of a terminal device; a plurality of Applications (APP) run in the REE system of the terminal device. A second TP driving unit and a Trusted User Interface (TUI) module are deployed in a TEE system of the terminal equipment; a plurality of Trusted Application (TA) modules are run in the TEE system of the terminal device.
The terminal device has a screen (i.e., a terminal device screen); for example, the terminal device screen is a capacitive touch screen. An IC panel is arranged below a screen of the terminal equipment, and the IC panel is used for generating periodic interrupt events. In the present embodiment, the IC unit for calculating coordinate information of touch operation is removed; but rather employs the IC panel to automatically generate periodic interrupt events.
The IC panel of the terminal device automatically generates periodic interrupt events, wherein the frequency of the periodic interrupt events is 60 Hertz (HZ) or 90 HZ. Therefore, the user does not need to actively touch the screen of the terminal device to generate the interrupt event, but the IC panel of the terminal device automatically generates the periodic interrupt event.
S702, the terminal device receives a periodic interrupt event sent by the IC panel based on a first TP driving unit of the REE system.
Exemplarily, in the present embodiment, in order to save IC units, IC units for a user to calculate coordinate information of touch operations are removed, so that an IC panel of a terminal device screen does not have a capability of calculating coordinate information. The IC panel of the terminal device screen transmits the periodic interrupt event to the first TP driving unit of the REE system of the terminal device.
And S703, the terminal device sends a notification message to a second TP driving unit of the TEE system of the terminal device based on the first TP driving unit of the REE system, wherein the notification message is used for indicating to read the original data corresponding to the periodic interrupt event.
Exemplarily, fig. 9 is a schematic trigger diagram of a touch processing method according to an embodiment of the present application, and as shown in fig. 9, in step S901, when an interface displayed on a screen of a terminal device is an interface with a high requirement on security, a TA module of a TEE system in the terminal device invokes a TUI module of the TEE system. Step S902, a TA module of a TEE system in the terminal equipment sends first indication information to a TUI module of the TEE system, wherein the first indication information represents that the terminal equipment calls a safety interface, namely the first indication information represents that the TUI module of the TEE system is called. Step S903, the TUI module of the TEE system in the terminal equipment sends first indication information to a second TP driving unit of the TEE system, and the first indication information represents that the terminal equipment has started up a safety interface. Step S904, the second TP driver unit in the TEE system in the terminal device sends the first indication information to the first TP driver unit of the REE system, and the first indication information represents that the terminal device has invoked the security interface. Wherein step S701 is executed after each step shown in fig. 9.
According to the above process, both the REE system and the TEE system know that the terminal device has invoked the security interface, so that after step S702, in order to ensure the security of the coordinate calculation, the first TP driving unit of the REE system of the terminal device does not acquire the original data corresponding to the periodic interrupt event, and the first TP driving unit of the REE system does not process the coordinate information. In order to ensure the safety of coordinate calculation, the calculation processing of the coordinate information is completed in a TEE system of the terminal equipment.
The terminal equipment sends a notification message to a second TP driving unit of the TEE system according to the received periodic interrupt event based on a first TP driving unit of the REE system, further informs the second TP driving unit that an IC panel of a terminal equipment screen automatically generates the periodic interrupt event, and informs the second TP driving unit that original data corresponding to the periodic interrupt event needs to be read.
And S704, the terminal device sends a reading instruction to the IC panel based on a second TP driving unit of the TEE system, wherein the reading instruction is used for indicating to read the original data corresponding to the periodic interrupt event.
Illustratively, the second TP driver unit of the TEE system of the terminal device directly sends a read command to the IC panel according to the notification message, and further reads the original data corresponding to the periodic interrupt event.
S705, the terminal device sends the original data corresponding to the periodic interrupt event to a second TP driving unit of the TEE system based on the IC panel.
Illustratively, the IC panel of the terminal device screen transmits the raw data to the second TP driving unit of the TEE system in response to the read instruction. In this step, since the security of the data needs to be guaranteed, the IC panel of the terminal device screen does not transmit the original data to the REE system, but directly transmits the original data to the second TP driving unit of the TEE system.
Wherein the raw data includes a volume value.
S706, the terminal device processes the original data based on a second TP driving unit of the TEE system to obtain coordinate information; wherein, a THP (touch screen host processing) algorithm library is deployed in the second TP drive unit, and the THP algorithm library includes at least one THP algorithm.
Exemplarily, a THP algorithm library is deployed in a second TP driver unit of the TEE system; the THP algorithm library comprises at least one THP algorithm; and the THP algorithm in the THP algorithm library is used for calculating and processing the original data to obtain the coordinate information.
Therefore, the second TP driving unit of the TEE system of the terminal device adopts any algorithm in the THP algorithm library to calculate and process the acquired capacity value to obtain coordinate information.
The method comprises the steps that an IC panel automatically generates a periodic interrupt event, and if touch operation occurs on a screen of the terminal equipment, original data acquired by a second TP driving unit of a TEE system of the terminal equipment are not null values; the second TP driving unit of the TEE system of the terminal equipment can adopt any algorithm in the THP algorithm library to calculate and process the acquired capacity value to obtain coordinate information; the coordinate information represents coordinate data corresponding to the touch operation. If the touch operation does not occur on the screen of the terminal equipment, the original data acquired by a second TP driving unit of a TEE system of the terminal equipment is a null value; the second TP driving unit of the TEE system of the terminal device may use any algorithm in the THP algorithm library to perform calculation processing on the obtained volume value, and may not obtain the coordinate information, or the second TP driving unit of the TEE system of the terminal device may not perform calculation processing on the obtained null value.
And S707, the terminal equipment feeds the coordinate information back to a TUI module of the TEE system based on a second TP driving unit of the TEE system.
Exemplarily, after obtaining the coordinate information corresponding to the periodic interrupt event, the TEE system needs to respond to a response result corresponding to the coordinate information. Further, the second TP driving unit of the TEE system of the terminal device transmits the coordinate information to the TUI module of the TEE system.
And S708, the terminal equipment determines a response event result corresponding to the coordinate information based on a TUI module of the TEE system.
Illustratively, the TUI module of the TEE system of the terminal device may determine the corresponding response event result from the coordinate information.
In an example, as shown in fig. 2, fig. 10 is a first interface schematic diagram of a touch processing method provided in an embodiment of the present application, and as shown in fig. 10, (a) in fig. 10, a terminal device displays a password input interface, where the password input interface includes a plurality of key options. By adopting the steps of this embodiment, the terminal device displays the password corresponding to the key option selected by the user in the password input interface, or the terminal device displays the password corresponding to the key option selected by the user in an encrypted manner in the password input interface, as shown in (b) of fig. 10. It is known that the "response event result" is a password corresponding to the key option selected by the user.
In another example, as shown in fig. 3, fig. 11 is a second interface schematic diagram of a touch processing method provided in the embodiment of the present application, as shown in fig. 11, (a) in fig. 11, a terminal device displays an interactive interface as a function selection interface, where the function selection interface prompts "please input authorization information" to a user, and the prompt information represents authorization information that needs to be input into the terminal device by the user; after the user inputs the authorization information to the terminal device, the terminal device displays the address "B cell C unit" input by the user on the function selection interface, as shown in (B) of fig. 11. It is known that the "response event result" is the display of the authorization information entered by the user.
And S709, the terminal equipment sends the response event result corresponding to the coordinate information to a TA (timing advance) module of the TEE system for response based on the TUI module of the TEE system.
Illustratively, the TUI module of the TEE system feeds back the response event result to the TA module of the TEE system, which executes the response event result.
In one example, in the case shown in fig. 10, the TUI module of the TEE system of the terminal device determines that the "response event result" is to display the password corresponding to the key option selected by the user, and the TA module of the TEE system of the terminal device responds to the response event.
As another example, in the case shown in fig. 11, the TUI module of the TEE system of the terminal device determines that the "response event result" shows the authorization information input by the user, and the TA module of the TEE system of the terminal device responds to the response event.
Fig. 12 is a second software structure diagram of a touch processing method according to an embodiment of the present application, and as shown in fig. 12, an integrated circuit unit (IC unit) is disposed in an integrated circuit panel (IC panel) of a terminal device, and the IC unit is used for calculating coordinate information corresponding to a touch operation. The screen of the terminal equipment is provided with an integrated circuit, the integrated circuit is provided with an IC panel, and an IC unit is arranged on the IC panel and used for calculating coordinate information corresponding to touch operation. The terminal device is provided with a Liquid Crystal Display (LCD) standby awakening module and a charger state module, wherein the terminal device is provided with a charge indicator lamp, and the charge indicator lamp represents the charging state of the terminal device.
The terminal device has a kernel layer (kenrel), a Hardware Abstraction Layer (HAL), an application framework layer (framework), and a plurality of Applications (APP).
The kernel driver of the kernel layer is divided into a platform driver and a device driver. The platform driver is in butt joint with other modules, for example, the platform driver is in butt joint with an LCD standby awakening module and a charger state module respectively; and the platform driver encapsulates the functions to be realized into callback functions and provides the callback functions for the device driver to realize the callback functions. The platform driver includes a pin operation module, a callback function, a message processing queue, an interrupt processing, a file node platform deviation (platform dev), a data reporting input deviation (input dev), an input/output control (IOCTRL) Misc deviation (Misc dev), and the like. The pin operation module includes general purpose input/output/rule (GPIO/rule), inter-integrated circuit (IIC)/Serial Peripheral Interface (SPI) offset (dev), and the like. As shown in fig. 12, a message processing queue is added, and the message processing queue is used to implement a command (hammand) message processing mechanism to avoid an exception caused by issuing an instruction at the same time. The device driving comprises coordinate processing, standby awakening, initialization, characteristic switching, production line function and the like; the device driver has a function of coordinate processing, a function of initialization, and the like; the device driver may implement the basic functions of the device according to the callback function.
The hardware abstraction layer includes a hardware abstraction layer interface definition language (HIDL) service (service), a touch process (APTOUCH _ demon), and the like. The HIDL Service is configured with a false touch prevention algorithm.
The application framework layer includes input controllers. Each APP includes setting (setting), Iaware, Man Machine Interface (MMI)/running test (running test), and the like.
Fig. 13 is a third software structure diagram of a touch processing method according to an embodiment of the present application, where as shown in fig. 13, a screen of a terminal device is provided with an integrated circuit, and the integrated circuit has an integrated circuit panel (IC panel); an integrated circuit unit (IC unit) for calculating coordinate information corresponding to a touch operation is removed from an IC panel of a terminal device. The terminal device is provided with a Liquid Crystal Display (LCD) standby awakening module and a charger state module, wherein the terminal device is provided with a charge indicator lamp, and the charge indicator lamp represents the charging state of the terminal device. The terminal device has a kernel layer, a hardware abstraction layer, an application framework layer, and a plurality of Applications (APPs).
The kernel layer has a kernel DRIVER, a TOUCH DRIVER (TOUCH _ DRIVER), a device DRIVER, and a pin operation. The touch driver includes interrupt processing, a communication interface, and the like. Pin operations include general purpose input output/rules (GPIO/rules), integrated circuit bus (IIC)/Serial Peripheral Interface (SPI) skew (dev), and so on. The interrupt handling is configured with a getframe function.
The kernel layer also has a Misc dev (Misc dev) configured with input/output control (iocrl) of an afehll function, a file node platform devi (platform dev), a data reporting input devi (input dev), an iocrl Misc dev configured with a daemon (demon), and so on.
The kernel driver provides the basic capabilities of the kernel, and callback functions, device drivers, pin operations, etc. are provided to the hardware abstraction layer calls through IOCTRL. The kernel layer can also realize communication and interrupt processing interfaces by device driving. The kernel layer provides a message channel and transmits the instruction sent by the external module to the IOCTRL Misc dev configured with a daemon process (demamon); the external module is, for example, an LCD standby wake-up module, a charger status module. The SPI communication interface and the interrupt handling function are packaged in the kernel layer. The device drivers of the core layer are used to implement functional logic for the HAL.
The hardware abstraction layer includes a hardware abstraction layer interface definition language (HIDL) service (service), a touch process (APTOUCH _ demon), an algorithm, and the like. The touch process (APTOUCH _ demon) is used to implement: logarithmic singular value (Log save), acquire coordinates, Dmd dimensional measurement interface, acquire frame/raw coordinate data, Binder, uevent/list, and the like. The algorithm comprises a THP algorithm library and a false touch prevention algorithm; the algorithm also includes device drivers including coordinate processing, standby wakeup, initialization, feature switching, line functions, etc.
The touch process (APTOUCH _ DEMON) is connected with a device driver of the hardware abstraction layer, a kernel driver of the kernel layer and an algorithm of the hardware abstraction layer. And the touch process (APTOUCH _ DEMON) provides the received instruction to a device driver of the hardware abstraction layer in a callback function mode for implementation. The touch process (apt _ demon) may also transfer the obtained frame to an algorithm of the hardware abstraction layer, and the obtained coordinate information is transferred to a kernel driver of the kernel layer.
The application framework layer includes input manager (input manager). Each application includes setting (setting), Iaware, Man Machine Interface (MMI)/running test (running test), and the like.
In this embodiment, with the software structure shown in fig. 13, an IC unit for calculating coordinate information corresponding to a touch operation is removed from an IC panel of a terminal device; deploying a THP algorithm library in a hardware abstraction layer, wherein the THP algorithm library comprises at least one THP algorithm; the THP algorithm in the THP algorithm library is used for calculating and processing the original data of the IC panel to obtain coordinate information.
In the embodiment, an IC unit used for calculating coordinate information of touch operation in the terminal equipment is removed, so that the IC unit is saved, and the cost of the terminal equipment is saved; the terminal equipment is provided with an REE system and a TEE system; the terminal equipment screen is provided with an IC panel, the IC panel generates periodic interrupt events, and the IC panel transmits the periodic interrupt events to a first TP driving unit of an REE system; because both the REE system and the TEE system know that the terminal equipment calls up a safety interface, in order to ensure the safety of coordinate calculation, the first TP driving unit of the REE system of the terminal equipment cannot acquire the original data corresponding to the periodic interruption event, and the first TP driving unit of the REE system does not process the coordinate information; the first TP driving unit informs a second TP driving unit of the TEE system to acquire original data in the IC panel; in the embodiment, the IC panel does not send the original data to the REE system, so that the safety of the data is ensured; because the THP algorithm library is deployed in the second TP driving unit, the second TP driving unit of the TEE system can calculate the coordinate information corresponding to the original data, the TUI module of the TEE system determines the response event result corresponding to the coordinate information, and the TA module of the TEE system responds to the response event result. In the embodiment, an IC unit for calculating the coordinate information does not need to be arranged in the terminal screen, so that the cost of the terminal equipment screen is reduced, and the cost of the terminal equipment is reduced; because both the REE system and the TEE system know that the terminal equipment has called up a safety interface, a first TP driving unit of the REE system of the terminal equipment cannot acquire original data corresponding to a periodic interruption event, the first TP driving unit of the REE system does not process coordinate information, a second TP driving unit of the TEE system directly acquires the original data of an IC panel of a screen of the terminal equipment, and the original data cannot be transmitted to the TEE system through the REE system, so that the safety of the data is ensured. The second TP driving unit of the TEE system calculates the coordinate information, and the TEE system responds to the corresponding response event result, so that the response event is ensured not to be acquired by the REE system, and the response safety of the response event is ensured.
Fig. 14 is a signaling diagram of another touch processing method according to an embodiment of the present disclosure. As shown in fig. 14, the method may include:
s1401, the IC panel of the terminal device generates a periodic interrupt event.
Illustratively, the terminal devices are deployed with a REE system and a TEE system. Among them, the REE system may also be referred to as a non-secure world, and the TEE system may also be referred to as a secure world. Operating an operating system closely related to a user in the REE system; and operating the technology for ensuring the system safety in the TEE system. The non-secure world does not mean that the operating system or software running in the REE system is malicious, but that the security of the REE system is less than that of the TEE system.
Fig. 15 is a software structure diagram of another touch processing method according to an embodiment of the present application, and as shown in fig. 15, a first TP driver unit and a User Interface (UI) module are deployed in an REE system of a terminal device; a plurality of APPs are run in the REE system of the terminal device. A driving mapping module, a second TP driving unit and a TUI module are deployed in a TEE system of the terminal equipment; a plurality of TA modules are operated in the TEE system of the terminal device.
A general-purpose input/output (GPIO) interface is provided between a first TP driving unit of the REE system of the terminal device and a driving mapping module of the TEE system. GPIO is a hardware channel. The GPIO provides at least one pin for information transmission between the first TP driver unit of the REE system and the driver mapping module of the TEE system. The GPIO may control the GPIO output and input through software.
The terminal device has a screen (i.e., a terminal device screen); for example, the terminal device screen is a capacitive touch screen. An IC panel is arranged below the screen of the terminal equipment, and the IC panel is used for generating periodic interrupt events. In the present embodiment, the IC unit for calculating coordinate information of touch operation is removed; but rather employs the IC panel to automatically generate periodic interrupt events.
The IC panel of the terminal equipment automatically generates periodic interrupt events, wherein the occurrence frequency of the periodic interrupt events is 60(HZ) or 90 HZ. Therefore, the user does not need to actively touch the screen of the terminal device to generate the interrupt event, but the IC panel of the terminal device automatically generates the periodic interrupt event.
S1402, the terminal device receives the periodic interrupt event from the IC panel based on the first TP driving unit of the REE system.
Exemplarily, in the present embodiment, in order to save IC units, IC units for a user to calculate coordinate information of touch operations are removed, so that an IC panel of a terminal device screen does not have a capability of calculating coordinate information. The IC panel of the terminal device screen transmits the periodic interrupt event to the first TP driving unit of the REE system of the terminal device.
And S1403, the terminal device sends a notification message to a driving mapping module of the TEE system of the terminal device through a GPIO (general purpose input/output) based on the first TP driving unit of the REE system, wherein the notification message is used for indicating to read original data corresponding to the periodic interrupt event.
Exemplarily, fig. 16 is a schematic triggering diagram of another touch processing method provided in the embodiment of the present application, and as shown in fig. 16, in step S1601, when an interface displayed on a screen of a terminal device is an interface with a high requirement on security, a TA module of a TEE system in the terminal device invokes a TUI module of the TEE system. Step S1602, the TA module of the TEE system in the terminal equipment sends second indication information to the TUI module of the TEE system, and the second indication information represents that the terminal equipment calls a safety interface, namely the second indication information represents that the TUI module of the TEE system is called. Step S1603, the TUI module of the TEE system in the terminal device sends second indication information to the second TP driver unit of the TEE system, where the second indication information indicates that the terminal device has invoked the security interface. Step 1604, a second TP driving unit of the TEE system in the terminal device sends second indication information to the driving mapping module of the TEE system, and the second indication information represents that the terminal device has invoked the security interface. Step S1605, the driving mapping module of the TEE system in the terminal device sends the second indication information to the first TP driving unit of the REE system through the GPIO, and the second indication information represents that the terminal device has invoked the security interface. Wherein step S1401 is executed after each step shown in fig. 16.
According to the above process, both the REE system and the TEE system know that the terminal device has invoked the security interface, so that after step S1402, in order to ensure the security of the coordinate calculation, the first TP driving unit of the REE system of the terminal device does not acquire the original data corresponding to the periodic interrupt event, and the first TP driving unit of the REE system does not process the coordinate information. In order to ensure the safety of coordinate calculation, the calculation processing of the coordinate information is completed in the TEE system of the terminal equipment.
The terminal device sends a notification message to a driving mapping module of the TEE system through a GPIO (general purpose input/output) based on a first TP driving unit of the REE system, so that the driving mapping module is notified that an IC (integrated circuit) panel of a terminal device screen automatically generates a periodic interrupt event, and the driving mapping module is notified that a second TP driving unit is required to read original data corresponding to the periodic interrupt event.
S1404, the terminal equipment sends a notification message to a second TP driving unit of the TEE system based on a driving mapping module of the TEE system; the notification message is used for indicating to read original data corresponding to the periodic interrupt event.
Illustratively, the driving mapping module of the TEE system sends the received notification message to the second TP driving unit of the TEE system, and further informs the second TP driving unit that the IC panel of the screen of the terminal device generates the periodic interrupt event, and informs the second TP driving unit that the original data corresponding to the periodic interrupt event needs to be read.
And S1405, the terminal device sends a reading instruction to the IC panel based on a second TP driving unit of the TEE system, wherein the reading instruction is used for indicating to read original data corresponding to the periodic interrupt event.
Illustratively, the second TP driver unit of the TEE system of the terminal device directly sends a read instruction to the instruction according to the notification message, and then reads the original data corresponding to the periodic interrupt event.
And S1406, the terminal equipment sends the original data corresponding to the periodic interrupt event to a second TP driving unit of the TEE system based on the IC panel.
Illustratively, the IC panel of the terminal device screen transmits the raw data to the second TP driving unit of the TEE system in response to the read instruction. In this step, since the security of the data needs to be guaranteed, the IC panel of the terminal device screen does not transmit the original data to the REE system, but directly transmits the original data to the second TP driving unit of the TEE system.
Wherein the raw data includes a volume value.
S1407, the terminal device processes the original data based on a second TP driving unit of the TEE system to obtain coordinate information; and a THP algorithm library is deployed in the second TP drive unit, and comprises at least one THP algorithm.
Exemplarily, a THP algorithm library is deployed in a second TP driver unit of the TEE system; the THP algorithm library comprises at least one THP algorithm; and the THP algorithm in the THP algorithm library is used for calculating and processing the original data to obtain coordinate information.
Therefore, the second TP driving unit of the TEE system of the terminal device adopts any algorithm in the THP algorithm library to calculate and process the acquired capacity value to obtain coordinate information.
The IC panel automatically generates a periodic interrupt event, and if touch operation occurs on a screen of the terminal equipment, the original data acquired by a second TP driving unit of a TEE system of the terminal equipment is not a null value; the second TP driving unit of the TEE system of the terminal equipment can adopt any algorithm in the THP algorithm library to calculate and process the acquired capacity value to obtain coordinate information; the coordinate information represents coordinate data corresponding to the touch operation. If the touch operation does not occur on the screen of the terminal equipment, the original data acquired by a second TP driving unit of a TEE system of the terminal equipment is a null value; the second TP driving unit of the TEE system of the terminal device may use any algorithm in the THP algorithm library to perform calculation processing on the obtained volume value, and may not obtain the coordinate information, or the second TP driving unit of the TEE system of the terminal device may not perform calculation processing on the obtained null value.
And S1408, feeding the coordinate information back to the TUI module of the TEE system by the terminal equipment based on the second TP driving unit of the TEE system.
Exemplarily, after obtaining the coordinate information corresponding to the periodic interrupt event, a response result corresponding to the response coordinate information of the TEE system is required. Further, the second TP driver unit of the TEE system of the terminal device transmits the coordinate information to the TUI module of the TEE system.
S1409, the terminal equipment determines the response event result corresponding to the coordinate information based on the TUI module of the TEE system.
Illustratively, the TUI module of the TEE system of the terminal device may determine the corresponding response event result from the coordinate information.
Reference may be made to fig. 10-11 for a description of the results of the response event.
And S1410, the terminal equipment sends the response event result corresponding to the coordinate information to a TA (timing advance) module of the TEE system for response based on the TUI module of the TEE system.
Illustratively, the TUI module of the TEE system feeds back the response event results to the TA module of the TEE system, which executes the response event results.
In the embodiment, an IC unit used for calculating coordinate information of touch operation in the terminal equipment is removed, so that the IC unit is saved, and the cost of the terminal equipment is saved; the terminal equipment is provided with an REE system and a TEE system; the terminal equipment screen is provided with an IC panel, the IC panel generates periodic interrupt events, and the IC panel transmits the periodic interrupt events to a first TP driving unit of an REE system; because both the REE system and the TEE system know that the terminal equipment calls up a safety interface, in order to ensure the safety of coordinate calculation, the first TP driving unit of the REE system of the terminal equipment cannot acquire the original data corresponding to the periodic interruption event, and the first TP driving unit of the REE system does not process the coordinate information; the first TP driving unit sends a notification message to a driving mapping module of the TEE system through the GPIO, and then the driving mapping module of the TEE system notifies a second TP driving unit of the TEE system to acquire original data in the IC panel; in the embodiment, the IC panel does not send the original data to the REE system, so that the safety of the data is ensured; because the THP algorithm library is deployed in the second TP driving unit, the second TP driving unit of the TEE system can calculate the coordinate information corresponding to the original data, the TUI module of the TEE system determines the response event result corresponding to the coordinate information, and the TA module of the TEE system responds to the response event result. In the embodiment, an IC unit for calculating the coordinate information does not need to be arranged in the terminal screen, so that the cost of the terminal equipment screen is reduced, and the cost of the terminal equipment is reduced; because both the REE system and the TEE system know that the terminal equipment has called up a safety interface, a first TP driving unit of the REE system of the terminal equipment cannot acquire original data corresponding to a periodic interrupt event, and the first TP driving unit of the REE system does not process coordinate information, but the first TP driving unit of the REE system sends a notification message to a driving mapping module of the TEE system through a GPIO (general purpose input/output) so that the driving mapping module of the TEE system informs a second TP driving unit of the TEE system that the original data of an IC (integrated circuit) panel need to be read; the second TP driving unit of the TEE system directly acquires the original data of the IC panel of the screen of the terminal equipment, and the original data cannot be transmitted to the TEE system through the REE system, so that the safety of the data is ensured. The second TP driving unit of the TEE system calculates the coordinate information, and the TEE system responds to the corresponding response event result, so that the response event is ensured not to be acquired by the REE system, and the response safety of the response event is ensured.
Fig. 17 is a signaling diagram of another touch processing method according to an embodiment of the present application. As shown in fig. 17, the method may include:
s1701, the IC panel of the terminal device generates a periodic interrupt event.
Illustratively, the terminal device is deployed with a REE system and a TEE system. Among them, the REE system may also be referred to as a non-secure world, and the TEE system may also be referred to as a secure world. Operating an operating system closely related to a user in the REE system; and operating the technology for ensuring the system safety in the TEE system. The non-secure world does not mean that the operating system or software running in the REE system is malicious, but rather that the REE system is less secure than the TEE system.
The present embodiment can employ the software configuration diagrams of fig. 8 and 13. Alternatively, the present embodiment may employ a software configuration diagram of 15.
The terminal device has a screen (i.e., a terminal device screen); for example, the terminal device screen is a capacitive touch screen. An IC panel is arranged below the screen of the terminal equipment, and the IC panel is used for generating periodic interrupt events. In the present embodiment, the IC unit for calculating the coordinate information of the touch operation is removed; but instead employs the IC panel to automatically generate periodic interrupt events.
The IC panel of the terminal equipment automatically generates periodic interrupt events, wherein the frequency of the periodic interrupt events is 60HZ or 90 HZ. Therefore, the user does not need to actively touch the screen of the terminal device to generate the interrupt event, but the IC panel of the terminal device automatically generates the periodic interrupt event.
S1702, the terminal device receives a periodic interrupt event from the IC panel based on the first TP driving unit of the REE system.
Exemplarily, in the present embodiment, in order to save IC units, IC units for a user to calculate coordinate information of touch operations are removed, so that an IC panel of a terminal device screen does not have a capability of calculating coordinate information. The IC panel of the terminal device screen transmits the periodic interrupt event to the first TP driving unit of the REE system of the terminal device.
S1703, the terminal device sends a read instruction to the IC panel based on the first TP driving unit of the REE system, where the read instruction is used to instruct to read the original data corresponding to the periodic interrupt event.
For example, in this embodiment, the REE system and the TEE system do not receive the first indication information shown in fig. 9, or the REE system and the TEE system receive the second indication information shown in fig. 16; thus, the REE and TEE systems determine that the terminal device invokes the non-secure interface.
Thus, after step 1702, the first TP driver unit of the REE system may acquire the raw data corresponding to the periodic interrupt event, and the first TP driver unit of the REE system may perform the processing of the coordinate information.
The first TP driver unit of the REE system of the terminal device sends a read instruction to the IC panel according to the periodic interrupt event, and further reads the original data corresponding to the periodic interrupt event.
S1704, the terminal device sends the original data corresponding to the periodic interrupt event to a first TP driving unit of the REE system based on the IC panel.
Illustratively, the IC panel of the terminal device screen transmits the original data to the first TP driving unit of the REE system in response to the reading instruction.
Wherein the raw data includes a capacitance value.
S1705, the terminal device processes the original data based on a first TP driving unit of the REE system to obtain coordinate information; the first TP driving unit is provided with a THP algorithm library, and the THP algorithm library comprises at least one THP algorithm.
Exemplarily, a THP algorithm library is deployed in a first TP driver unit of the REE system; the THP algorithm library comprises at least one algorithm; and the algorithm in the THP algorithm library is used for calculating and processing the original data to obtain the coordinate information.
And a first TP driving unit of the REE system of the terminal equipment calculates and processes the acquired original data by adopting any algorithm in the THP algorithm library to obtain coordinate information.
The method comprises the steps that an IC panel automatically generates a periodic interrupt event, and if touch operation occurs on a screen of terminal equipment, original data acquired by a first TP driving unit of an REE system of the terminal equipment are not null values; a first TP driving unit of an REE system of the terminal equipment can adopt any algorithm in a THP algorithm library to calculate and process the acquired capacity value to obtain coordinate information; the coordinate information represents coordinate data corresponding to the touch operation. If no touch operation occurs on the screen of the terminal equipment, the original data acquired by a first TP driving unit of an REE system of the terminal equipment is null; the first TP driving unit of the REE system of the terminal device may use any algorithm in the THP algorithm library to perform calculation processing on the obtained volume value, and may not obtain coordinate information, or the first TP driving unit of the REE system of the terminal device may not perform calculation processing on the obtained null value.
And S1706, the terminal device feeds the coordinate information back to the UI module of the REE system based on the first TP driving unit of the REE system.
Exemplarily, after obtaining the coordinate information corresponding to the periodic interruption event, a response result corresponding to the response coordinate information of the REE system is required. Further, the first TP driving unit of the REE system of the terminal device transmits the coordinate information to the UI module of the REE system.
S1707, the terminal device determines a response event result corresponding to the coordinate information based on the UI module of the REE system.
Illustratively, the UI module of the REE system of the terminal device may determine a corresponding response event result according to the coordinate information.
In an example, fig. 18 is an interface schematic diagram of another touch processing method provided in the embodiment of the present application, and as shown in fig. 18, a chat interface is provided, where the interface has a low requirement on security, and by adopting the steps of the embodiment, the terminal device displays data corresponding to the key option selected by the user in the chat interface.
And S1708, the terminal equipment sends the response event result corresponding to the coordinate information to the APP of the REE system for response based on the UI module of the REE system.
Illustratively, the UI module of the REE system feeds back the response event result to the APP of the REE system, and the response event result is executed by the responding APP.
In the embodiment, an IC unit used for calculating coordinate information of touch operation in the terminal equipment is removed, so that the IC unit is saved, and the cost of the terminal equipment is saved; the terminal equipment is provided with an REE system and a TEE system; the terminal equipment screen is provided with an IC panel, the IC panel generates periodic interrupt events, and the IC panel transmits the periodic interrupt events to a first TP driving unit of an REE system; the REE system determines that the terminal equipment calls the non-safety interface, so that the first TP driving unit of the REE system can acquire the original data corresponding to the periodic interrupt event, and the first TP driving unit of the REE system can process the coordinate information; a first TP driving unit of the REE system acquires original data of the IC panel; since the THP algorithm library is deployed in the first TP driver unit, the first TP driver unit of the REE system can calculate the coordinate information corresponding to the original data, and then the UI module of the REE system determines the corresponding response event result, and the APP of the REE system responds to the response event result. In the embodiment, an IC unit for calculating the coordinate information does not need to be arranged in the terminal screen, so that the cost of the terminal equipment screen is reduced, and the cost of the terminal equipment is reduced; because the REE system and the determined terminal device call the non-secure interface, the first TP driving unit of the REE system can acquire the original data corresponding to the periodic interrupt event, the first TP driving unit of the REE system can process the coordinate information, and the REE system can respond to the corresponding response event result.
Fig. 19 is a signaling diagram of another touch processing method according to an embodiment of the present application. As shown in fig. 19, the method may include:
s1901, in response to a periodic interrupt event sent by an integrated circuit panel of the terminal device, sending a read instruction to the integrated circuit panel, where the read instruction is used to instruct to read original data corresponding to the periodic interrupt event.
For an exemplary aspect, the solution of the present embodiment may refer to any one of the software structure diagram and the hardware structure diagram.
The terminal device has a screen (i.e., a terminal device screen); for example, the terminal device screen is a capacitive touch screen. An IC panel is arranged below the screen of the terminal equipment, and the IC panel is used for generating periodic interrupt events. In the present embodiment, the IC unit for calculating coordinate information of touch operation is removed; but rather employs the IC panel to automatically generate periodic interrupt events.
The IC panel of the terminal device automatically generates periodic interrupt events, wherein the frequency of the periodic interrupt events is 60 Hertz (HZ) or 90 HZ. Therefore, the user does not need to actively touch the screen of the terminal device to generate the interrupt event, but the IC panel of the terminal device automatically generates the periodic interrupt event.
The IC panel of the terminal equipment transmits the periodic interrupt event to a processor of the terminal equipment; the processor of the terminal device can send a reading instruction to the integrated circuit panel, and then the original data corresponding to the periodic interrupt event is read.
S1902, receiving the original data sent by the integrated circuit panel.
Illustratively, a processor of the terminal device receives raw data transmitted by the integrated circuit panel; wherein the raw data includes a volume value.
In the present embodiment, it is not limited whether the raw data is read by the TEE system of the terminal device or the raw data is read by the REE system of the terminal device.
S1903, processing the original data based on a preset THP algorithm library, wherein the THP algorithm library comprises at least one THP algorithm, and obtaining coordinate information.
Illustratively, a THP algorithm library is deployed in a processor of the terminal equipment; the THP algorithm library comprises at least one THP algorithm; and the THP algorithm in the THP algorithm library is used for calculating and processing the original data to obtain the coordinate information.
Therefore, the processor of the terminal device can adopt any algorithm in the THP algorithm library to calculate and process the acquired capacity value to obtain the coordinate information.
S1904, a response event result corresponding to the coordinate information is responded.
Illustratively, the terminal device responds to a response event result corresponding to the coordinate information.
And if the TEE system of the terminal equipment executes reading of the original data and calculation of the coordinate information, responding a response event result corresponding to the coordinate information by the TEE system of the terminal equipment. And if the REE system of the terminal equipment executes reading of the original data and calculation of the coordinate information, responding a response event result corresponding to the coordinate information by the REE system of the terminal equipment.
In the embodiment, an integrated circuit unit (IC unit) used for calculating coordinate information of touch operation in the terminal equipment is removed, so that the IC unit is saved, and the cost of the terminal equipment is saved; the periodic interruption event is sent by an integrated circuit panel of the terminal equipment, and the integrated circuit panel does not need to calculate coordinates; the terminal equipment sends a reading instruction to the integrated circuit panel so as to obtain original data sent by the integrated circuit panel; the THP algorithm library is deployed in the terminal equipment and comprises at least one THP algorithm, the THP algorithm is used for calculating coordinate information corresponding to the periodic interrupt event, and then the terminal equipment can calculate the coordinate information and respond to a response event result corresponding to the coordinate information. An IC unit for calculating coordinate information is not required to be arranged in a terminal screen, so that the cost of the terminal equipment screen is reduced, and the cost of the terminal equipment is reduced; based on the periodic interrupt event sent by the integrated circuit panel and the deployed THP algorithm library, coordinate information corresponding to the periodic interrupt event can be obtained, and a response event result corresponding to the coordinate information is responded.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the present application is capable of being implemented in hardware or a combination of hardware and computer software for performing the exemplary method steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, functional modules of the device communication method apparatus may be divided according to the above method examples, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
Fig. 20 is a schematic structural diagram of a chip according to an embodiment of the present application. The chip 2000 includes one or more (including two) processors 2001, communication lines 2002, communication interfaces 2003, and memory 2004.
In some implementations, the memory 2004 stores the following elements: an executable module or a data structure, or a subset thereof, or an expanded set thereof.
The method described in the embodiments of the present application may be applied to the processor 2001, or implemented by the processor 2001. The processor 2001 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the method executed by the terminal device may be implemented by an integrated logic circuit of hardware in the processor 2001 or by instructions in the form of software. The processor 2001 may be a general-purpose processor (e.g., a microprocessor or a conventional processor), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an FPGA (field-programmable gate array) or other programmable logic device, discrete gate, transistor logic device, or discrete hardware component, and the processor 2001 may implement or perform the methods, steps, and logic blocks disclosed herein.
The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium mature in the field, such as a random access memory, a read-only memory, a programmable read-only memory, or a charged erasable programmable memory (EEPROM). The storage medium is located in the memory 2004, and the processor 2001 reads the information in the memory 2004 and, in conjunction with its hardware, performs the steps of the method described above.
The processor 2001, memory 2004, and communication interface 2003 may communicate over a communication line 2002.
Fig. 21 is a schematic structural diagram of a terminal device according to an embodiment of the present application, and as shown in fig. 21, the terminal device 2100 includes the chip and the display unit. The display unit is provided with an integrated circuit panel, and the integrated circuit panel is used for sending out periodic interrupt events. The integrated circuit panel eliminates an integrated circuit unit for calculating coordinate information corresponding to touch operation.
In the above embodiments, the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be written in the memory in advance, or may be downloaded in the form of software and installed in the memory.
Embodiments of the present application also provide a computer program product comprising one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.) manner. DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), etc.
The embodiment of the application also provides a computer readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include both computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another. A storage medium may be any target medium that can be accessed by a computer.
As one possible design, the computer-readable medium may include a compact disk read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disk storage; the computer readable medium may include a disk memory or other disk storage device. Also, any connecting line may also be properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
Combinations of the above should also be included within the scope of computer-readable media. The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A touch processing method is applied to a terminal device, the terminal device is provided with an integrated circuit panel, and the method comprises the following steps:
sending a reading instruction to an integrated circuit panel in response to a periodic interruption event sent by the integrated circuit panel of the terminal equipment, wherein the reading instruction is used for indicating to read original data corresponding to the periodic interruption event;
receiving the original data sent by the integrated circuit panel;
processing the original data based on a preset THP algorithm library, wherein the THP algorithm library comprises at least one THP algorithm to obtain coordinate information;
responding to a response event result corresponding to the coordinate information.
2. The method according to claim 1, wherein a rich execution environment system and a trusted execution environment system are deployed in the terminal device; in response to a periodic interrupt event issued by an integrated circuit panel of a terminal device, sending a read instruction to the integrated circuit panel, comprising:
receiving a periodic interrupt event issued by the integrated circuit panel based on the rich execution environment system, and sending a notification message to the trusted execution environment system based on the rich execution environment system; the notification message is used for indicating to read original data corresponding to a periodic interrupt event;
sending the read instruction to the integrated circuit panel based on the trusted execution environment system;
receiving the original data sent by the integrated circuit panel, including: and receiving the original data sent by the integrated circuit panel based on the trusted execution environment system.
3. The method of claim 2, wherein the rich execution environment system comprises a first touch panel drive unit; the trusted execution environment system comprises a second touch panel driving unit;
based on the rich execution environment system receiving a periodic interrupt event issued by the integrated circuit panel and based on the rich execution environment system sending a notification message to the trusted execution environment system, sending the read instruction to the integrated circuit panel based on the trusted execution environment system, comprising:
receiving a periodic interrupt event sent by the integrated circuit panel based on the first touch panel driving unit, and sending the notification message to the second touch panel driving unit based on the first touch panel driving unit;
sending the reading instruction to the integrated circuit panel based on the second touch panel driving unit;
receiving raw data sent by the integrated circuit panel based on the trusted execution environment system, comprising: and receiving the original data sent by the integrated circuit panel based on the second touch panel driving unit.
4. The method in accordance with claim 2, wherein the rich execution environment system and the trusted execution environment system communicate based on a general purpose input output interface; based on the rich execution environment system receiving a periodic interrupt event issued by the integrated circuit panel and based on the rich execution environment system sending a notification message to the trusted execution environment system, based on the trusted execution environment system sending the read instruction to the integrated circuit panel, comprising:
receiving a periodic interrupt event issued by the integrated circuit panel based on the rich execution environment system, and sending the notification message to the trusted execution environment system through the general input output interface based on the rich execution environment system;
sending the read instruction to the integrated circuit panel based on the trusted execution environment system.
5. The method of claim 4, wherein the rich execution environment system comprises a first touch panel drive unit; the trusted execution environment system comprises a driving mapping module and a second touch panel driving unit;
receiving a periodic interrupt event issued by the integrated circuit panel based on the rich execution environment system, sending the notification message to the trusted execution environment system through the general input output interface based on the rich execution environment system, and sending the read instruction to the integrated circuit panel based on the trusted execution environment system, including:
receiving a periodic interrupt event sent by the integrated circuit panel based on the first touch panel driving unit, and sending the notification message to the driving mapping module through the general input/output interface based on the first touch panel driving unit;
sending the notification message to the second touch panel driving unit based on the driving mapping module;
sending the reading instruction to the integrated circuit panel based on the second touch panel driving unit;
receiving raw data sent by the integrated circuit panel based on the trusted execution environment system, comprising: and receiving the original data sent by the integrated circuit panel based on the second touch panel driving unit.
6. The method of any of claims 2-5, wherein the THP algorithm library is deployed in the trusted execution environment system; processing the original data based on a preset THP algorithm library to obtain coordinate information, wherein the processing comprises the following steps:
and processing the original data according to the THP algorithm library based on the trusted execution environment system to obtain coordinate information.
7. The method of claim 6, wherein the trusted execution environment system comprises a second touch panel driver unit, the THP algorithm library being deployed in the second touch panel driver unit; processing the original data according to the THP algorithm library based on the trusted execution environment system to obtain coordinate information, wherein the processing comprises the following steps:
and processing the original data according to the THP algorithm library based on the second touch panel driving unit to obtain coordinate information.
8. The method of any of claims 2-7, wherein the trusted execution environment system comprises a trusted user interface module and a trusted application module: responding to a response event result corresponding to the coordinate information, including:
transmitting the coordinate information to the trusted user interface module based on a second touch panel driving unit of the trusted execution environment system;
determining a response event result corresponding to the coordinate information based on the trusted user interface module, and transmitting the response event result to the trusted application module;
responding to the response event result based on the trusted application module.
9. The method of any of claims 2-8, further comprising, prior to sending a notification message to the trusted execution environment system based on the rich execution environment system:
and responding to the calling instruction, and determining that the terminal equipment calls up the safety interface.
10. The method of claim 9, wherein determining that the terminal device invokes a security interface in response to the invocation instruction comprises:
in response to a call instruction, calling up a secure interface based on the trusted execution environment system, and sending indication information to the rich execution environment system based on the trusted execution environment system; and the indication information represents that the terminal equipment invokes a safety interface.
11. The method of claim 10, wherein invoking a secure interface based on the trusted execution environment system and sending an indication to the rich execution environment system based on the trusted execution environment system in response to a call instruction comprises:
in response to a call instruction, calling a trusted user interface module of the trusted execution environment system based on a trusted application module of the trusted execution environment system;
based on the trusted application module, sending the indication information to a second touch panel driving unit of the trusted execution environment system through the trusted user interface module;
and sending the indication information to a first touch panel driving unit of the rich execution environment system based on a second touch panel driving unit of the trusted execution environment system.
12. The method of claim 10, wherein if the rich execution environment system and the trusted execution environment system communicate based on a general purpose input output interface, sending the indication information to a first touch panel driver unit of the rich execution environment system based on a second touch panel driver unit of the trusted execution environment system comprises:
sending the indication information to a driving mapping module of the trusted execution environment system based on a second touch panel driving unit of the trusted execution environment system;
and sending the indication information to a first touch panel driving unit of the rich execution environment system through the general input/output interface based on a driving mapping module of the trusted execution environment system.
13. The method according to claim 1, wherein a rich execution environment system is deployed in the terminal device; in response to a periodic interrupt event issued by an integrated circuit panel of a terminal device, sending a read instruction to the integrated circuit panel, comprising:
receiving a periodic interrupt event issued by the integrated circuit panel based on the rich execution environment system, and sending the reading instruction to the integrated circuit panel based on the rich execution environment system;
receiving the original data sent by the integrated circuit panel, including: and receiving the original data sent by the integrated circuit panel based on the rich execution environment system.
14. The method of claim 13, wherein the rich execution environment system comprises a first touch panel driving unit; receiving a periodic interrupt event issued by the integrated circuit panel based on the rich execution environment system, and sending the read instruction to the integrated circuit panel based on the rich execution environment system, including:
receiving a periodic interrupt event sent by the integrated circuit panel based on the first touch panel driving unit, and sending the reading instruction to the integrated circuit panel based on the first touch panel driving unit;
receiving raw data sent by the integrated circuit panel based on the rich execution environment system, wherein the raw data comprises: and receiving original data sent by the integrated circuit panel based on the first touch panel driving unit.
15. The method according to claim 13 or 14, wherein the THP algorithm library is deployed in the rich execution environment system; the processing of the original data based on the preset THP algorithm library to obtain coordinate information comprises the following steps:
and processing the original data according to the THP algorithm library based on the rich execution environment system to obtain coordinate information.
16. The method of claim 15, wherein the THP algorithm library is deployed in a first touch panel drive unit of the rich execution environment system; based on the rich execution environment system, processing the original data according to the THP algorithm library to obtain coordinate information, wherein the coordinate information comprises:
and processing the original data according to the THP algorithm library based on the first touch panel driving unit to obtain coordinate information.
17. The method of any of claims 13-16, wherein the rich execution environment system comprises a user interface module and an application; responding to a response event result corresponding to the coordinate information, including:
transmitting the coordinate information to the user interface module based on a first touch panel driving unit of the rich execution environment system;
determining a response event result corresponding to the coordinate information based on the user interface module, and transmitting the response event result to the application program;
responding to an event result based on the application program response.
18. A terminal device, comprising: means for performing the steps of the method of any one of claims 1-17.
19. A terminal device, comprising: a display unit, a memory, and a processor;
wherein the memory is for storing a computer program; the display unit is provided with the integrated circuit panel, and the integrated circuit panel is used for sending out periodic interrupt events; the processor is configured to execute the computer program in response to the periodic interrupt event to perform the method performed by the terminal device according to any of claims 1-17.
20. A computer-readable storage medium storing instructions that, when executed, cause a computer to perform the method performed by the terminal device of any one of claims 1-17.
CN202111370462.9A 2021-11-18 2021-11-18 Touch processing method, terminal equipment and storage medium Active CN115016666B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111370462.9A CN115016666B (en) 2021-11-18 2021-11-18 Touch processing method, terminal equipment and storage medium
CN202310996471.1A CN117234351A (en) 2021-11-18 2021-11-18 Touch processing method, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111370462.9A CN115016666B (en) 2021-11-18 2021-11-18 Touch processing method, terminal equipment and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310996471.1A Division CN117234351A (en) 2021-11-18 2021-11-18 Touch processing method, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115016666A true CN115016666A (en) 2022-09-06
CN115016666B CN115016666B (en) 2023-08-25

Family

ID=83064285

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310996471.1A Pending CN117234351A (en) 2021-11-18 2021-11-18 Touch processing method, terminal equipment and storage medium
CN202111370462.9A Active CN115016666B (en) 2021-11-18 2021-11-18 Touch processing method, terminal equipment and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310996471.1A Pending CN117234351A (en) 2021-11-18 2021-11-18 Touch processing method, terminal equipment and storage medium

Country Status (1)

Country Link
CN (2) CN117234351A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0927949A2 (en) * 1997-12-29 1999-07-07 SAMSUNG ELECTRONICS Co. Ltd. Character-recognition system for a mobile radio communication terminal and method thereof
US20030098871A1 (en) * 2001-11-27 2003-05-29 International Business Machines Corporation Information processing apparatus, program and coordinate input method
CN104317461A (en) * 2014-11-03 2015-01-28 兰州空间技术物理研究所 High-resolution touch response model with infrared touch screen
CN105744055A (en) * 2014-11-25 2016-07-06 Lg电子株式会社 Mobile Terminal And Method For Controlling The Same
US20170169537A1 (en) * 2015-12-10 2017-06-15 Intel Corporation Accelerated touch processing in computing environments
CN107015756A (en) * 2017-03-31 2017-08-04 努比亚技术有限公司 Mobile terminal and its method for realizing full frame fingerprint interaction
WO2019242423A1 (en) * 2018-06-19 2019-12-26 华为技术有限公司 Method, apparatus and system for implementing multi-core parallel on tee side
CN111625175A (en) * 2020-05-06 2020-09-04 Oppo(重庆)智能科技有限公司 Touch event processing method, touch event processing device, medium and electronic equipment
CN112383664A (en) * 2020-10-15 2021-02-19 华为技术有限公司 Equipment control method, first terminal equipment and second terminal equipment
WO2021052086A1 (en) * 2019-09-17 2021-03-25 华为技术有限公司 Information processing method and apparatus
TW202117517A (en) * 2019-10-30 2021-05-01 大陸商北京集創北方科技股份有限公司 Touch display driving circuit, touch display device and information processing device with variable frame rate and fixed touch scanning frequency capable of satisfying the requirements of the variable frame rate and fixed touch scanning frequency of ultra-high definition (FHD) touch display device
CN113489632A (en) * 2021-06-11 2021-10-08 深圳市海邻科信息技术有限公司 Touch control method, system and computer readable storage medium
US20210349562A1 (en) * 2020-05-11 2021-11-11 Samsung Electronics Co., Ltd. Touch and display control device with fast touch responsiveness, display device including the same, method of operating the same and electronic system including the same

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0927949A2 (en) * 1997-12-29 1999-07-07 SAMSUNG ELECTRONICS Co. Ltd. Character-recognition system for a mobile radio communication terminal and method thereof
US20030098871A1 (en) * 2001-11-27 2003-05-29 International Business Machines Corporation Information processing apparatus, program and coordinate input method
CN104317461A (en) * 2014-11-03 2015-01-28 兰州空间技术物理研究所 High-resolution touch response model with infrared touch screen
CN105744055A (en) * 2014-11-25 2016-07-06 Lg电子株式会社 Mobile Terminal And Method For Controlling The Same
US20170169537A1 (en) * 2015-12-10 2017-06-15 Intel Corporation Accelerated touch processing in computing environments
CN107015756A (en) * 2017-03-31 2017-08-04 努比亚技术有限公司 Mobile terminal and its method for realizing full frame fingerprint interaction
WO2019242423A1 (en) * 2018-06-19 2019-12-26 华为技术有限公司 Method, apparatus and system for implementing multi-core parallel on tee side
WO2021052086A1 (en) * 2019-09-17 2021-03-25 华为技术有限公司 Information processing method and apparatus
TW202117517A (en) * 2019-10-30 2021-05-01 大陸商北京集創北方科技股份有限公司 Touch display driving circuit, touch display device and information processing device with variable frame rate and fixed touch scanning frequency capable of satisfying the requirements of the variable frame rate and fixed touch scanning frequency of ultra-high definition (FHD) touch display device
CN111625175A (en) * 2020-05-06 2020-09-04 Oppo(重庆)智能科技有限公司 Touch event processing method, touch event processing device, medium and electronic equipment
US20210349562A1 (en) * 2020-05-11 2021-11-11 Samsung Electronics Co., Ltd. Touch and display control device with fast touch responsiveness, display device including the same, method of operating the same and electronic system including the same
CN112383664A (en) * 2020-10-15 2021-02-19 华为技术有限公司 Equipment control method, first terminal equipment and second terminal equipment
CN113489632A (en) * 2021-06-11 2021-10-08 深圳市海邻科信息技术有限公司 Touch control method, system and computer readable storage medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
ANIRBAN DASGUPTA等: "A Smartphone-Based Drowsiness Detection and Warning System for Automotive Drivers", 《 IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS》 *
ANIRBAN DASGUPTA等: "A Smartphone-Based Drowsiness Detection and Warning System for Automotive Drivers", 《 IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS》, 28 December 2018 (2018-12-28), pages 4045 - 4054 *
张倩洋;张钊锋;李宝骐;: "互电容触控坐标精确处理和上报算法", 电视技术, no. 10 *
王振;姬广永;耿桂娟;: "网络移动终端的嵌入式开发与设计", 现代电子技术, no. 05 *
纪成等: "Cortex-M4核Kinetis平台的电容式触摸键盘设计", 《单片机与嵌入式系统应用》 *
纪成等: "Cortex-M4核Kinetis平台的电容式触摸键盘设计", 《单片机与嵌入式系统应用》, no. 07, 1 July 2012 (2012-07-01), pages 48 - 51 *

Also Published As

Publication number Publication date
CN115016666B (en) 2023-08-25
CN117234351A (en) 2023-12-15

Similar Documents

Publication Publication Date Title
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
CN110114747B (en) Notification processing method and electronic equipment
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
CN109559270B (en) Image processing method and electronic equipment
CN113704205B (en) Log storage method, chip, electronic device and readable storage medium
CN111543042A (en) Notification message processing method and electronic equipment
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
CN115589051B (en) Charging method and terminal equipment
CN113688019B (en) Response time duration detection method and device
WO2022160991A1 (en) Permission control method and electronic device
CN111249728B (en) Image processing method, device and storage medium
CN115032640B (en) Gesture recognition method and terminal equipment
CN114995715B (en) Control method of floating ball and related device
WO2022242412A1 (en) Method for killing application, and related device
CN115017498B (en) Method for operating applet and electronic device
CN113380240B (en) Voice interaction method and electronic equipment
CN114691248B (en) Method, device, equipment and readable storage medium for displaying virtual reality interface
CN115016666B (en) Touch processing method, terminal equipment and storage medium
CN114828098A (en) Data transmission method and electronic equipment
CN114006969B (en) Window starting method and electronic equipment
CN116048831B (en) Target signal processing method and electronic equipment
WO2021104000A1 (en) Screen display method and electronic device
CN114490006A (en) Task determination method, device, equipment and storage medium
CN115792431A (en) Abnormal position detection method and electronic equipment
CN115906033A (en) Voiceprint authentication response method and system and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant