US 12,487,699 B2
Method for calculating position information in touchscreen and electronic device
Yue Ding, Shenzhen (CN); Guangxu Zhao, Shenzhen (CN); and Juncheng Tian, Shenzhen (CN)
Assigned to HONOR DEVICE CO., LTD., Shenzhen (CN)
Appl. No. 18/014,607
Filed by HONOR DEVICE CO., LTD., Shenzhen (CN)
PCT Filed Sep. 13, 2022, PCT No. PCT/CN2022/118546
§ 371(c)(1), (2) Date Jan. 5, 2023,
PCT Pub. No. WO2023/045806, PCT Pub. Date Mar. 30, 2023.
Claims priority of application No. 202111124509.3 (CN), filed on Sep. 24, 2021.
Prior Publication US 2024/0192800 A1, Jun. 13, 2024
Int. Cl. G06F 3/041 (2006.01); G06F 3/044 (2006.01)
CPC G06F 3/04166 (2019.05) [G06F 3/044 (2013.01)] 20 Claims
OG exemplary drawing
 
1. 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 source data from the touch chip to the DMA by using the high-speed serial bus, and controlling, by the touch chip, the CPU to wake up a data transfer thread of the CPU, wherein a priority of instructing to wake up the data transfer thread preset in the CPU is higher than that of another to-be-processed thread in the CPU, and wherein the source data is used to indicate capacitance of the touch chip, wherein when the preset sampling period is greater than a sum of a first duration associated with a duration for the touch chip to transmit the source data to the CPU and a second duration associated with a duration for calculating the position information of the trigger operation in the touchscreen, transmission from the touch chip to the CPU of the source data that is sampled by an Nth group of the sampling pulse sequence is performed with the high-speed serial bus simultaneously with transmission of an (N+1)th group of the sampling pulse sequence;
filtering, by the CPU with a higher clock rate than that of the MCU, the obtained source data in the digital format, by using a filtering algorithm, which reduces noise in the filtered source data;
calculating, by the CPU with the higher clock rate than that of the MCU, position information of the trigger operation in the touchscreen based on the filtered source data.