A kind of method of toch control and touch control device
Technical field
The present invention relates to a kind of method of toch control, relate in particular to a kind of key response control technology of method of toch control, and relate to a kind of touch control device, can be widely used in products such as TV, computer, mobile phone, refrigerator.
Background technology
The touching technique implementation of current popular generally all is to change by lax oscillating circuit inductance capacitance, promptly when not pointing when pressing capacitor fixing; When finger was pressed, electric capacity changed.The realization of software algorithm is that the comparator by chip obtains unit of capacity and discharges and recharges number of times in the time, by this changing value relatively, has determined whether that finger presses.
Existing algorithm is by relatively discharging and recharging number of times, when discharging and recharging difference that number of times and basis discharge and recharge number of times when surpassing certain threshold value, judging has button to press, shortcoming such as if improper measures is followed the tracks of in Anti-interference Design and environmental change, can have that sensitivity is low, poor anti-interference and induction range are little.Enterprise needs for saving cost simultaneously, and current touch key-press adopts chip generally not have unnecessary pin, and is much even not enough.So just exist and adopt less SENSOR (transducer) to represent more button.For example: realize 7 with five sense lines and press bond number.Software just need be represented a button by the combination sense line in order to realize this function.Existing algorithm demonstrates its weak point especially.
In electronic product, extensively adopted touch key-press at present,,, not only can not promote the class of product, had influence on the product reputation on the contrary if the solution of problems such as poor anti-interference and sensitivity is bad such as products such as television set, mobile phone, PDA, refrigerator, washing machines.Concrete manifestation is as follows: if the threshold value setting is too low, and easy external interference; If the threshold value setting is too high, structure and barbola work are had relatively high expectations.
Summary of the invention
The purpose of this invention is to provide a kind of method of toch control, can improve the anti-interference degree that touches in the control procedure, include the product stability of this touching technique, satisfy the demands of consumers with raising.
Technical scheme of the present invention is that a kind of method of toch control comprises: the cycle detection key-press status, and detect and be valid function, then export the operation signal of described button, otherwise repetitive cycling is to the detection of described button; Described method also comprises: when testing result is one or more buttons when being operated, then screen wherein operated button, and the valid function number of times of record button, and make the valid function number of times of other buttons make zero.
As a preferred embodiment of the invention, described cycle detection key-press status also comprises: all be operated if testing result is a button, judge that then this time button operation is invalid.
As a preferred embodiment of the invention, when testing result is one or more buttons when being operated, judge whether to have only a button to be operated, if having only a button to be operated, then write down the valid function number of times of this button; If at least two buttons are operated, judge that then this time button operation is invalid.
As a preferred embodiment of the invention, described operation signal is a voltage signal, the effective degree of described button be secondary or three times and more than, then export the voltage signal of described button; Otherwise repetitive cycling is to the detection of described button.
As a preferred embodiment of the invention, described method also comprises: threshold value is set, whether the difference of capacitor charge and discharge number of times fiducial value that calculating is connected with current button and current capacitor charge and discharge time numerical value is greater than threshold value, then judge the efficient in operation of current button in this way, otherwise judge that current button is not operated.
As a preferred embodiment of the invention, described button also is connected with the first sensor and second transducer, detect the first sensor and second transducer that current button links to each other, if the testing result that has in the first sensor and second transducer at least is that button is not operated, then repeat detection to button; Otherwise, judge the currency of first sense line and second sense line and whether greater than threshold values, as greater than then judging being operating as effectively of current button.
As a preferred embodiment of the invention, threshold values herein adds that by the second base value sum of first base value of first sense line and second sense line sensitivity adjustment value forms.
As a preferred embodiment of the invention, sensitivity adjustment value herein is 10.
In addition, the present invention also provides a kind of touch control device, can be widely used on the products such as refrigerator, TV, mobile phone, computer, to improve the antijamming capability of touching technique.
A kind of touch control device, the state of described control unit cycle detection key system, described control unit comprises: detecting unit, the state of judging key system is valid function, then export the operation signal of described button, otherwise repetitive cycling is to the detection of described button; Record cell, the testing result of record detecting unit when testing result is one or more buttons when being operated, is then screened wherein operated button, the valid function number of times of record button, and make the valid function number of times of other buttons make zero.
As a preferred embodiment of the invention, described detecting unit also comprises: judging unit, if being button, testing result all is operated, and judge that then this time button operation is invalid; Described operation signal is a voltage signal, the effective degree of described button be secondary or three times and more than, then export the voltage signal of described button; Otherwise repetitive cycling is to the detection of described button.
As a preferred embodiment of the invention, when described detecting unit testing result is one or more buttons when being operated, judge whether to have only a button to be operated, if having only a button to be operated, the valid function number of times of this button of recording unit records then; If at least two buttons are operated, judge that then this time button operation is invalid.
As a preferred embodiment of the invention, be provided with threshold value in the described control unit, whether the difference of capacitor charge and discharge number of times fiducial value that control unit calculating is connected with current button and current capacitor charge and discharge time numerical value is greater than threshold value, then judge the efficient in operation of current button in this way, otherwise judge that current button is not operated.
As a preferred embodiment of the invention, described button also is connected with the first sensor and second transducer, detect the first sensor and second transducer that current button links to each other, if the testing result that has in the first sensor and second transducer at least is that button is not operated, then repeat detection to button; Otherwise, judge the currency of first sense line and second sense line and whether greater than threshold values, as greater than then judging being operating as effectively of current button.
As a preferred embodiment of the invention, threshold values herein adds that by the second base value sum of first base value of first sense line and second sense line sensitivity adjustment value forms.
As a preferred embodiment of the invention, sensitivity adjustment value herein is 10.
Among the present invention, when detecting button and all operated, system thinks that current operation is to disturb, thereby decision operation is invalid; And when detecting valid function, the valid function number of times of other buttons of meeting zero clearing avoids the situation of misoperation to be output; When the effective degree of operation reaches 2 or 3 times, just export the voltage of this button especially, make antijamming capability be enhanced.
Description of drawings
Accompanying drawing 1 is the composition schematic diagram of television set in the preferred embodiment of the present invention;
Accompanying drawing 2 is the schematic flow sheet of method of toch control in the preferred embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing preferred embodiment of the present invention is described in detail, thereby protection scope of the present invention is made more explicit defining so that advantages and features of the invention can be easier to be it will be appreciated by those skilled in the art that.
In the existing consumer products touching technique being arranged all a lot, such as television set, mobile phone, refrigerator etc., be that example illustrates implementation process of the present invention below with the television set, but the present invention is not limited thereto.
Usually the touching technique of television set such as carrying out menu operation or regulating volume, program etc., can provide the mode of touch operation.But, in case when electronic jamming was arranged, existing touch control technology may can judge all that all buttons have been operated, thereby influences the failure rate and the stability of touching technique.
As shown in Figure 1, in an embodiment of the present invention, there is control unit television set inside, control unit comprises detecting unit and record cell, the detection key system of detecting unit circulation, key system all is made up of a plurality of buttons usually, supposes to be made up of A, B, C, D, five buttons of E herein.Record cell also comprises judging unit, when control unit detect A in the key system, B, C, D, when five buttons of E all are operated, judging unit judges that directly this action is a system interference, thereby judges that this operation is invalid, has so just avoided the influence of system interference to touch operation.If it is valid function that detecting unit detects the state of key system, then export the operation signal of described button; Record cell, the testing result of record detecting unit when testing result is one or more buttons when being operated, is then screened wherein operated button, the valid function number of times of record button, and make the valid function number of times of other buttons make zero.
As shown in Figure 2, in the schematic flow sheet of method of toch control of the present invention, method of toch control of the present invention comprises: S1 cycle detection key system, by the cycle detection of control unit to the case system; Enter the S2 step, judge whether that button all is not operated, all be not operated as button and then turn back to the S1 step, otherwise enter the S3 step; S3 judges whether that button all is operated, and then returns the S1 step in this way, otherwise enters the S4 step; S4 judges whether button operation is effective, then returns the S1 step as invalid, otherwise enters the S5 step; S5 writes down the valid function number of times of current button, and makes the effective degree of other buttons make zero; Whether S6 judges the valid function number of times of current button more than or equal to three times, otherwise returns the S1 step, is then to enter the S8 step; S8 exports the voltage of current button.
Embodiment provided by the invention comprises by sense line of keyed jointing and two kinds of situations of two sense lines, describes the implementation procedure that the present invention under two kinds of situations touches control technology below respectively in detail.
When a button only connects a sense line, threshold values at first prestores in television set, five buttons of A, B, C, D, E in the control unit elder generation cycle detection key system of television set inside, according to the difference of capacitor charge and discharge number of times fiducial value and current capacitor charge and discharge number of times and the size of threshold value, judge whether this button is operated.When control unit detect A in the key system, B, C, D, when five buttons of E all are operated, control unit judges that directly this action is a system interference, thus this time operation of judging all buttons is invalid.Be operated if testing result is no button, then repeat detection key system; If there is the part button to be operated, suppose that the B button is operated, then control unit adds one to the effective degree of B button, and removes the effective degree of A, C, D, four buttons of E, so just makes and has only the effective degree of B button non-vanishing; Control unit detects B button effective degree again and whether is greater than or equal to three times then, if then export the voltage of B button, carries out touch operation thereby make the B button be in the whole key system unique being considered to be in; Otherwise, repeat the cycle detection step of control unit to key system A, B, C, D, five buttons of E.This embodiment has just exemplified the B button and has been operated separately, in fact, also exist two buttons or a plurality of button to be carried out the situation of touch operation simultaneously, principle is identical, no longer repeat herein, have only when A, B, C, D, five button Be Controlled of E unit to detect the while, assert that just this is a system interference in operation, and this operation judges is invalid.
When one when being bonded to few two sense lines, in television set internal preset sensitivity adjustment value, it is slightly little that this sensitivity adjustment value can be provided with, thereby can improve the contact range that touches control, is preferably 10 herein.Control unit in the television set is the cycle detection key system at first, and key system equally herein is made up of A, B, C, D, five buttons of E for example.Each button hypothesis herein meets two sense line X1 and X2, corresponding, every sense line all can have base value and currency, supposes to be respectively X1 currency, X2 currency, X1 base value and X2 base value, also has a sensitivity adjustment value in addition.
Touch in the control, be not operated, then directly get back to the step of duplicate detection key system if testing result has button for any one interpretation in two sense line X1 of each button correspondence and X1 currency among the X2 and the X2 currency; If the currency of X1 and two sense lines of X2 judges that all this button is operated, whether then calculate X1 currency and X2 currency sum greater than x1 base value, X2 base value and sensitivity adjustment value sum, if result of calculation is effectively, think earlier that then the operation of this button is effective.When control unit detect A in the key system, B, C, D, when five buttons of E all are operated, control unit judges that directly this action is a system interference, thus this time operation of judging all buttons is invalid.Like this then avoided the external interference of system to be identified as being normal button operation, having improved the antijamming capability of touching technique by mistake.
When control unit detected the part button and is operated, when being judged valid function such as the B button, control unit added one to the effective degree of B button, and removed the valid function number of times of A, C, D, four buttons of E.Also may be that two or more buttons are simultaneously operated herein, be simultaneously operated, but system be in order to improve antijamming capability such as B and C, if acquiescence A, B, C, D, five buttons of E are simultaneously operated, the operation void in whole of five buttons of this time then.Since System Cleaning current button think the valid function number of times of button, so other buttons need count from zero again as being identified as normal running, thus the interference free performance of having guaranteed each button all is improved.
Control unit detects key system afterwards, and whether statistics has the effective degree of button to be greater than or equal to three, if having then export the voltage of this button.Otherwise, the step of getting back to control unit cycle detection key system.In the embodiment of the invention, effective degree 3 times is as basis for estimation, but in the actual mechanical process, if set effective degree 2 times as basis for estimation, can realize the intent of the present invention equally, and can improve the operating efficiency of button, and, can filter equally for occurrent misoperation or interference.Certainly, if the valid function number of times be arranged to 4 or more than, also be feasible, but the efficient of button operation has been subjected to influence.
As can be seen, when the button that detects key system was all operated, system thought that current operation is to disturb, thereby judges this time operation void in whole, made that touching control has avoided external interference, has improved performance from top embodiment; When detecting valid function, the valid function number of times of other buttons of control unit meeting zero clearing avoids the situation of misoperation to be output; When the effective degree of operation reaches 3 times, just export the voltage of this button, thereby avoided misoperation or environmental interference especially, make the antijamming capability of whole touch control technology be enhanced.
The above; it only is the specific embodiment of the present invention; but protection scope of the present invention is not limited thereto; any those of ordinary skill in the art are in the disclosed technical scope of the present invention; variation or the replacement that can expect without creative work all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range that claims were limited.