CN107957827A - A kind of touch control identification method and system based on capacitive touch panel - Google Patents

A kind of touch control identification method and system based on capacitive touch panel Download PDF

Info

Publication number
CN107957827A
CN107957827A CN201711456551.9A CN201711456551A CN107957827A CN 107957827 A CN107957827 A CN 107957827A CN 201711456551 A CN201711456551 A CN 201711456551A CN 107957827 A CN107957827 A CN 107957827A
Authority
CN
China
Prior art keywords
key
button
press
key assignments
touch
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
CN201711456551.9A
Other languages
Chinese (zh)
Other versions
CN107957827B (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.)
Shenzhen Fei Rui Polytron Technologies Inc
Original Assignee
Shenzhen Fei Rui Polytron Technologies Inc
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 Shenzhen Fei Rui Polytron Technologies Inc filed Critical Shenzhen Fei Rui Polytron Technologies Inc
Priority to CN201711456551.9A priority Critical patent/CN107957827B/en
Publication of CN107957827A publication Critical patent/CN107957827A/en
Application granted granted Critical
Publication of CN107957827B publication Critical patent/CN107957827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Abstract

The invention discloses a kind of touch control identification method based on capacitive touch panel, it comprises the following steps:The key assignments of each single button of default and Macintosh, and set the key assignment combination scope licensed by simple function;System records the state of each button respectively, sets the rising edge indication and trailing edge mark of each button;System records the duration of long-press key pressing, and sets the mark of corresponding keys long-press;System defines the ranking order of each button, and generate short-press key assignments and long-press key assignments according to above-mentioned setting;System receives key command input by user, and accordingly performs operation according to the progress of key value tolerance band.A kind of touch-control identifying system based on capacitive touch panel, it includes:Key assignments setup module, key-press status setup module, button determining module, button execution module.It not only ensure that recognition accuracy, but also not increase recognition time, not influence sensitivity.It is widely used in touch-control field.

Description

A kind of touch control identification method and system based on capacitive touch panel
Technical field
The present invention relates to touch-control field, is specially a kind of touch control identification method and system based on capacitive touch panel.
Background technology
Capacitance touch button is better than traditional mechanical key, capacitance touch in good appearance and service life etc. The application field of button is also therefore increasingly extensive, including household electrical appliances, consumer electronics, Industry Control and mobile equipment etc..
But with the increase of touch function requirement, it is desirable to the size of touch key-press is less and less, more and more crowded, Thus bring the problems such as manipulation is difficult, and recognition by pressing keys is slow, and error recognition rate is high.Respectively small by key spacing, many buttons have length The difference in functionality of short-press, and the length specific function of two or three of key combinations.Using common stabilization processing mode, can elongate Judge the time, can also judge by accident, fail to judge.
Currently in order to meeting that client increases touch key-press function and quantity demand, solution is to reduce to touch as much as possible The size of button, difference set the sensitivity of different key, and the button operation of short time appearance is deleted with the method for time filtering, Increase judges the recognition time and number of button, pulls open the distance between button, sacrifices aesthetic appearance come the arranged keys that misplace, increasing Key spacing, or expand panel area.This virtually adds hardware cost, also has to detract product for Functional Requirement Face value, reduce the pouplarity of product.
Therefore the technology is necessary to be improved.
The content of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide a kind of touch-control identification based on capacitive touch panel Method and system.
The technical solution adopted in the present invention is:
The present invention provides a kind of touch control identification method based on capacitive touch panel, it comprises the following steps:
The key assignments of each single button of default and Macintosh, and set the key assignment combination scope licensed by simple function;
System records the state of each button respectively, sets the rising edge indication and trailing edge mark of each button;
System records the duration of long-press key pressing, and sets the mark of corresponding keys long-press;
System detectio to multiple touch key-press occur at the same time in short-term when, according to the touch degree of single touching detected Value, selects the relatively high key assignments of touch degree, abandons the relatively low key assignments of touch degree;
System defines the ranking order of each button, and generate short-press key assignments and long-press key assignments according to above-mentioned setting;
System receives key command input by user, and accordingly performs operation according to the progress of key value tolerance band.
As the improvement of the technical solution, the state of each button, including without by/pressing/in pressing/release.
As the improvement of the technical solution, the method further includes:After detecting that button reaches stable time interval, The rising edge indication or trailing edge mark of button are set.
As the improvement of the technical solution, the time interval includes compressing time interval and release time interval, wherein For the compressing time at intervals of 50ms to 100ms, the release time interval is 10ms to 30ms.
Further, the scope that system is defined according to key assignments, the long-short button key assignments that will determine that out, with reference to detect by The changing condition of key assignments, filters out the touch key assignments of interference, and ruling exports currently valid key assignments.
On the other hand, the present invention also provides a kind of touch-control identifying system based on capacitive touch panel, it includes:
Key assignments setup module, the key assignments of each single button and Macintosh is set for performing step system, and is set single Key assignment combination scope licensed by function;
Key-press status setup module, the state of each button is recorded for performing step system respectively, sets the upper of each button Rise along mark and trailing edge mark;System records the duration of long-press key pressing, and sets the mark of corresponding keys long-press;
System detectio to multiple touch key-press occur at the same time in short-term when, according to the touch degree of single touching detected Value, selects the relatively high key assignments of touch degree, abandons the relatively low key assignments of touch degree;
Button determining module, for performing step system according to above-mentioned setting, defines the ranking order of each button, and generate Short-press key assignments and long-press key assignments;
Button execution module, key command input by user is received for performing step system, and is permitted according to key value Scope carries out accordingly performing operation.
The beneficial effects of the invention are as follows:Touch control identification method and system provided by the invention based on capacitive touch panel, On the basis of hardware cost is not increased, solves the problems, such as the difficult identification of crowded touch key-press panel button.The long-press work(of button Energy (such as more than 10S) will not the reclocking because of finger fine motion or touching unintentionally.Though button distance is near but not because slightly Micro- deviation and it is invalid.The loosening of the priority of Macintosh and middle indivedual keys will not cause the elongation of button resolving time.It is more current General delay stabilization filtering button, for this programme on the basis of hardware cost is not increased, it not only ensure that recognition accuracy, but also Do not increase recognition time, do not influence sensitivity.Meanwhile using modularized design, it can flexibly increase and decrease single function and the combination of button Function.
Brief description of the drawings
The embodiment of the present invention is described further below in conjunction with the accompanying drawings:
Fig. 1 a, 1b are the control schematic diagrams of first embodiment of the invention;
Fig. 2 is the schematic diagram of second embodiment of the invention.
Embodiment
It should be noted that in the case where there is no conflict, the feature in embodiment and embodiment in the application can phase Mutually combination.
With reference to Fig. 1 a, 1b, the present invention provides a kind of touch control identification method based on capacitive touch panel, it includes following step Suddenly:
The key assignments of each single button of default and Macintosh, and set the key assignment combination scope licensed by simple function;
The key assignments license array of different type key is defined, its purpose is to the physical configuration and priority according to button, comes Determine each function in short-press and long on time tolerable scope., may be short when by middle key for example some fingers is big When trigger one in button up and down, software can recognize that out, on the basis of not increasing and judging the time, intelligently Ignore this short-term operation, still lock current keypress function.
System records the state of each button respectively, sets the rising edge indication and trailing edge mark of each button;
The purpose is to record the state of a button:Without by/pressing/in pressing/release.When reaching basicly stable Between after threshold such as presses 70ms/ releases 30ms, if value is to the rising edge indication or trailing edge mark of hardware.
System records the duration of long-press key pressing, and sets the mark of corresponding keys long-press;
System detectio to multiple touch key-press occur at the same time in short-term when, according to the touch degree of single touching detected Value, selects the relatively high key assignments of touch degree, abandons the relatively low key assignments of touch degree;
System defines the ranking order of each button, and generate short-press key assignments and long-press key assignments according to above-mentioned setting;
Key-press status data during the purpose is to record more key pressings, for judging touching unintentionally in short-term for other buttons. If multikey triggers at the same time, judge which key assignments number finger is more likely to according to the offset of button output, i.e., according to each key The degree touched accepts or rejects button, i.e. key assignments competition and ruling.
The scope defined according to key assignments, the long-short button key assignments that will have determined that, with reference to the value of current generation button Changing condition, filters out those touch key assignments in short-term unintentionally, determines that the real key of user is intended to, ruling output currently has The key assignments of effect.Specifically method is:The short button value of long keying key assignments that this section come into force and appearance is recorded per 300ms, Retain the length key key assignments of nearest 900ms altogether, these values are to roll to preserve, i.e., whenever producing new long-short button value, are stored into " current 300ms record windows memory block ", and the value of former " current 300ms record windows memory block " be stored into " shortly past 300ms record windows memory block ", exist it is former " shortly past 300ms record windows memory block " value be stored into " 300ms in the early time Record window memory block ", the value of former " 300ms record windows memory block in the early time " are dropped.I.e. so-called " pushing box ".
Using the above-mentioned key assignments that these are clearly regenerated, the function mark to be performed uniformly is set:Invalid key operation, Three key class long-press operate, the operation of three key class short-press, the operation of two key class long-press, the operation of two key class short-press, and the operation of singly-bound class long-press is single Key class short-press operates.Aggregation process here, easy to extend and change.
System receives key command input by user, and accordingly performs operation according to the progress of key value tolerance band.
As the improvement of the technical solution, the state of each button, including without by/pressing/in pressing/release.
As the improvement of the technical solution, the method further includes:After detecting that button reaches stable time interval, The rising edge indication or trailing edge mark of button are set.
As the improvement of the technical solution, the time interval includes compressing time interval and release time interval, wherein For the compressing time at intervals of 50ms to 100ms, the release time interval is 10ms to 30ms.
Further, the scope that system is defined according to key assignments, the long-short button key assignments that will determine that out, with reference to detect by The changing condition of key assignments, filters out the touch key assignments of interference, and ruling exports currently valid key assignments.
This programme is increased without hardware cost, and pitch routing between the button recommended using touch key-press chip used, is adopted The button area recommended with touch key-press chip used sets button size, without worrying the crowded of button, to realize panel Beautiful arrangement create stringent environment.It does not increase the identification time of button, it is possible to reduces the erroneous judgement chance and mistake of button Sentence chance, the sensitivity of periphery touch key-press will not be sacrificed in order to realize the function of individual keys.And the present invention uses Key assignments identification function, is divided into four modules by modularized design:Key assignments setup module, key-press status setup module, button determine Module and button execution module.Different MCU platforms are changed and be transplanted to, key assignments setup module need to be only changed and button performs mould Definition in the block, easy to extend and define the function of single button, also can easily increase and decrease and change determining for combination button Justice.
With reference to Fig. 2, the present invention also provides a kind of touch-control identifying system based on capacitive touch panel, it includes:
Key assignments setup module, the key assignments of each single button and Macintosh is set for performing step system, and is set single Key assignment combination scope licensed by function;
Key-press status setup module, the state of each button is recorded for performing step system respectively, sets the upper of each button Rise along mark and trailing edge mark;System records the duration of long-press key pressing, and sets the mark of corresponding keys long-press;
System detectio to multiple touch key-press occur at the same time in short-term when, according to the touch degree of single touching detected Value, selects the relatively high key assignments of touch degree, abandons the relatively low key assignments of touch degree;
Button determining module, for performing step system according to above-mentioned setting, defines the ranking order of each button, and generate Short-press key assignments and long-press key assignments;
Button execution module, key command input by user is received for performing step system, and is permitted according to key value Scope carries out accordingly performing operation.
Touch control identification method and system provided by the invention based on capacitive touch panel, are not increasing the base of hardware cost On plinth, solves the problems, such as the difficult identification of crowded touch key-press panel button.The long-press function (such as more than 10S) of button will not be because Finger fine motion or touching unintentionally and reclocking.Though button distance is near but not invalid because of somewhat deviation.Macintosh The loosening of priority and middle indivedual keys will not cause the elongation of button resolving time.Relatively general at present delay stabilization filtering is pressed Key, this programme is not on the basis of hardware cost is increased, it not only ensure that recognition accuracy, but also not increase recognition time, not shadow Ring sensitivity.Meanwhile using modularized design, it can flexibly increase and decrease the single function and combination function of button.
Above is the preferable of the present invention is implemented to be illustrated, but the invention is not limited to the implementation Example, those skilled in the art can also make a variety of equivalent variations on the premise of without prejudice to spirit of the invention or replace Change, these equivalent deformations or replacement are all contained in the application claim limited range.

Claims (6)

1. a kind of touch control identification method based on capacitive touch panel, it is characterised in that it comprises the following steps:
The key assignments of each single button of default and Macintosh, and set the key assignment combination scope licensed by simple function;
System records the state of each button respectively, sets the rising edge indication and trailing edge mark of each button;
System records the duration of long-press key pressing, and sets the mark of corresponding keys long-press;
System detectio to multiple touch key-press occur at the same time in short-term when, according to the touch degree value of single touching detected, choosing Go out the relatively high key assignments of touch degree, abandon the relatively low key assignments of touch degree;
System defines the ranking order of each button, and generate short-press key assignments and long-press key assignments according to above-mentioned setting;
System receives key command input by user, and accordingly performs operation according to the progress of key value tolerance band.
2. the touch control identification method according to claim 1 based on capacitive touch panel, it is characterised in that:Each button State, including without by/pressing/in pressing/release.
3. the touch control identification method according to claim 1 based on capacitive touch panel, it is characterised in that the method is also Including:After detecting that button reaches stable time interval, the rising edge indication or trailing edge mark of button are set.
4. the touch control identification method according to claim 3 based on capacitive touch panel, it is characterised in that between the time Every including compressing time interval and release time interval,
For wherein described compressing time at intervals of 50ms to 100ms, the release time interval is 10ms to 30ms.
5. the touch control identification method according to any one of claims 1 to 4 based on capacitive touch panel, it is characterised in that The scope that system is defined according to key assignments, the long-short button key assignments that will determine that out, with reference to the changing condition of the key value detected, mistake The touch key assignments of interference is filtered, ruling exports currently valid key assignments.
6. a kind of touch-control identifying system based on capacitive touch panel, it is characterised in that it includes:
Key assignments setup module, the key assignments of each single button and Macintosh is set for performing step system, and sets simple function Licensed key assignment combination scope;
Key-press status setup module, the state of each button is recorded for performing step system respectively, sets the rising edge of each button Mark and trailing edge mark;System records the duration of long-press key pressing, and sets the mark of corresponding keys long-press;
System detectio to multiple touch key-press occur at the same time in short-term when, according to the touch degree value of single touching detected, choosing Go out the relatively high key assignments of touch degree, abandon the relatively low key assignments of touch degree;
Button determining module, for performing step system according to above-mentioned setting, defines the ranking order of each button, and generate short-press Key assignments and long-press key assignments;
Button execution module, key command input by user is received for performing step system,
And carried out accordingly performing operation according to key value tolerance band.
CN201711456551.9A 2017-12-28 2017-12-28 Touch identification method and system based on capacitive touch panel Active CN107957827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711456551.9A CN107957827B (en) 2017-12-28 2017-12-28 Touch identification method and system based on capacitive touch panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711456551.9A CN107957827B (en) 2017-12-28 2017-12-28 Touch identification method and system based on capacitive touch panel

Publications (2)

Publication Number Publication Date
CN107957827A true CN107957827A (en) 2018-04-24
CN107957827B CN107957827B (en) 2021-09-24

Family

ID=61956921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711456551.9A Active CN107957827B (en) 2017-12-28 2017-12-28 Touch identification method and system based on capacitive touch panel

Country Status (1)

Country Link
CN (1) CN107957827B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111820710A (en) * 2019-04-22 2020-10-27 浙江绍兴苏泊尔生活电器有限公司 Cooking appliance and function state setting method thereof
CN115963932A (en) * 2023-03-16 2023-04-14 苏州多感科技有限公司 Method and system for identifying user pressing operation based on optical flow sensor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727261A (en) * 2008-10-17 2010-06-09 华硕电脑股份有限公司 Page operation method and electronic device
EP2226715A2 (en) * 2009-03-02 2010-09-08 Pantech Co., Ltd. Music playback apparatus and method for music selection and playback
CN101957722A (en) * 2010-09-28 2011-01-26 华为终端有限公司 Touch screen input control method and device as well as mobile phone
CN102929402A (en) * 2012-10-22 2013-02-13 李新宇 Character input method and character input device based on one-key click or multi-key simultaneous click
CN105930065A (en) * 2015-12-08 2016-09-07 中国银联股份有限公司 Operating command input method, background device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727261A (en) * 2008-10-17 2010-06-09 华硕电脑股份有限公司 Page operation method and electronic device
EP2226715A2 (en) * 2009-03-02 2010-09-08 Pantech Co., Ltd. Music playback apparatus and method for music selection and playback
CN101957722A (en) * 2010-09-28 2011-01-26 华为终端有限公司 Touch screen input control method and device as well as mobile phone
CN102929402A (en) * 2012-10-22 2013-02-13 李新宇 Character input method and character input device based on one-key click or multi-key simultaneous click
CN105930065A (en) * 2015-12-08 2016-09-07 中国银联股份有限公司 Operating command input method, background device and terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
乔淑云等主编: "大学计算机实践操作 WINDOWS 7+OFFICE 2010", 《大学计算机实践操作 WINDOWS 7+OFFICE 2010 *
广东省环境保护监控中心站编著: "珠江三角洲区域空气监控网络QA/QC手册", 《珠江三角洲区域空气监控网络QA/QC手册 *
郭绍义等主编: "电子海图显示与信息系统", 《电子海图显示与信息系统 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111820710A (en) * 2019-04-22 2020-10-27 浙江绍兴苏泊尔生活电器有限公司 Cooking appliance and function state setting method thereof
CN115963932A (en) * 2023-03-16 2023-04-14 苏州多感科技有限公司 Method and system for identifying user pressing operation based on optical flow sensor

Also Published As

Publication number Publication date
CN107957827B (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN105653049B (en) Keyboard with touch sensitive elements
CN101727233B (en) Electronic apparatus and touch control method thereof
CN107025019B (en) Virtual key interaction method and terminal equipment
CN105045454A (en) Method for preventing from wrongly touching terminal and terminal
US20120019445A1 (en) Keyboard and input method thereof
CN107294522A (en) Response method, device, storage medium and electronic equipment based on touch key-press
CN107340910A (en) A kind of response method of touch key-press, device, storage medium and electronic equipment
CN102929425B (en) A kind of touch key control method and device
CN106775087A (en) A kind of touch-screen control method of mobile terminal, device and mobile terminal
CN103984495A (en) Operating method and electronic device
CN105867821A (en) Icon arranging method and device and terminal
CN103914243A (en) Information processing method and electronic equipment
CN102799292A (en) Touch control method, device and electronic equipment
CN104932828A (en) Information processing method and electronic equipment
CN103218138A (en) Touch terminal and switching method of application programs thereof
CN105022561A (en) Touch screen control apparatus and method and mobile terminal
CN105912208A (en) Method and apparatus for switching display interfaces
CN104035713A (en) Soft keyboard operating method and device
CN105159566A (en) Terminal, method and device for processing key signals of terminal
CN104166473A (en) Input device and function switching method
CN107957827A (en) A kind of touch control identification method and system based on capacitive touch panel
CN105759998A (en) Touch computer keyboard system and key judgment method
CN105389059A (en) Key user-defined touch function implementation method and apparatus
US20160188024A1 (en) Information Processing Method And Electronic Device
US20180234845A1 (en) Mobile terminals

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant