hottub.patents
US 12,487,699 B2#3379315 Most CitedActiveUnited States (USPTO)Utility

Method for calculating position information in touchscreen and electronic device

0Forward Citations (#3379315 Global)
0.0/yrCitation Velocity (#3379315 Global)
0.00Citation PageRank (#3379315 Global)
32Prior Art Cited
8Claims (1 Indep. · 7 Dep.)
0Drawings / Sheets

Abstract

This application provides a method for calculating position information in a touchscreen and an electronic device. In the method for calculating position information in a touchscreen, because a touch chip transmits, by using a high-speed serial bus, source data generated by a trigger operation, first duration t 1 for the touch chip to transmit the source data generated by the trigger operation can be shorter. Because position information of the trigger operation in the touchscreen is calculated in a CPU, second duration t 2 for the CPU to calculate coordinates of a position at which a user triggers the touchscreen can also be shorter.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 32 · Forward citations: 0.

Claims (8 — 1 Independent, 7 Dependent)

  1. Claim 1Independent Claim

    A method for calculating position information in a touchscreen, wherein the method is applied to an electronic device, comprising: sampling, by a touch chip, source data generated by a trigger operation in the touchscreen, when the touchscreen receives the trigger operation, wherein the sampling, by the touch chip, comprises transmitting, by the touch chip, a sampling pulse sequence to the touchscreen based on a preset sampling period, to obtain sampled analog data generated by the trigger operation; converting, by a microcontroller unit (MCU) that is integral to the touch chip, the sampled analog data into a digital format which is the source data; transmitting, by the touch chip, the source data to a system on chip (SOC) by using a high-speed serial bus, wherein the SOC comprises a central processing unit (CPU), a bus controller, and a direct memory access, and wherein transmitting of the source data by the touch chip to the CPU comprises at least copying, by the bus controller, the

  2. Claim 2Depends on #1

    The method according to claim 1, wherein the sampling pulse sequence comprises a sampling voltage greater than a preset voltage threshold comprising 3V and wherein the transmitting, by the touch chip, the source data to the CPU by using a high-speed serial bus further comprises: controlling, by the CPU, the bus controller to add a DMA flag, wherein the flag is used to indicate that the DMA is occupied by the bus controller, wherein the source data is copied from the touch chip to the DMA by the bus controller using the high speed serial bus after the DMA is occupied by the bus controller; and controlling, by the bus controller, the CPU to extract the source data from the DMA.

  3. Claim 3Depends on #2

    The method according to claim 2, wherein a priority of a thread preset in the bus controller and that is to occupy the DMA is higher than that of another to-be-processed thread in the bus controller.

  4. Claim 4Depends on #2

    The method according to claim 2, wherein after the controlling, by the CPU, the bus controller to add a DMA flag, the method further comprises: controlling the data transfer thread to start sleeping; and the controlling, by the bus controller, the CPU to extract the source data from the DMA comprises: controlling, by the bus controller, the CPU to wake up the data transfer thread; and extracting the source data from the DMA after the CPU wakes up the data transfer thread.

  5. Claim 5Depends on #1

    The method according to claim 1, wherein Nis an integer greater than 1, and the sampling period is less than a preset duration threshold.

  6. Claim 6Depends on #5

    The method according to claim 5, wherein the preset duration threshold is less than or equal to 2.5 ms.

  7. Claim 7Depends on #1

    The method according to claim 1, wherein the sampling, by the touch chip, source data generated by a trigger operation in the touchscreen comprises: transmitting, by the touch chip, the sampling pulse sequence to the touchscreen based on the preset sampling period, to sample the source data generated by the trigger operation in the touchscreen; wherein a quantity of sampling pulses in the sampling pulse sequence is less than 30.

  8. Claim 8Depends on #7

    The method according to claim 7, wherein the sampling voltage of the sampling pulses is 6 V or 7 V.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is a national stage of International Application No. PCT/CN2022/118546, filed on Sep. 13, 2022, which claims priority to Chinese Patent Application No. 202111124509.3, filed on Sep. 24, 2021. The disclosures of both of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the field of terminal technologies, and in particular, to a method for calculating position information in a touchscreen and an electronic device. BACKGROUND Currently, electronic devices have become a part of people's work and life. An electronic device usually includes a touchscreen. The electronic device can receive a trigger operation performed on the touchscreen by a user, and perform a corresponding function based on a triggered position. The electronic device can usually collect source data of the touchscreen by using a touch chip. When the touchscreen is triggered, a micro control unit MCU on the touch chip can calculate, based on the collected source data, coordinates of a position at which the user triggers the touchscreen. Then, a central processing unit CPU can read the calculated coordinates by using an I2C bus. In this way, the CPU performs a function corresponding to the coordinates. It can be learned that the coordinates of the position at which the user triggers the touchscreen are calculated in the MCU in the touch chip, but a computing speed is low because a clock rate of the MCU is 200 MHz ˜ 400 MHz. As a result, there is a high delay when the electronic device performs the function corresponding to the trigger operation based on the trigger operation performed by the user. SUMMARY This application provides a method for calculating position information in a touchscreen and an electronic device, to shorten a delay of the electronic device in performing a function corresponding to a trigger operation based on the trigger operation performed by a

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (32)

PatentTitleYearCitations