A kind of pressure-sensitive recognition by pressing keys methodTechnical field
The invention belongs to technical field of touch control, particularly to a kind of recognition methodss of pressure-sensitive touch controlled key.
Background technology
In electronics field, there is application widely by key technology.As controllable device, for example, in household electrical applianceTelevision set, microwave oven, lampblack absorber etc., mobile phone, digital camera, electronic reader etc. in personal digital equipment, these equipmentAbove more or less there is key device.
All be equipped with and gone up forcetouch technology with a new generation of Apple mobile device, its good experience andEasy assembly technology makes to also obtain the favor of more and more manufacturers based on the key device of pressure sensitivity technology.And current pressure sensitivityThe hardware designs of formula button still follow the design of capacitance key, and that is, a sensing unit corresponds to a key induced areaDomain.There is obvious drawback on pressure-sensitive button, when user exists in this button determination processing mode that single sensing unit is carried outExist during the pressing of button periphery be triggered may be although false touch can be prevented by improving threshold value, but the carrying of trigger sensitivityHeight requires user to use during button from another point of view again to be needed larger triggering dynamics, reduces user experience.
As patent application 201510641420.2 discloses a kind of recognition by pressing keys device and method based on pressure transducer,Described included based on the recognition by pressing keys device of pressure transducer: detection module, for obtaining the first induction zone of pressure transducer3rd pressure value of the first pressure value in domain, the second pressure value of the second induction region and the 3rd induction region, described first senseRegion, described second induction region and described 3rd induction region is answered to be disposed adjacent successively;Comparing module, for calculating describedOne pressure value and the pressure difference value of described 3rd pressure value, and described pressure difference value is compared with default first threshold;Identification module, for described pressure difference value be less than or equal to described first threshold when, according to described second pressure value carry out byKey identifies.Although raising threshold value is passed through in this patent application can prevent false touch, the raising of this trigger sensitivity requires againNeed larger triggering dynamics when user is using button, be not easy to user and be controlled.
Content of the invention
Based on this, therefore it is an object of the invention to provide a kind of pressure-sensitive recognition by pressing keys method, this recognition methods is notWhile reducing user experience, improve the accuracy of pressure-sensitive recognition by pressing keys.
For achieving the above object, the technical scheme is that
A kind of pressure-sensitive recognition by pressing keys method is it is characterised in that in methods described, each pressure transducer is provided with manyIndividual (a plurality of) pressure sensitive unit, each pressure sensitive unit one pressure signal of corresponding output;Key position and feeling of stressUnit is answered to be in corresponding relation;And set an activation threshold value and proportion threshold value, it is more than triggering when a certain key press signal is detectedDuring threshold value, calculate the proportionate relationship of two pressure signals and its pressure signal around respectively, proportionate relationship meets proportion threshold valueThen it is judged to legal button, otherwise for illegal button.
Described activation threshold value, this activation threshold value is the physical quantity related to pressure signal size, and triggering threshold values can basisPractical situation is manually set;Described proportion threshold value, this proportion threshold value is related to two pressure signal size ratios;Described ratioThreshold values is 0.1-0.5.
Further, on the left of the button of described leftmost edge, on the right side of the button of rightmost edges, it is respectively arranged with a feeling of stressAnswer unit;So that ratio threshold can be calculated.
And further, the step of realizing of methods described is:
101st, obtain the pressure value of each button of key zone;
102nd, detect described pressure value successively, and determine whether that the pressure value of button, more than activation threshold value, isThen carry out next step, otherwise reacquire pressure value;
103rd, calculate the ratio value of two pressure values and this key press numerical value about this button respectively;
104th, two ratio values of 103 steps acquisitions and ratio threshold are compared, if two ratio values are respectively less thanProportion threshold value, then this button be judged to legal touch-control, be otherwise judged to illegal touch-control.
In described step 101, pressure signal is transferred to pressure transducer by pressure sensitive unit, then passes through analog-digital converterPressure signal is changed, obtains pressure value.
In described step 103, calculate two pressure values and the ratio value of this key press numerical value about this button, obtainTwo ratio values, ratio value 1=pressure value s_2/ pressure value s_3, ratio value 2=pressure value s_4/ pressure value s_3.
The present invention passes through to adjust the triggering dynamics that activation threshold value can set button, and adjustment proportion threshold value can set buttonTrigger range, processed the problem of recognition by pressing keys accuracy and user's health check-up simultaneously, user experience can not have been reducedMeanwhile, improve the accuracy of pressure-sensitive recognition by pressing keys.
Brief description
Fig. 1 is the press-key structure figure that the present invention is implemented.
Fig. 2 is the identification process figure that the present invention is implemented.
Fig. 3 is the touch-control schematic diagram that the present invention is implemented.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, rightThe present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, andIt is not used in the restriction present invention.
The present invention provides a kind of pressure-sensitive recognition by pressing keys method, is more than activation threshold value when a certain key press signal is detectedWhen, calculate the proportionate relationship of two pressure signals and its pressure signal around respectively, proportionate relationship meets proportion threshold value and then sentencesIt is set to legal touch controlled key, otherwise for illegal touch controlled key.
As shown in figure 1, being the structural representation of touch controlled key, in an embodiment of the present invention, setting pressure on key panel 101Force transducer 102, pressure transducer 102 comprises multiple pressure sensitive units 103, and pressure sensitive unit corresponds to 4 key zonesDomain 104 (abbreviation button), due to will calculate so the ratio threshold of 4 buttons, so, on the left of the button of leftmost edge, the rightestIt is respectively arranged with a pressure sensitive unit on the right side of the button at edge, be thus provided with 6 pressure sensitive units, middle 4Pressure sensitive unit is corresponding with key zone.
Set two judgment thresholds: activation threshold value and proportion threshold value.It is assumed that pre-seting activation threshold value is 100.It is assumed that it is defaultValue proportion threshold value is 0.3.
As shown in Fig. 2 the present invention is realized specific recognition methodss being:
S101, the transfer pressure induced signal of acquisition button, and obtain the pressure value of 6 pressure sensitive units;
S102, successively 6 pressure values and activation threshold value are contrasted, when finding that certain pressure value is more than firing levelExecution step s103 during value, otherwise re-executes step s101.
S103, calculate the ratio of two pressure values and this pressure value about this pressure value respectively, such as No. 3 feelings of stressAnswer cell pressure numerical value 120 to be more than activation threshold value, then calculate ratio value 1=pressure value s_2/ pressure value s_3, ratio value 2=pressure value s_4/ pressure value s_3 (s_1 > no, s_2 > button 1, s_3 > button 2, s_4 > button3, s_5 > button 4, s_6 > no, s_1 is the pressure value of the pressure sensitive unit on the left of the button of leftmost edge, s_6Pressure value for the pressure sensitive unit on the right side of the button of rightmost edges).
S104, ratio value 1, ratio value 2 are compared with ratio threshold respectively, when ratio value 1 is both less than with ratio value 2When 0.3, s_3 is effective button triggering, otherwise invalid.
S105, continue executing with step s101, circulation is detected, obtain pressure value.
As shown in Figure 3 it is assumed that having 3 pressure sensitive units (button), number consecutively 1,2,3.
When user is pressed against No. 2 buttons, when No. 2 keys upwards of user's pressing, when user is pressed against No. 2 button right sidesDuring side, 3 pressure sensitive cell signal changes are all different.
As can be seen here, different in the proportionate relationship of diverse location signal intensity, when user is pressed against in No. 2 key induced areasWhen, No. 2 pressure sensitive element output signals are maximum, and the pressure signal of 1, No. 3 outputs is less, according to this proportionate relationship, permissibleConfirm the legitimacy of user's pressing, that is, signal proportion relation meets and can confirm during certain condition that button is effective.
The present invention passes through to adjust the triggering dynamics that activation threshold value can set button, and adjustment proportion threshold value can set buttonTrigger range, processed the problem of recognition by pressing keys accuracy and user's health check-up simultaneously, user experience can not have been reducedMeanwhile, improve the accuracy of pressure-sensitive recognition by pressing keys.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present inventionAny modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.