CN101930319B - Touch information reporting method of touch screen - Google Patents
Touch information reporting method of touch screen Download PDFInfo
- Publication number
- CN101930319B CN101930319B CN 201010284666 CN201010284666A CN101930319B CN 101930319 B CN101930319 B CN 101930319B CN 201010284666 CN201010284666 CN 201010284666 CN 201010284666 A CN201010284666 A CN 201010284666A CN 101930319 B CN101930319 B CN 101930319B
- Authority
- CN
- China
- Prior art keywords
- touch
- touch point
- coordinate
- frame
- previous frame
- 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.)
- Active
Links
Images
Abstract
The invention discloses a touch information reporting method of a touch screen, which comprises the following steps: calculating the distance between a touch point of the previous frame and a touch point of the current frame according to the coordinates of the touch point of the previous frame and the coordinates of the touch point of the current frame; and determining the reporting frequency according to the length of the distance, i.e. the shorter the distance is, the lower the reporting frequency is, and the longer the distance is, the higher the reporting frequency is. By adjusting the reporting frequency according to the moving speed of the touch point, the invention can lower the reporting frequency when the touch point moves at a low speed, thereby reducing the occupation of host resources and the influence on the running of the host and reducing the loss of touch data.
Description
[technical field]
The present invention relates to touching technique, relate in particular to a kind of touch information reporting method of touch screen.
[background technology]
After capacitive touch screen detects the human finger touch location, the coordinate of touch location need to be reported main frame, touch-screen normally by IIC, SPI communication bus and host communication, adds an INT look-at-me.This INT look-at-me is very important, and main frame generally has a lot of tasks to be needed to process, and can not read out touch coordinate by the mode of inquiry; But wait for that touch-screen sends the INT look-at-me.After main frame is received the INT look-at-me, then read the touch coordinate of touch-screen by iic bus, have assigned address to deposit touch coordinate at the touch-screen chip internal, main frame reads the data acquisition touch coordinate of corresponding address.
The chip of the Iphone mobile phone of apple, the Lephone mobile phone of association, Cypress, Atmel, Synaptics company all adopts fixed frequency to report coordinate points, and frequency reaches 80Hz.Touch information useless is also pressed the 80Hz reported data, take the main frame ample resources, has reduced the speed that main frame moves other programs.Simultaneously, main frame possibly can't respond the interruption of touch-screen fast when carrying out large program, can lose touch data.In addition, some host platforms move when very fast the touch point, react not prompt enough, the problem of broken string easily occurs.
[summary of the invention]
The technical problem to be solved in the present invention is to provide that a kind of to take host resource less, and is little to the main frame influence on system operation, can reduce the touch information reporting method of touch screen of obliterated data.
The technical matters that the present invention further will solve is to provide and a kind ofly moves when very fast when the touch point, is not easy the touch information reporting method of touch screen that occurs breaking.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is that a kind of touch information reporting method of touch screen comprises the following steps:
Go out the distance of previous frame touch point and present frame touch point according to the coordinate Calculation of the coordinate of previous frame touch point and present frame touch point; Determine the frequency that reports according to the size of described distance, described distance is less, and the frequency that reports is lower, and described distance is larger, and the frequency that reports is higher; If described distance greater than first threshold, less than Second Threshold, judges whether previous frame reports the touch point coordinate; Do not report the touch point coordinate as previous frame, report the coordinate of present frame touch point; Report the touch point coordinate as previous frame, do not reported the coordinate of present frame touch point.
Above-described touch information reporting method of touch screen comprises the following steps:
If described distance less than first threshold, does not report present frame touch point coordinate.
Above-described touch information reporting method of touch screen comprises the following steps:
If described distance is greater than Second Threshold, less than the 3rd threshold value, report front frame touch point coordinate.
Above-described touch information reporting method of touch screen comprises the following steps:
If described distance greater than the 3rd threshold value, is calculated the coordinate of intermediate point between previous frame touch point and present frame touch point; Then report the coordinate of described intermediate point and the coordinate of present frame touch point.
Above-described touch information reporting method of touch screen comprises the following steps:
After the every frame scan of touch-screen is completed, judge first whether previous frame and present frame all exist the touch point, if there is the touch point in previous frame, there is not the touch point in present frame, reports the event of lifting; If previous frame is not have the touch point, there is the touch point in present frame, reports the event of pressing; If there are not the touch point in previous frame and present frame, neither reported event does not report coordinate data yet; If all there are the touch point in previous frame and present frame, carry out the step that claim 1 limits.
The frequency that the speed adjustment that touch information reporting method of touch screen of the present invention moves according to the touch point reports, when the speed that moves when the touch point is slower, reduce the frequency that reports, can reduce taking and on the impact that main frame moves, also having reduced the loss of touch data simultaneously host resource.
[description of drawings]
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Fig. 1 is the process flow diagram of touch information reporting method of touch screen embodiment of the present invention.
[embodiment]
In the touch information reporting method of touch screen embodiment of the present invention 1 shown in Figure 1, after the every frame scan of touch-screen is completed, at first judge whether previous frame exists touch point A1, whether present frame exists touch point A2, if there is touch point A1 in previous frame, there is not the touch point in present frame, reports the event of lifting; If previous frame is not have the touch point, there is touch point A2 in present frame, reports the event of pressing; If there are not the touch point in previous frame and present frame, neither reported event does not report coordinate data yet; If all there are the touch point in previous frame and present frame, carry out following steps:
Calculate the distance W of previous frame touch point A1 and present frame touch point A2 according to coordinate X2, the Y2 of coordinate X1, the Y1 of previous frame touch point A1 and present frame touch point A2; Whether judging distance W is greater than first threshold; Less than first threshold a, do not report the coordinate of present frame touch point A2 as distance W;
If distance W greater than first threshold a, less than Second Threshold b, judges whether previous frame reports the coordinate of touch point A1; Do not report the coordinate of touch point A1 as previous frame, report the coordinate of present frame touch point A2; Report touch point A1 coordinate as previous frame, do not reported the coordinate of present frame A2 touch point.
If distance W greater than Second Threshold b, less than the 3rd threshold value c, directly reports the coordinate of front frame touch point A2; If at first distance W greater than the 3rd threshold value c, calculates the coordinate of intermediate point A3 between previous frame touch point A1 and present frame touch point A2; Then report successively the coordinate of intermediate point A3 and the coordinate of present frame touch point A2.
The above embodiment of the present invention is by calculating before and after previous frame touch point A1 and present frame touch point A2 the distance of 2, and the translational speed of A1 to A2 after judgement is with 3 threshold value a, b, c (c>b>a), translational speed is divided into 4 grades.Static, at a slow speed, middling speed, fast.
According to the translational speed of A1 to A2, provide 4 kinds to report frequency.When the judgement contact when static, only have and press and just report when lifting event, do not exist and press and do not report when lifting event, do not take or seldom take host resource; When judgement contact point low speed moves, reduce the frequency that reports of half, take less host resource; When middling speed moves, normal newspaper point, report by the actual scanning frequency; During high speed, the interpolation touch point reports, and is equivalent to frequency is doubled, and prevents broken string; When ruling on the MTK cell phone platform, after the distance between 2 o'clock surpasses certain limit, 2 can not coupled together, produce broken string, after inserting intermediate point, the situation that can avoid breaking occurs.
In sum, the frequency that reports of touch information reporting method of touch screen of the present invention adopts 4 kinds of patterns: when static, only report and press and lift event; In the time of at a slow speed, frequency is reduced half report; During middling speed, report by actual scanning speed; During high speed, the interpolation touch point reports, and is equivalent to frequency is doubled.Touch-screen only need to report the point touching coordinate under a lot of conditions of work, a large amount of working times is in still-mode or slow speed mode, only reports to press and lift event, and the host application program travelling speed is obviously accelerated.When mobile draw runner, write, during line, be in middling speed or quick mode, can improve the frequency of the coordinate information that reports, can allow the word that writes out rounder and more smooth, more coherent.
Claims (5)
1. a touch information reporting method of touch screen, is characterized in that, comprises the following steps:
Go out the distance of previous frame touch point and present frame touch point according to the coordinate Calculation of the coordinate of previous frame touch point and present frame touch point; Determine the frequency that reports according to the size of described distance, described distance is less, and the frequency that reports is lower, and described distance is larger, and the frequency that reports is higher; If described distance greater than first threshold, less than Second Threshold, judges whether previous frame reports the touch point coordinate; Do not report the touch point coordinate as previous frame, report the coordinate of present frame touch point; Report the touch point coordinate as previous frame, do not reported the coordinate of present frame touch point.
2. touch information reporting method of touch screen according to claim 1, is characterized in that, comprises the following steps:
If described distance less than first threshold, does not report present frame touch point coordinate.
3. touch information reporting method of touch screen according to claim 1, is characterized in that, comprises the following steps:
If described distance is greater than Second Threshold, less than the 3rd threshold value, report front frame touch point coordinate.
4. touch information reporting method of touch screen according to claim 1, is characterized in that, comprises the following steps:
If described distance greater than the 3rd threshold value, is calculated the coordinate of intermediate point between previous frame touch point and present frame touch point; Then report the coordinate of described intermediate point and the coordinate of present frame touch point.
5. the described touch information reporting method of touch screen of arbitrary claim according to claim 1 to 4, is characterized in that, comprises the following steps:
After the every frame scan of touch-screen is completed, judge first whether previous frame and present frame all exist the touch point, if there is the touch point in previous frame, there is not the touch point in present frame, reports the event of lifting; If previous frame is not have the touch point, there is the touch point in present frame, reports the event of pressing; If there are not the touch point in previous frame and present frame, neither reported event does not report coordinate data yet; If all there are the touch point in previous frame and present frame, carry out the step that claim 1 limits.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010284666 CN101930319B (en) | 2010-09-08 | 2010-09-08 | Touch information reporting method of touch screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010284666 CN101930319B (en) | 2010-09-08 | 2010-09-08 | Touch information reporting method of touch screen |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101930319A CN101930319A (en) | 2010-12-29 |
CN101930319B true CN101930319B (en) | 2013-06-12 |
Family
ID=43369526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010284666 Active CN101930319B (en) | 2010-09-08 | 2010-09-08 | Touch information reporting method of touch screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101930319B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902470B (en) * | 2011-07-29 | 2015-10-07 | 中国移动通信集团公司 | A kind of changing method of inputting interface and device |
CN103593131B (en) * | 2012-08-15 | 2017-03-08 | 北京汇冠新技术股份有限公司 | A kind of touch track tracking |
CN103472946B (en) * | 2013-08-29 | 2016-03-09 | 广东欧珀移动通信有限公司 | A kind of dynamic conditioning touch-screen reports the method for speed |
CN103763741B (en) * | 2013-11-13 | 2018-05-22 | 雷振山 | A kind of intelligent parking lot wireless communications method and system |
WO2015070436A1 (en) * | 2013-11-15 | 2015-05-21 | 华为终端有限公司 | Data reporting method, apparatus and terminal device |
CN104156167B (en) * | 2014-07-29 | 2018-01-02 | Tcl通讯(宁波)有限公司 | A kind of entry and exit method of mobile terminal and its child mode |
CN104238812B (en) * | 2014-08-22 | 2017-07-04 | 合肥鑫晟光电科技有限公司 | The transmission method and relevant apparatus of touch data in a kind of touch-screen |
CN107003758B (en) * | 2015-06-16 | 2020-04-28 | 华为技术有限公司 | Ghost point processing method and user equipment |
CN106648400B (en) * | 2015-11-03 | 2020-04-03 | 华为终端有限公司 | Touch data reporting method and electronic equipment |
CN109669567B (en) * | 2017-10-13 | 2020-10-16 | 华为技术有限公司 | Control method and terminal |
US11216116B2 (en) | 2017-10-13 | 2022-01-04 | Huawei Technologies Co., Ltd. | Control method and terminal |
CN108874200B (en) * | 2018-04-16 | 2019-12-03 | 广州视源电子科技股份有限公司 | The control method and device of writing speed |
CN112925466B (en) * | 2019-12-06 | 2023-04-25 | 北京小米移动软件有限公司 | Touch control method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007122522A (en) * | 2005-10-28 | 2007-05-17 | Digital Electronics Corp | Input device, touch panel input accepting method and operation indicator |
CN101446884A (en) * | 2008-12-19 | 2009-06-03 | 腾讯科技(深圳)有限公司 | Touch screen device and scrolling method thereof |
CN101667089A (en) * | 2008-09-04 | 2010-03-10 | 比亚迪股份有限公司 | Method and device for identifying touch gestures |
US20100149115A1 (en) * | 2008-12-17 | 2010-06-17 | Cypress Semiconductor Corporation | Finger gesture recognition for touch sensing surface |
-
2010
- 2010-09-08 CN CN 201010284666 patent/CN101930319B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007122522A (en) * | 2005-10-28 | 2007-05-17 | Digital Electronics Corp | Input device, touch panel input accepting method and operation indicator |
CN101667089A (en) * | 2008-09-04 | 2010-03-10 | 比亚迪股份有限公司 | Method and device for identifying touch gestures |
US20100149115A1 (en) * | 2008-12-17 | 2010-06-17 | Cypress Semiconductor Corporation | Finger gesture recognition for touch sensing surface |
CN101446884A (en) * | 2008-12-19 | 2009-06-03 | 腾讯科技(深圳)有限公司 | Touch screen device and scrolling method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN101930319A (en) | 2010-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101930319B (en) | Touch information reporting method of touch screen | |
CN101661375B (en) | Touch control method, system and display terminal | |
CN105518590B (en) | System and method for improved processing of touch sensor data | |
CN102637118B (en) | Insert or delete method and the device thereof of cell or ranks in electrical form | |
CN101950243B (en) | Mobile terminal and method thereof for setting key position | |
CN103135818B (en) | Quick operation response method and electronic equipment | |
WO2017148365A1 (en) | Method for processing data collected by touch panel, and terminal device | |
US20160117046A1 (en) | Data Reporting Method and Apparatus, and Terminal Device | |
US20130044071A1 (en) | Method and mobile terminal for automatically recognizing a rotation gesture | |
CN102902407B (en) | A kind of touch-screen output display touches the method and apparatus of person's handwriting | |
CN101963851A (en) | Mobile equipment and implementation method, receiving host and implementation method as well as communication system | |
CN104252356A (en) | Interface generating method and system | |
CN107247557A (en) | A kind of application icon display methods and device | |
CN101741944A (en) | Method for preventing false operation | |
CN103631824B (en) | A kind of Webpage display process and device | |
CN103472946B (en) | A kind of dynamic conditioning touch-screen reports the method for speed | |
CN101763216A (en) | Hand input method for Linux operational system | |
CN103389858B (en) | Mobile terminal and list operation method thereof | |
CN100541409C (en) | A kind of touch key-press method to set up and touch scanister thereof | |
CN107395888B (en) | Processing method, device, storage medium and the mobile terminal of blank screen gesture | |
CN103677591A (en) | Terminal self-defined gesture method and terminal thereof | |
CN101739212A (en) | Handwriting input device suitable for Linux operating system | |
TW201232356A (en) | Method of reporting touch information for touch panel | |
CN103019440B (en) | A kind of abnormal touch point minimizing technology based on gesture identification, device and touch-screen | |
CN102147681A (en) | Input method and device based on touch screen |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |