CN101930319A - Touch information reporting method of touch screen - Google Patents
Touch information reporting method of touch screen Download PDFInfo
- Publication number
- CN101930319A CN101930319A CN 201010284666 CN201010284666A CN101930319A CN 101930319 A CN101930319 A CN 101930319A CN 201010284666 CN201010284666 CN 201010284666 CN 201010284666 A CN201010284666 A CN 201010284666A CN 101930319 A CN101930319 A CN 101930319A
- 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.)
- Granted
Links
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 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 handle, 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, read the touch coordinate of touch-screen again by iic bus, have assigned address to deposit touch coordinate at the touch-screen chip internal, the data that main frame reads corresponding address obtain touch coordinate.
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 big program, can lose touch data.In addition, the host platform that has moves when very fast the touch point, reacts not prompt enough, occurs the problem of broken string easily.
[summary of the invention]
The technical problem to be solved in the present invention provides 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 provides 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 may further comprise the 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 more little, and the frequency that reports is low more, and described distance is big more, and the frequency that reports is high more.
If described distance less than first threshold, does not then report present frame touch point coordinate.
If described distance greater than first threshold, less than second threshold value, judges then whether previous frame reports the touch point coordinate; Do not report the touch point coordinate as previous frame, then report the coordinate of present frame touch point; Report the touch point coordinate as previous frame, then do not reported the coordinate of present frame touch point.
If distance as described greater than second threshold value, less than the 3rd threshold value, then reports preceding frame touch point coordinate.
If described distance, is then calculated the coordinate of intermediate point between previous frame touch point and the present frame touch point greater than the 3rd threshold value; Report the coordinate of described intermediate point and the coordinate of present frame touch point then.
Above-described touch information reporting method of touch screen can also may further comprise the steps:
Earlier judge 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, then reports the incident of lifting; If previous frame is not have the touch point, there is the touch point in present frame, then reports the incident of pressing; If there are not the touch point in previous frame and present frame, then neither reported event does not report coordinate data yet; If all there are the touch point in previous frame and present frame, then carry out subsequent step.
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 slow, reduce the frequency report, can reduce taking and, also reduced losing of touch data simultaneously host resource to the influence of main frame operation.
[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 invention 1 shown in Figure 1, after the every frame scan of touch-screen is finished, judge at first 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, then reports the incident of lifting; If previous frame is not have the touch point, there is touch point A2 in present frame, then reports the incident of pressing; If there are not the touch point in previous frame and present frame, then neither reported event does not report coordinate data yet; If all there are the touch point in previous frame and present frame, then 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, then do not report the coordinate of present frame touch point A2 as distance W;
If distance W greater than first threshold a, less than the second threshold value b, judges then whether previous frame reports the coordinate of touch point A1; Do not report the coordinate of touch point A1 as previous frame, then report the coordinate of present frame touch point A2; Report touch point A1 coordinate as previous frame, then do not reported the coordinate of present frame A2 touch point.
If distance W greater than the second threshold value b, less than the 3rd threshold value c, then directly reports the coordinate of preceding frame touch point A2; If distance W, is then at first calculated the coordinate of intermediate point A3 between previous frame touch point A1 and the present frame touch point A2 greater than the 3rd threshold value c; Report the coordinate of intermediate point A3 and the coordinate of present frame touch point A2 then successively.
The above embodiment of the present invention is judged the translational speed of back A1 to A2, with 3 threshold value a, b, c (c>b>a), translational speed is divided into 4 grades by calculating the distance of 2 of previous frame touch point A1 and present frame touch point A2 front and back.Static, at a slow speed, middling speed, fast.
According to the translational speed of A1 to A2, provide 4 kinds to report frequency.When judging that the contact is static, have only and press and just report when lifting incident, do not exist and press and do not report when lifting incident, do not take or seldom take host resource; When judging that contact point low speed moves, reduce the frequency that reports of half, take host resource less; Normal newspaper point reported by the actual scanning frequency when middling speed moved; During high speed, the interpolation touch point reports, and is equivalent to frequency is doubled, and prevents broken string; When on the MTK cell phone platform, ruling, after the distance between 2 o'clock surpasses certain limit, 2 can not coupled together, produce broken string, insert intermediate point after, the situation that can avoid breaking takes place.
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 incident; 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 report the click touch 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 incident, 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 slicker and more sly, more coherent.
Claims (6)
1. a touch information reporting method of touch screen is characterized in that, may further comprise the 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 more little, and the frequency that reports is low more, and described distance is big more, and the frequency that reports is high more.
2. touch information reporting method of touch screen according to claim 1 is characterized in that, may further comprise the steps:
If described distance less than first threshold, does not then report present frame touch point coordinate.
3. touch information reporting method of touch screen according to claim 1 is characterized in that, may further comprise the steps:
If described distance greater than first threshold, less than second threshold value, judges then whether previous frame reports the touch point coordinate; Do not report the touch point coordinate as previous frame, then report the coordinate of present frame touch point; Report the touch point coordinate as previous frame, then do not reported the coordinate of present frame touch point.
4. touch information reporting method of touch screen according to claim 1 is characterized in that, may further comprise the steps:
If distance as described greater than second threshold value, less than the 3rd threshold value, then reports preceding frame touch point coordinate.
5. touch information reporting method of touch screen according to claim 1 is characterized in that, may further comprise the steps:
If described distance, is then calculated the coordinate of intermediate point between previous frame touch point and the present frame touch point greater than the 3rd threshold value; Report the coordinate of described intermediate point and the coordinate of present frame touch point then.
6. according to the described touch information reporting method of touch screen of arbitrary claim in the claim 1 to 5, it is characterized in that, may further comprise the steps:
Earlier judge 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, then reports the incident of lifting; If previous frame is not have the touch point, there is the touch point in present frame, then reports the incident of pressing; If there are not the touch point in previous frame and present frame, then neither reported event does not report coordinate data yet; If all there are the touch point in previous frame and present frame, then carry out subsequent step.
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 true CN101930319A (en) | 2010-12-29 |
CN101930319B 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) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902470A (en) * | 2011-07-29 | 2013-01-30 | 中国移动通信集团公司 | Input interface switching method and input interface switching device |
CN103472946A (en) * | 2013-08-29 | 2013-12-25 | 广东欧珀移动通信有限公司 | Method for dynamically adjusting reporting rate of touch screen |
WO2014026568A1 (en) * | 2012-08-15 | 2014-02-20 | 北京汇冠新技术股份有限公司 | Touch trace tracking method |
CN103763741A (en) * | 2013-11-13 | 2014-04-30 | 北京青创智通科技有限公司 | Wireless communication method and system of intelligent parking lot |
CN104156167A (en) * | 2014-07-29 | 2014-11-19 | Tcl通讯(宁波)有限公司 | Mobile terminal and children mode entering and exiting method thereof |
CN104238812A (en) * | 2014-08-22 | 2014-12-24 | 合肥鑫晟光电科技有限公司 | Transferring method for touch data in touch screen and related device |
WO2015070436A1 (en) * | 2013-11-15 | 2015-05-21 | 华为终端有限公司 | Data reporting method, apparatus and terminal device |
CN106648400A (en) * | 2015-11-03 | 2017-05-10 | 华为终端(东莞)有限公司 | Touch-data reporting method and electronic device |
CN107003758A (en) * | 2015-06-16 | 2017-08-01 | 华为技术有限公司 | ghost point processing method and user equipment |
CN108874200A (en) * | 2018-04-16 | 2018-11-23 | 广州视源电子科技股份有限公司 | The control method and device of writing speed |
WO2019072254A1 (en) * | 2017-10-13 | 2019-04-18 | 华为技术有限公司 | Control method and terminal |
CN109669567A (en) * | 2017-10-13 | 2019-04-23 | 华为技术有限公司 | A kind of control method and terminal |
CN112925466A (en) * | 2019-12-06 | 2021-06-08 | 北京小米移动软件有限公司 | 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 |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902470A (en) * | 2011-07-29 | 2013-01-30 | 中国移动通信集团公司 | Input interface switching method and input interface switching device |
WO2014026568A1 (en) * | 2012-08-15 | 2014-02-20 | 北京汇冠新技术股份有限公司 | Touch trace tracking method |
CN103472946A (en) * | 2013-08-29 | 2013-12-25 | 广东欧珀移动通信有限公司 | Method for dynamically adjusting reporting rate of touch screen |
CN103472946B (en) * | 2013-08-29 | 2016-03-09 | 广东欧珀移动通信有限公司 | A kind of dynamic conditioning touch-screen reports the method for speed |
CN103763741A (en) * | 2013-11-13 | 2014-04-30 | 北京青创智通科技有限公司 | Wireless communication method and system of intelligent parking lot |
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 |
CN104156167A (en) * | 2014-07-29 | 2014-11-19 | Tcl通讯(宁波)有限公司 | Mobile terminal and children mode entering and exiting method thereof |
CN104238812A (en) * | 2014-08-22 | 2014-12-24 | 合肥鑫晟光电科技有限公司 | Transferring method for touch data in touch screen and related device |
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 |
CN107003758A (en) * | 2015-06-16 | 2017-08-01 | 华为技术有限公司 | ghost point processing method and user equipment |
CN106648400B (en) * | 2015-11-03 | 2020-04-03 | 华为终端有限公司 | Touch data reporting method and electronic equipment |
CN106648400A (en) * | 2015-11-03 | 2017-05-10 | 华为终端(东莞)有限公司 | Touch-data reporting method and electronic device |
WO2019072254A1 (en) * | 2017-10-13 | 2019-04-18 | 华为技术有限公司 | Control method and terminal |
CN109669567A (en) * | 2017-10-13 | 2019-04-23 | 华为技术有限公司 | A kind of control method and terminal |
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 |
CN108874200A (en) * | 2018-04-16 | 2018-11-23 | 广州视源电子科技股份有限公司 | The control method and device of writing speed |
WO2019200927A1 (en) * | 2018-04-16 | 2019-10-24 | 广州视源电子科技股份有限公司 | Writing speed control method and device |
CN108874200B (en) * | 2018-04-16 | 2019-12-03 | 广州视源电子科技股份有限公司 | The control method and device of writing speed |
CN112925466A (en) * | 2019-12-06 | 2021-06-08 | 北京小米移动软件有限公司 | Touch control method and device |
CN112925466B (en) * | 2019-12-06 | 2023-04-25 | 北京小米移动软件有限公司 | Touch control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN101930319B (en) | 2013-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101930319B (en) | Touch information reporting method of touch screen | |
CN101661375B (en) | Touch control method, system and display terminal | |
EP2565760A1 (en) | Method and mobile terminal for automatically identifying rotary gesture | |
CN105518590B (en) | System and method for improved processing of touch sensor data | |
CN103135818B (en) | Quick operation response method and electronic equipment | |
US20160117046A1 (en) | Data Reporting Method and Apparatus, and Terminal Device | |
CN102637118B (en) | Insert or delete method and the device thereof of cell or ranks in electrical form | |
WO2017148365A1 (en) | Method for processing data collected by touch panel, and terminal device | |
CN103440092B (en) | A kind of processing method returning button, system and mobile terminal | |
CN101950243A (en) | Mobile terminal and method thereof for setting key position | |
CN102279784B (en) | Electronic equipment and method and system for reminding user of use condition of system resource of electronic equipment | |
CN102880420B (en) | Method and system based on touch screen for starting and implementing area selection operation | |
CN101963851A (en) | Mobile equipment and implementation method, receiving host and implementation method as well as communication system | |
CN102902407B (en) | A kind of touch-screen output display touches the method and apparatus of person's handwriting | |
CN104252356A (en) | Interface generating method and system | |
CN107247557A (en) | A kind of application icon display methods and device | |
CN103631824B (en) | A kind of Webpage display process and device | |
CN103389858B (en) | Mobile terminal and list operation method thereof | |
CN103472946B (en) | A kind of dynamic conditioning touch-screen reports the method for speed | |
CN103440098A (en) | Method for opening application program and mobile terminal 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 | |
CN100541409C (en) | A kind of touch key-press method to set up and touch scanister thereof | |
CN102799568B (en) | Read-only text choose clone method and system | |
CN102073415A (en) | Touch system, auxiliary device and input method thereof |
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 |