CN103472946A - Method for dynamically adjusting reporting rate of touch screen - Google Patents

Method for dynamically adjusting reporting rate of touch screen Download PDF

Info

Publication number
CN103472946A
CN103472946A CN2013103852352A CN201310385235A CN103472946A CN 103472946 A CN103472946 A CN 103472946A CN 2013103852352 A CN2013103852352 A CN 2013103852352A CN 201310385235 A CN201310385235 A CN 201310385235A CN 103472946 A CN103472946 A CN 103472946A
Authority
CN
China
Prior art keywords
touch
screen
speed
max
detection time
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
CN2013103852352A
Other languages
Chinese (zh)
Other versions
CN103472946B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201310385235.2A priority Critical patent/CN103472946B/en
Publication of CN103472946A publication Critical patent/CN103472946A/en
Application granted granted Critical
Publication of CN103472946B publication Critical patent/CN103472946B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention discloses a method for dynamically adjusting the reporting rate of a touch screen. The method includes the following steps: (1), setting a detection time, and acquiring a threshold value of the number of coordinate points received by an application layer within the detection time according to an initial set value of the reporting rate of a single finger on the touch screen and the maximum value of the number of fingers that the touch screen can recognize at a same time; (2), setting a set value n1 smaller than the threshold value of the number of the coordinate points received by the application layer in step (1); (3), within the detection time, recognizing the number of currently-touching fingers by a touch screen terminal; calculating the number n of the coordinate points received by the application layer within the detection time by the touch screen terminal according to the reporting rate of the single finger currently touching the touch screen; (4), comparing n1 with n, if the n1 is larger than n, lowering the reporting rate of the single finger currently touching the touch screen, and if n1 is smaller than n, increasing the reporting rate of the single finger currently touching the touch screen. By the method, the reporting rate of the touch screen can be dynamically adjusted, and touch effect of the touch screen can be guaranteed.

Description

A kind of dynamic adjustment touch-screen reports the method for speed
Technical field
The present invention relates to touching technique, particularly a kind of dynamic adjustment touch-screen reports the method for speed.
Background technology
Touch-screen be all fix report speed 80 points/second, report coordinate points to application layer, that is to say when finger slides on touch-screen, for each finger, touch-screen can report 80 point coordinate information to application layer by per second, for otiose touch coordinate dot information, also, according to 80 points/second reported data, take the main frame ample resources.If refer to, touch more, such as 5 fingers slide simultaneously on touch-screen, the per second application layer will be received the touch coordinate dot information of 400 left and right so, and this will cause great burden to system, the problem that causes the not smooth card of system operation to pause, even lost part touch information.
The Chinese invention patent that is CN101930319 at notification number discloses a kind of touch information reporting method of touch screen, and the method calculates the distance of previous frame touch point and present frame touch point according to the coordinate of the coordinate of previous frame touch point and present frame touch point; Determine according to the size of described distance the frequency reported, described distance is less, and the frequency reported is lower, and described distance is larger, and the frequency reported is higher.The method is mainly the frequency that the speed adjustment of moving according to touch point reports, and when the speed moved when touch point is slower, reduces the frequency reported, can reduce on host resource take and on the impact of main frame operation.But in the method, when by a plurality of fingers, acting on touch-screen, and the touch speed of each finger (being the speed that move touch point) is when very fast, still be easy to cause application layer to cause the excessive problem of system processing load because receiving too many coordinate points number, therefore the method is only suitable in the situation that in the unit interval, the touch point number is few uses, and is not suitable in the situation that refer to that touch is used fast more.
Summary of the invention
The object of the invention is to overcome the shortcoming of prior art with not enough, provide a kind of dynamic adjustment touch-screen to report the method for speed, under the state that the method refers to touch more, the speed that dynamic adjustment touch-screen reports, meet touch-screen and refer to the needs that touch more, can not make again the touch screen terminal card pause.
Purpose of the present invention is achieved through the following technical solutions: a kind of dynamic adjustment touch-screen reports the method for speed, comprises the following steps:
(1) set a detection time, report the initial settings v of speed according to single finger on touch-screen maxand touch the maximal value of the finger number that the same time of touch-screen can identify, obtain the threshold value of the coordinate points number that interior application layer is received detection time;
(2) the setting value n who is less than threshold value of coordinate points number Threshold received according to application layer in step (1) 1;
(3) within detection time, the current finger number touched of touch screen terminal identification; According to the speed that reports of the single finger of current touch-screen, touch screen terminal calculates the coordinate points number n that in detection time, application layer is received;
(4) by step (3) coordinate points number n and setting value n that in middle detection time, application layer is received 1compare:
If setting value n 1while being greater than n, reduce the speed that reports of the single finger of current touch-screen;
If setting value n 1while being less than n, the speed that reports of the single finger of current touch-screen that raises;
Make the single finger after adjustment report speed to be adjusted into v now:
v now = a , a < v max v max , a &GreaterEqual; v max ;
Wherein a is:
a = n 1 tf ;
Wherein t is detection time, and f is the current finger number touched of touch screen terminal identification.
The threshold value n of the coordinate points number that in the detection time of preferably, obtaining in described step (1), application layer is received maxfor:
n max=v max.f max.t;
V wherein maxfor the initial settings that report speed of single finger on touch-screen, the maximum of touch-screen reports speed; Described f maxthe maximal value of the finger number that can identify for the same time of touch-screen, t is detection time.
Further, in described step (3), the coordinate points number n that the application layer of touch screen terminal is received within detection time is:
n=v.f.t;
The speed that reports that wherein v is the single finger of current touch-screen, f is the current finger number touched of touch screen terminal identification.
Further, described detection time, t was 0.1 second, and described touch-screen reports the initial settings v of speed maxbe 80 points/second, the maximal value f of the finger number that the same time of described touch-screen can be identified maxbe 5, the threshold value n of the coordinate points number that the interior application layer of t detection time of obtaining is received maxbe 40 points.
Further, described setting value n 1for detection time, in t, take do not take the system ample resources, coordinate points number that while causing system card to pause as prerequisite, application layer is received, described setting value n 1be 24 points.
Preferably, the speed that reports of described touch-screen reports register adjustment by touch screen terminal.
The present invention has following advantage and effect with respect to prior art:
(1) the present invention carries out dynamic adjustment the in real time according to the current detection coordinate points number that in the time, application layer receives to the speed that reports of touch-screen; When the coordinate points number received within detection time when application layer is greater than setting value, reduce the speed that reports of single finger on touch-screen, with mitigation system, bear, to touch screen terminal, operation causes burden to the coordinate points number of avoiding application layer to receive too large quantity, thereby causes touch screen terminal the phenomenons such as the not smooth and card of operation to occur; When the coordinate points number received within detection time when application layer is less than setting value, on the rising touch-screen single finger report speed, to guarantee the work efficiency of touch screen terminal.The inventive method according to application layer in detection time received coordinate points number adjust in real time the speed that reports of the single finger of touch-screen, guarantee to refer to touch bring the coordinate points number to report the burden that can effectively reduce system in too much situation, guarantee to touch effect more.By the inventive method touch-screen, report the adjustment of speed neither can affect the touch effect of touch-screen, can not cause again the card of system to pause, also can promote user's experience simultaneously.
(2) setting value in the inventive method not taking the system ample resources, cause system card to pause to set under prerequisite, after therefore having guaranteed that touch-screen reports speed to adjust, touch effect unaffected.
The accompanying drawing explanation
Fig. 1 is the process flow diagram of the inventive method.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited to this.
Embodiment
As shown in Figure 1, the present embodiment discloses a kind of method that dynamic adjustment touch-screen reports speed, comprises the following steps:
(1) set a detection time, report the initial settings v of speed according to single finger on touch-screen maxand touch the maximal value f of the finger number that the same time of touch-screen can identify max, obtain the threshold value n of the coordinate points number that in detection time t, application layer is received maxfor:
n max=v max.f max.t;
V maxfor touch-screen reports the initial settings of speed, the maximum of touch-screen reports speed, f maxthe maximal value of the finger number that can identify for the same time of touch-screen, t is detection time.V in the present embodiment max=80 points/second, t=0.1S, f max=5; So n maxbe 40.
(2) according to establishing threshold value n maxset one and be less than threshold value n maxsetting value n 1, n wherein 1refer in detection time take do not take the system ample resources, coordinate points number that while causing system card to pause as prerequisite, application layer receives.
(3) in detection time t=0.1S, the current finger number f touched of touch screen terminal identification; According to current touch-screen report speed v, touch screen terminal calculates the coordinate points number n that in detection time, application layer is received, the coordinate points number n that wherein in the present embodiment, the application layer of touch screen terminal is received in detection time t is:
n=v.f.t;
The speed that reports that v is the single finger touch of current touch-screen, the current finger number touched that f is touch screen terminal identification.
(4) the coordinate points number n interior application layer of step (3) middle detection time of t received and the setting value n of coordinate points number 1compare:
If setting value n 1while being greater than n, the register that reports by touch screen terminal reduces the speed that reports of the single finger of current touch-screen;
If setting value n 1while being less than n, touch screen terminal reports the raise speed that reports of the single finger of current touch-screen of register;
Make the single finger after adjustment report speed to be adjusted into v now:
v now = a , a < v max v max , a &GreaterEqual; v max ;
Wherein a is:
a = n 1 tf ;
Setting value n in the present embodiment 1be 24 points, v max=80 points/second.
If the coordinate points number n that application layer is received being detected in time t in step (3) is 32, the current finger number f touched of touch screen terminal identification is 4, and to report speed be 80 points/second, now setting value n to current each finger 1be less than n, need to report the mode of speed to reduce the coordinate points number that application layer is received by reduction; Calculating a by step (4) is 60, and now the value of a is less than v maxtherefore, finger reports speed from 80 points/be adjusted into second v now=a=60.
If the coordinate points number n that application layer is received being detected in time t in step (3) is 20, the current finger number f touched of touch screen terminal identification is 2, and to report speed be 40 points/second, now setting value n to current each finger 1be greater than n, need to report the mode of speed to increase the coordinate points number that application layer is received by rising, to guarantee the work efficiency of touch-screen; Calculating a by step (4) is 120, now meets a>=v max, by finger, be to report speed to be adjusted into v now=60 points/second.
Above-described embodiment is preferably embodiment of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under Spirit Essence of the present invention and principle, substitutes, combination, simplify; all should be equivalent substitute mode, within being included in protection scope of the present invention.

Claims (6)

1. dynamically adjust the method that touch-screen reports speed for one kind, it is characterized in that, comprise the following steps:
(1) set a detection time, report the initial settings v of speed according to single finger on touch-screen maxand touch the maximal value of the finger number that the same time of touch-screen can identify, obtain the threshold value of the coordinate points number that interior application layer is received detection time;
(2) the setting value n who is less than threshold value of coordinate points number Threshold received according to application layer in step (1) 1;
(3) within detection time, the current finger number touched of touch screen terminal identification; According to the speed that reports of the single finger of current touch-screen, touch screen terminal calculates the coordinate points number n that in detection time, application layer is received;
(4) by step (3) coordinate points number n and setting value n that in middle detection time, application layer is received 1compare:
If setting value n 1while being greater than n, reduce the speed that reports of the single finger of current touch-screen;
If setting value n 1while being less than n, the speed that reports of the single finger of current touch-screen that raises;
Make the single finger after adjustment report speed to be adjusted into v now:
v now = a , a < v max v max , a &GreaterEqual; v max ;
Wherein a is:
a = n 1 tf ;
Wherein t is detection time, and f is the current finger number touched of touch screen terminal identification.
2. dynamic adjustment touch-screen according to claim 1 reports the method for speed, it is characterized in that the threshold value n of the coordinate points number that in the detection time of obtaining in described step (1), application layer is received maxfor:
n max=v max.f max.t;
V wherein maxfor the initial settings that report speed of single finger on touch-screen, the maximum of touch-screen reports speed; Described f maxthe maximal value of the finger number that can identify for the same time of touch-screen, t is detection time.
3. dynamic adjustment touch-screen according to claim 2 reports the method for speed, it is characterized in that, in described step (3), the coordinate points number n that the application layer of touch screen terminal is received within detection time is:
n=v.f.t;
The speed that reports that wherein v is the single finger of current touch-screen, f is the current finger number touched of touch screen terminal identification.
4. report the method for speed according to the dynamic adjustment touch-screen described in claim 3, it is characterized in that, described detection time, t was 0.1 second, and described touch-screen reports the initial settings v of speed maxbe 80 points/second, the maximal value f of the finger number that the same time of described touch-screen can be identified maxbe 5, the threshold value n of the coordinate points number that the interior application layer of t detection time of obtaining is received maxbe 40 points.
5. report the method for speed according to the dynamic adjustment touch-screen described in claim 4, it is characterized in that described setting value n 1be 24 points.
6. report the method for speed according to the described dynamic adjustment touch-screen of right 1, it is characterized in that, the speed that reports of described touch-screen reports register adjustment by touch screen terminal.
CN201310385235.2A 2013-08-29 2013-08-29 A kind of dynamic conditioning touch-screen reports the method for speed Expired - Fee Related CN103472946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310385235.2A CN103472946B (en) 2013-08-29 2013-08-29 A kind of dynamic conditioning touch-screen reports the method for speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310385235.2A CN103472946B (en) 2013-08-29 2013-08-29 A kind of dynamic conditioning touch-screen reports the method for speed

Publications (2)

Publication Number Publication Date
CN103472946A true CN103472946A (en) 2013-12-25
CN103472946B CN103472946B (en) 2016-03-09

Family

ID=49797827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310385235.2A Expired - Fee Related CN103472946B (en) 2013-08-29 2013-08-29 A kind of dynamic conditioning touch-screen reports the method for speed

Country Status (1)

Country Link
CN (1) CN103472946B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679336A (en) * 2015-03-12 2015-06-03 深圳市欧珀通信软件有限公司 Method and device for adjusting touch screen parameters
CN104991673A (en) * 2015-07-10 2015-10-21 上海斐讯数据通信技术有限公司 Method and system for self-matching data reporting rate of touch screen
CN105955611A (en) * 2016-04-26 2016-09-21 苏州乐聚堂电子科技有限公司 Multimedia file quick browsing method used for touch screen device
CN109842727A (en) * 2019-01-31 2019-06-04 Oppo广东移动通信有限公司 Report method, device, terminal and the storage medium of touching signals

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889022A (en) * 2005-06-28 2007-01-03 联想(北京)有限公司 Method and apparatus for switching contact control panel sampling rate
CN101930319A (en) * 2010-09-08 2010-12-29 敦泰科技有限公司 Touch information reporting method of touch screen
CN103235664A (en) * 2013-04-27 2013-08-07 深圳市金立通信设备有限公司 Terminal and control method of touch screen
US20130207925A1 (en) * 2012-02-15 2013-08-15 Andriy Ryshtun Multi-purpose stylus antenna

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889022A (en) * 2005-06-28 2007-01-03 联想(北京)有限公司 Method and apparatus for switching contact control panel sampling rate
CN101930319A (en) * 2010-09-08 2010-12-29 敦泰科技有限公司 Touch information reporting method of touch screen
US20130207925A1 (en) * 2012-02-15 2013-08-15 Andriy Ryshtun Multi-purpose stylus antenna
CN103235664A (en) * 2013-04-27 2013-08-07 深圳市金立通信设备有限公司 Terminal and control method of touch screen

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679336A (en) * 2015-03-12 2015-06-03 深圳市欧珀通信软件有限公司 Method and device for adjusting touch screen parameters
CN104679336B (en) * 2015-03-12 2017-10-17 广东欧珀移动通信有限公司 Adjust the method and device of touch-screen parameter
CN104991673A (en) * 2015-07-10 2015-10-21 上海斐讯数据通信技术有限公司 Method and system for self-matching data reporting rate of touch screen
CN105955611A (en) * 2016-04-26 2016-09-21 苏州乐聚堂电子科技有限公司 Multimedia file quick browsing method used for touch screen device
CN109842727A (en) * 2019-01-31 2019-06-04 Oppo广东移动通信有限公司 Report method, device, terminal and the storage medium of touching signals

Also Published As

Publication number Publication date
CN103472946B (en) 2016-03-09

Similar Documents

Publication Publication Date Title
US9658757B2 (en) Method and device for managing progress indicator display
CN105518590B (en) System and method for improved processing of touch sensor data
CN102662510B (en) The method realizing sectional drawing by multiple point touching
CN103049207B (en) handwriting input recognition system and method
US20170123590A1 (en) Touch Point Recognition Method and Apparatus
US20150242115A1 (en) Systems and methods for improved signal to noise ratio in touch systems
CN103488337B (en) A kind of method of adjusting sensitivity of touch screen in pad pasting situation
CN103268184A (en) Method and device for moving text cursor
CN103324325B (en) The detection method of multi-point touch misoperation and terminal
EP2793168A3 (en) Gesture recognition device, gesture recognition method, electronic apparatus, control program, and recording medium
CN103472946A (en) Method for dynamically adjusting reporting rate of touch screen
US20160154526A1 (en) Mis-touch Recognition Method and Device
WO2011150607A1 (en) Method and mobile terminal for automatically recognizing gesture
CN102902407B (en) A kind of touch-screen output display touches the method and apparatus of person&#39;s handwriting
CN108920066B (en) Touch screen sliding adjustment method and device and touch equipment
CN106445386B (en) Handwriting display method and device
CN105607853B (en) A kind of information processing method and electronic equipment
CN106502477B (en) Touch control method and device for terminal with pressure sensing layer
CN104317466A (en) Touch screen control method and touch screen device
CN104182049A (en) Non-contact type infrared two-dimensional gesture detection and recognition device and method
CN104991673A (en) Method and system for self-matching data reporting rate of touch screen
US20170052697A1 (en) Method and Apparatus for Realizing Human-Machine Interaction
KR101921399B1 (en) System and method for reducing shadow effects in touch systems
CN104714675A (en) Gesture recognition method and device
CN103176651B (en) A kind of hand-written information Quick Acquisition method

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
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160309

CF01 Termination of patent right due to non-payment of annual fee