CN116610224A - Multi-click trigger processing method for capacitive stylus, readable medium and capacitive stylus - Google Patents
Multi-click trigger processing method for capacitive stylus, readable medium and capacitive stylus Download PDFInfo
- Publication number
- CN116610224A CN116610224A CN202310607032.7A CN202310607032A CN116610224A CN 116610224 A CN116610224 A CN 116610224A CN 202310607032 A CN202310607032 A CN 202310607032A CN 116610224 A CN116610224 A CN 116610224A
- Authority
- CN
- China
- Prior art keywords
- holding
- capacitive stylus
- capacitance value
- user
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 22
- 238000001514 detection method Methods 0.000 claims abstract description 46
- 238000005259 measurement Methods 0.000 claims abstract description 39
- 230000004044 response Effects 0.000 claims abstract description 35
- 238000000034 method Methods 0.000 claims abstract description 21
- 230000006399 behavior Effects 0.000 claims description 35
- 125000000205 L-threonino group Chemical group [H]OC(=O)[C@@]([H])(N([H])[*])[C@](C([H])([H])[H])([H])O[H] 0.000 claims description 23
- 230000009471 action Effects 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 6
- 101000872083 Danio rerio Delta-like protein C Proteins 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 4
- 238000005070 sampling Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 20
- 241001422033 Thestylus Species 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 4
- 239000003990 capacitor Substances 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000005684 electric field Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000003628 erosive effect Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000005299 abrasion Methods 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000035772 mutation Effects 0.000 description 1
- 238000007254 oxidation reaction Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03545—Pens or stylus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention provides a multi-click trigger processing method for a capacitive stylus, a readable medium and the capacitive stylus, wherein the multi-click trigger processing method comprises the following steps: acquiring a calibration holding detection threshold C of a capacitive stylus 0 The method comprises the steps of carrying out a first treatment on the surface of the Output C of holding capacitance value in holding state detected during use of touch pen meas_n The method comprises the steps of carrying out a first treatment on the surface of the In response to C meas Reaching the holding detection threshold C 0 Entering a multi-click touch behavior detection mode of a user, otherwise continuously acquiring a holding capacitance value output C meas_n And continuously judging whether to enter a detection mode. In the multi-touch behavior detection mode of the user, in a preset response time, calculating a capacitance difference value based on a currently measured capacitance value and a capacitance value obtained by previous measurement, and judging that the multi-touch behavior exists when the capacitance difference value measured at least twice continuously reaches a preset first threshold value, and outputting a response signal. By the inventionThe stability, reliability and recognition rate of the quick function switching of the touch pen can be improved obviously, and the use efficiency and the use experience of a user are improved.
Description
Technical Field
The invention relates to the technical field of capacitive touch pens, in particular to a touch capacitive key trigger recognition technology, and specifically relates to a multi-click trigger processing method for a capacitive touch pen, a readable medium and the capacitive touch pen.
Background
Capacitive touch pens are increasingly being used in smart phones, tablet computers, notebook computers, electronic readers, electronic whiteboards and other products to simulate interactions between a human finger and a capacitive touch pen, but most of the current products only have interactions between a pen point and a capacitive screen, do not have rapid switching functions, such as switching from a writing or drawing mode to an eraser, switching from a hand tool to a pen tool and the like, only play basic touch and writing functions, and when the function is required to be switched, only the touch pen or a writing medium needs to be independently operated to switch, for example, the touch pen is switched by a button on the touch pen, a writing head is switched, the touch pen rotates, and the writing medium is switched by clicking a virtual button on the writing medium screen, so that bad experience is brought to writing.
The function switching is performed on the touch panel in a mode of clicking, multi-clicking and preset track operation, which is commonly used in the configuration of electronic input devices such as notebook computers, intelligent touch panels and the like, for example, the touch panel is subjected to various operations, and the rapid switching function can be realized in an interactive mode of clicking and sliding the position of the interactive area by one finger or multiple fingers.
Prior art literature:
patent document 1: CN105468174A multifunctional active touch pen
Patent document 2: CN104793762A active touch pen with switching function
Disclosure of Invention
The invention aims to provide a multi-click trigger processing mode for a capacitive stylus, which aims to eliminate the influence of interference of a user holding action and a space electric field (such as a mobile phone receiving action and the like) when the capacitive stylus performs capacitance measurement based on a capacitance model of an open type single pole plate, realize high-precision and high-sensitivity detection output and multi-click trigger processing, and provide a concise, stable and reliable implementation scheme for quick function switching of the capacitive stylus, such as switching between writing or drawing and erasing functions, switching between a hand tool and a pen tool and the like.
Another aspect of the present invention is to provide a method for switching a shortcut function of a capacitive stylus, which implements high-precision and high-sensitivity detection output based on a constructed open capacitive model, and implements shortcut switching based on double-click or multi-click detection, such as switching between writing or drawing and erasing functions, switching between a hand tool and a pen tool, and so on.
According to a first aspect of the present invention, a multi-touch trigger processing method for a capacitive stylus is provided, comprising the steps of:
a) Acquiring a calibrated holding detection threshold C of a capacitive stylus 0 ;
b) During the use of the capacitive stylus, the holding capacitance value output C in the holding state is detected meas_n ;
c) In response to C meas Reaching the holding detection threshold C 0 Entering a multi-touch behavior detection mode of a user, otherwise, returning to the step b) to continuously acquire the holding capacitance value output C meas_n Continuously judging whether to enter a detection mode or not until a preset condition is reached;
d) In the multi-touch behavior detection mode of the user, in a preset response time, calculating a capacitance difference value based on a holding capacitance value obtained by current measurement and a holding capacitance value obtained by previous measurement, and when the capacitance difference values obtained by at least two continuous measurements reach a preset first threshold value, judging that the multi-touch behavior exists for the user, and outputting a response signal.
As an optional embodiment, in the preset time period, the calculating the capacitance difference value based on the capacitance value obtained by the current measurement and the capacitance value obtained by the previous measurement, and when the capacitance difference values obtained by at least two continuous measurements reach the preset first threshold, determining that the user has multi-touch behavior includes:
continuously acquiring a holding capacitance value output C in a holding state of a user meas_n+i The method comprises the steps of carrying out a first treatment on the surface of the Wherein i represents a capacitance value sampling measurement sequence, counting from 1;
a differential value DeltaC outputted when the holding capacitance value starts at any jth time n+j Reaching the preset first threshold C thres J is less than or equal to i, starting time counting, and continuously obtaining the difference value delta C output by the j+1st holding capacitance value n+j+1 :
Differential value ΔC output in response to j+1th-hand-hold capacitance value n+j+1 Reaching the preset first threshold C thres Further determining the time difference DeltaT from the jth to the (j+1) th actions when DeltaT is within the preset response time T thres And when the touch screen is in the range, judging that the user has multi-click touch behaviors and outputting a response signal.
Therefore, high-precision identification of the finger of the user under double-click triggering is realized, and quick switching between different functions of the touch control pen or between different modes is realized.
As an optional embodiment, the capacitance difference values obtained by the at least two continuous measurements reach a preset first threshold, and determining that the user has multi-touch behavior includes:
and the capacitance difference values obtained by at least three continuous measurements reach a preset first threshold value, and the existence of multi-click touch behaviors of the user is judged.
Therefore, high-precision identification of the finger of the user under the triggering of three strokes is realized, and quick switching between different functions of the touch control pen or between different modes is realized.
According to a second aspect of the object of the present invention, there is also provided a capacitive stylus comprising:
a pen body;
one or more processors housed within the pen body, and a memory for storing instructions that may be manipulated;
wherein the instructions, when executed by the one or more processors, implement the process of the multi-tap trigger processing method for a capacitive stylus described above. According to a third aspect of the object of the present invention, there is also provided a computer readable medium storing a computer program comprising instructions executable by one or more computers, which instructions, when executed by the one or more computers, implement the process of the multi-tap trigger processing method for a capacitive stylus described above.
By implementing the multi-click trigger processing method of the capacitive stylus, which comprises a double-click or multi-click trigger scheme, the stability, reliability and recognition rate of the rapid function switching of the stylus can be improved, and the use efficiency and the use experience of a user are improved.
It should be understood that all combinations of the foregoing concepts, as well as additional concepts described in more detail below, may be considered a part of the inventive subject matter of the present disclosure as long as such concepts are not mutually inconsistent. In addition, all combinations of claimed subject matter are considered part of the disclosed inventive subject matter.
The foregoing and other aspects, embodiments, and features of the present teachings will be more fully understood from the following description, taken together with the accompanying drawings. Other additional aspects of the invention, such as features and/or advantages of the exemplary embodiments, will be apparent from the description which follows, or may be learned by practice of the embodiments according to the teachings of the invention.
Drawings
The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component that is illustrated in various figures may be represented by a like numeral. For purposes of clarity, not every component may be labeled in every drawing. Embodiments of various aspects of the invention will now be described, by way of example, with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a finger-held capacitive stylus according to an embodiment of the invention.
Fig. 2 is a schematic diagram of a capacitive stylus according to an embodiment of the invention.
Fig. 3 is a flowchart of a multi-click trigger processing method according to an embodiment of the present invention, in which a double-click trigger is taken as an example.
Fig. 4 is a schematic diagram of a holding state identifying process according to an embodiment of the present invention.
Detailed Description
For a better understanding of the technical content of the present invention, specific examples are set forth below, along with the accompanying drawings.
Aspects of the invention are described in this disclosure with reference to the drawings, in which are shown a number of illustrative embodiments. The embodiments of the present disclosure are not necessarily intended to include all aspects of the invention. It should be understood that the various concepts and embodiments described above, as well as those described in more detail below, may be implemented in any of a number of ways, as the disclosed concepts and embodiments are not limited to any implementation. Additionally, some aspects of the disclosure may be used alone or in any suitable combination with other aspects of the disclosure.
As shown in the examples of fig. 1, 2 and 3, the multi-click trigger processing method according to the embodiment of the present invention is implemented based on an open capacitance model of a single capacitance plate, which is a typical open capacitance model, for the holding and behavior detection of a capacitive stylus. The essence of double click (or multi click) triggering is that the whole hand of a user generates space conductive characteristics on a measuring polar plate attached to the inside of the pen body when the user holds the pen, and the space conductive characteristics are further reflected by the detection output of the capacitance value. The capacitance model is a single capacitance polar plate model, and the dielectric constant (close to 80 of water) of the hand of a user and the dielectric constant (close to 1) of air act on the capacitance polar plate together.
In the example shown in fig. 1, reference numeral 10 denotes a user's finger, holding a body 110 of a capacitive stylus. The dotted line portion indicates that the electrode plate 101 disposed inside the capacitive stylus pen 100 is in the shape of a thin sheet.
When a user holds the stylus with his hand, the whole hand holds the reference capacitor, and a finger lifts up and touches the stylus to form a capacitor mutation can be detected. The outer surfaces of the hand skin and the pen body are relieved, the capacitance value can be detected by the mode that the finger is used for knocking the position of the polar plate in the holding state, and the function switching design is carried out, but due to the dielectric constant and the contact area of a human body, the inherent environment sensitivity of the capacitance measurement cannot realize stable and reliable detection output, and false detection occurs.
Because the dielectric constant of human body is farIn the embodiment of the present invention, it is proposed that the capacitive output is performed by tapping (or touching) the electrode plate with two or more fingers, and the capacitive output is continuously beyond the set threshold C in a period of time based on a fluctuating reference capacitive curve, which is identified on the basis of the capacitive curve thres Number of acts N of (2) k Therefore, more stable and reliable user behavior recognition is realized according to the switching action for recognition.
In an embodiment of the invention, the setting is continuously beyond the set threshold C thres Number of acts N of (2) k It may be 2 (double click) or 3 (triple click), i.e. the user is considered to have entered a shortcut switching behavior.
It should be understood that, because the spatial electric field output model of the open capacitor plate is affected by the user's holding behavior and the spatial electric field (such as the mobile phone call), in the embodiment of the present invention, in order to further eliminate the interference, improve the robustness of the system, or to implement more rapid switching functions, the multi-click triggering is performed more than two times (i.e., N k 3 or more) may be set and implemented in accordance with the present invention in some embodiments.
In connection with the design of the capacitive stylus 100 shown in fig. 2, a pen body 110 is schematically shown, together with an electrode plate 101, a measurement circuit 102, a processor module 103 and a communication module 104 arranged inside the pen body.
The electrode plate 101 is formed in a sheet shape, is cylindrically adhered to the inner wall surface of the body 100 of the capacitive stylus, and is positioned in a holding area of a human hand.
The measurement circuit 102 is used for detecting the capacitance value output of a capacitance model formed between the pen body 100 and the electrode plate 101 of the capacitive stylus when the capacitive stylus is held by a human hand. As an alternative example, a capacitance measurement chip of the prior art may be used for design and implementation. In the example of the present invention, a high-precision capacitive sensor measurement chip PMDS-F4 of Nanjing surge semiconductor limited is taken as an example.
The processor module 103 is connected with the measuring circuit and the communication module respectively. The processor module 104 may be implemented using a low power consumption processing chip, and is configured to determine a user's shortcut switching behavior and control a switching of a mode or a function of the capacitive stylus according to an output capacitance value of the measurement circuit 102, for example, a switching from a writing or drawing mode to an eraser, or a switching from a hand tool to a pen tool. It should be appreciated that the programs and instructions executed by such switching operations may be implemented in accordance with the instruction sets and program components of the prior art.
The communication module 104 is configured to enable data communication and interaction between the capacitive stylus 100 and an external device, such as a desktop computer, a laptop computer, a handheld computer, and a mobile smart processing device. In fig. 2, a desktop computer 200 is illustrated, wherein reference numeral 201 indicates a read interface thereof.
In the embodiment of the present invention, the communication module 104 is illustrated by taking a bluetooth module as an example.
It should be appreciated that desktop and laptop computers are typically configured with a display screen and are electrically connected to the capacitive stylus 100 and/or writing medium to enable the display of written content, points of pen and/or writing tracks.
It should be appreciated that the illustrations and the foregoing embodiments are intended to be exemplary descriptions of capacitive stylus designs, with the following components/modules also optionally included within the capacitive stylus: the capacitive touch pen comprises a memory for storing data and program instructions, wires for realizing electrical connection, a battery module and/or a charge-discharge module for realizing power supply, a PCB (printed circuit board) integrated with one or more functional circuits/chips, and a display module (including but not limited to a small display screen, an LED lamp set and the like) for realizing information characterization, and can be designed and realized according to specific functions and requirements of the capacitive touch pen.
As shown in fig. 2, 3 and 4, the implementation of the multi-click trigger processing method for a capacitive stylus according to an embodiment of the invention includes the following steps:
acquiring a calibrated holding detection threshold C of a capacitive stylus 0 ;
During the use of the capacitive stylus, the holding capacitance value output C in the holding state is detected meas_n ;
In response to C meas Reaching the holding detection threshold C 0 Entering a multi-click touch behavior detection mode of a user, otherwise, continuously acquiring a holding capacitance value and outputting C meas_n Continuously judging whether to enter a detection mode or not until a preset condition is reached;
in the multi-touch behavior detection mode of the user, in a preset response time, calculating a capacitance difference value based on a holding capacitance value obtained by current measurement and a holding capacitance value obtained by previous measurement, judging that the user has multi-touch behaviors when the capacitance difference values obtained by at least two continuous measurements reach a preset first threshold, and outputting a response signal.
It should be understood that the foregoing predetermined conditions refer to a shutdown operation, a disconnection operation, a low power operation, etc. of the stylus pen, which may be set in advance by a user or preconfigured by the factory of the stylus pen.
In connection with the example shown in fig. 4, in an embodiment of the present invention, in order to further eliminate the probability of false triggering, after the user holds the capacitive stylus, first a valid holding state detection is required, and only when the current operation of the capacitive stylus is recognized as a real and valid holding behavior, a double-click or multi-stage triggering detection is entered.
For this reason, we generally choose to complete initialization and setting of the holding threshold value during the production process or the factory inspection of the capacitive stylus, that is, to hold the stylus for the first time, to measure and read the capacitance values before and after holding, and to set the holding detection threshold value accordingly.
In the embodiment of the invention, after judging that the multi-touch action exists and outputting a response signal, resetting the capacitance tolerance value and the time count each time, reentering the multi-touch action detection mode of the user, and starting the capacitance detection of the holding state and the identification of the user switching action.
As an alternative embodiment, the calibrated grip detection threshold C of the capacitive stylus 0 Is arranged to be preconfigured as follows:
when the capacitive stylus is started for the first time, a capacitance value C before holding is obtained pre ;
Based on the first holding behavior, a capacitance value C after holding is obtained afta The method comprises the steps of carrying out a first treatment on the surface of the And
setting a grip detection threshold C 0 =(C pre +C afta )/2。
Thus, the grip detection threshold C is set 0 Can be configured in the memory of the capacitive stylus, and when the capacitive stylus is used subsequently for user behavior recognition, the processor module invokes the judgment and corresponding processing.
It should be appreciated that during subsequent use of the capacitive stylus, if the capacitance value of the measurement output is less than the configured grip detection threshold C 0 It is assumed that there is no effective gripping action and no double (or multiple) click need be entered to trigger the recognition process, i.e. the measurement state. Only when the capacitance value of the measured output is greater than or equal to the configured holding detection threshold C 0 Then the subsequent double-click (or multi-click) trigger recognition process is performed.
As another embodiment, the calibrated grip detection threshold C of the capacitive stylus 0 Is arranged to be preconfigured as follows:
when the capacitive stylus is started for the first time, a capacitance value C before holding is obtained pre ;
Based on the first holding behavior, a capacitance value C after holding is obtained afta The method comprises the steps of carrying out a first treatment on the surface of the And
setting a grip detection threshold C 0 =k*(C pre +C afta ) And/2, wherein k represents a compensation coefficient, and the initial value of k is 1.
In this embodiment, since the capacitive stylus has an influence on abrasion, erosion, etc. of the surface of the stylus body in the subsequent use process, or the internal electrode plate has an influence on air erosion, oxidization, etc., the adjustable compensation coefficient k is configured to compensate for the problem of variation of the calibration value caused by use.
As an alternative embodiment, the compensation factor k can be set to pass testing, maintenance or be adjusted by a preset configuration program.
As an alternative example, for a capacitive stylus that is normally used beyond a preset time limit range, the compensation coefficient k in terms of the unused time period is preset, and the modification is done automatically inside the capacitive stylus without being perceived by the user. For example, the time counting is performed from the first time the user uses the capacitive stylus (e.g., first measuring the capacitance value), and after a preset period of time (e.g., 1 year, 1.5 years, 2 years, etc.), the compensation coefficient k is automatically updated in a predetermined manner.
As an optional real mode, in a preset time period, calculating a capacitance difference value based on a capacitance value obtained by current measurement and a capacitance value obtained by previous measurement, and determining that a multi-touch action exists for a user when the capacitance difference values obtained by at least two continuous measurements reach a preset first threshold, including:
continuously acquiring a holding capacitance value output C in a holding state of a user meas_n+i The method comprises the steps of carrying out a first treatment on the surface of the Wherein i represents a capacitance value sampling measurement sequence, counting from 1;
a differential value DeltaC outputted when the holding capacitance value starts at any jth time n+j Reaching the preset first threshold C thres J is less than or equal to i, starting time counting, and continuously obtaining the difference value delta C output by the j+1st holding capacitance value n+j+1 :
Differential value ΔC output in response to j+1th-hand-hold capacitance value n+j+1 Reaching a preset first threshold C thres Further determining the time difference DeltaT from the jth to the (j+1) th actions when DeltaT is within the preset response time T thres And when the touch screen is in the range, judging that the user has multi-click touch behaviors and outputting a response signal.
Wherein the differential value ΔC is outputted in response to the j+1th-hand-held capacitance value n+j+1 Not reaching the preset first threshold C thres Returning to continue to acquire the holding state of the userAnd outputting the capacitance value.
Wherein in response to the time difference DeltaT exceeding a preset response time T thres And when the range is reached, returning to continuously acquire the holding capacitance value output under the holding state of the user.
In the embodiment of the invention, the difference value delta C of the holding capacitance value output from any jth beginning n+j The calculation method adopts the difference between the capacitance value obtained by the current jth measurement and the capacitance value obtained by the last measurement (i.e. jth-1 time) to obtain the capacitance value difference, namely C meas_n+j -C meas_n+j-1 .
When j=i=1, the differential value Δc n+1 =C meas_n+1 -C meas_n Representing the capacitance value obtained by the first detection in the measurement mode and the capacitance value C measured last time meas_n Is a difference in (c).
When delta C n+1 Meet the requirement of being greater than or equal to a preset first threshold C thres When the threshold condition is met, the measurement result of the 2 nd capacitance value is further obtained, and delta C is further calculated n+2 =C meas_n+2 -C meas_n+1 Further judge DeltaC n+2 Whether or not the first threshold C is greater than or equal to a preset first threshold C thres When the two threshold conditions are satisfied, determining whether the time count range of the two detection actions is within a preset response time T thres Within the range, if within the preset response time T thres And if the range is within the range, judging that the user double-click triggering action is performed, identifying the double-click action, outputting a response signal and triggering the switching function.
Thus, according to the time of the response T in a preset state thres Within the range, whether or not there are two consecutive measured capacitances whose capacitance difference value exceeds a threshold (preset first threshold C thres ) By the double click or the above judgment, it is judged that the double click behavior is recognized and the switching function is triggered based on the double click behavior.
In the embodiment of the invention, in order to eliminate capacitance drift generated by the dynamic state of holding the pen by a user, a differential value is introduced as a reference in the finger trigger judgment, so that the dynamic disturbance of holding the pen by the hand by the user is eliminated, and the measuring and identifying progress and accuracy are improved.
In other embodiments, the response time T is set at a predetermined value thres And in the range, based on the capacitance difference value, and the capacitance difference values obtained in at least three continuous measurements reach a preset first threshold value, determining that the user has multi-touch behaviors.
Thus, by the judgment of three or more strokes, it is judged that the double-stroke behavior is recognized and the switching function is triggered.
In connection with the implementation of the capacitive stylus and multi-tap method of the above embodiments, embodiments of the present invention also relate to a computer-readable medium storing a computer program comprising instructions executable by one or more computers, which, when executed by the one or more computers, implement the processes of the multi-tap processing method of any of the previous embodiments.
While the invention has been described with reference to preferred embodiments, it is not intended to be limiting. Those skilled in the art will appreciate that various modifications and adaptations can be made without departing from the spirit and scope of the present invention. Accordingly, the scope of the invention is defined by the appended claims.
Claims (10)
1. A multi-tap trigger processing method for a capacitive stylus, comprising the steps of:
a) Acquiring a calibrated holding detection threshold C of a capacitive stylus 0 ;
b) During the use of the capacitive stylus, the holding capacitance value output C in the holding state is detected meas_n ;
c) In response to C meas Reaching the holding detection threshold C 0 Entering a multi-touch behavior detection mode of a user, otherwise, returning to the step b), and continuously acquiring a holding capacitance value output C meas_n Continuously judging whether to enter a detection mode;
d) In the multi-touch behavior detection mode of the user, the response time T is preset thres In, the holding capacitance value obtained based on the current measurement and the frontAnd when the capacitance values obtained by the continuous measurement at least twice reach a preset first threshold value, judging that the user has multi-touch behaviors, and outputting a response signal.
2. The multi-touch trigger processing method for a capacitive stylus according to claim 1, wherein the grip detection threshold C in step a) 0 Pre-configured as follows:
when the capacitive stylus is started for the first time, a capacitance value C before holding is obtained pre ;
Based on the first holding behavior, a capacitance value C after holding is obtained afta The method comprises the steps of carrying out a first treatment on the surface of the And
setting a grip detection threshold C 0 =(C pre +C afta )/2。
3. The multi-touch trigger processing method for a capacitive stylus according to claim 1, wherein the grip detection threshold C in step a) 0 Pre-configured as follows:
when the capacitive stylus is started for the first time, a capacitance value C before holding is obtained pre ;
Based on the first holding behavior, a capacitance value C after holding is obtained afta The method comprises the steps of carrying out a first treatment on the surface of the And
setting a grip detection threshold C 0 =k*(C pre +C afta ) And/2, wherein k represents a compensation coefficient, and the initial value of k is 1.
4. The multi-tap trigger processing method for a capacitive stylus according to claim 1, further comprising the steps of:
e) And in response to determining that the multi-touch behavior exists in the user and outputting a response signal, resetting the capacitance tolerance score and the time count, and reentering the multi-touch behavior detection mode of the user.
5. The multi-touch trigger processing method for a capacitive stylus according to claim 1, wherein the step d) calculates a capacitance difference value based on a capacitance value obtained by a current measurement and a capacitance value obtained by a previous measurement within a preset time period, and determines that the user has multi-touch behavior when the capacitance difference values obtained by at least two consecutive measurements each reach a preset first threshold, further comprising:
continuously acquiring a holding capacitance value output C in a holding state of a user meas_n+i The method comprises the steps of carrying out a first treatment on the surface of the Wherein i represents a capacitance value sampling measurement sequence, counting from 1;
a differential value DeltaC outputted when the holding capacitance value starts at any jth time n+j Reaching the preset first threshold C thres J is less than or equal to i, starting time counting, and continuously obtaining the difference value delta C output by the j+1st holding capacitance value n+j+1 :
Differential value ΔC output in response to j+1th-hand-hold capacitance value n+j+1 Reaching the preset first threshold C thres Further determining the time difference DeltaT from the jth to the (j+1) th actions when DeltaT is at the preset response time C thres And when the touch screen is in the range, judging that the user has multi-click touch behaviors and outputting a response signal.
6. The multi-tap trigger processing method for a capacitive stylus of claim 5, wherein the differential value Δc output in response to the j+1th-hand-hold capacitance value n+j+1 Not reaching the preset first threshold C thres And (c) returning to the step b), and continuously acquiring the output of the holding capacitance value in the holding state of the user.
7. The multi-tap trigger processing method for a capacitive stylus of claim 5, wherein the response time difference Δt exceeds a preset response time C thres And (c) returning to the step b) when the range is reached, and continuously acquiring the output of the holding capacitance value in the holding state of the user.
8. The method for multi-touch trigger processing of a capacitive stylus according to claim 5, wherein the capacitance difference values obtained by the at least two consecutive measurements each reach a preset first threshold, and the step of determining that the user has multi-touch behavior specifically includes:
and the capacitance difference values obtained by three continuous measurements all reach a preset first threshold value, and the existence of multi-click touch behaviors of the user is judged.
9. A capacitive stylus, comprising:
a pen body;
one or more processors housed within the pen body, and a memory for storing instructions that may be manipulated;
wherein the instructions, when executed by the one or more processors, implement the process of the multi-tap trigger processing method for a capacitive stylus of any one of claims 1-8.
10. A computer readable medium storing a computer program, characterized in that the computer program comprises instructions executable by one or more computers, which instructions, when executed by the one or more computers, perform the process of the multi-tap trigger processing method for a capacitive stylus according to any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310607032.7A CN116610224A (en) | 2023-05-25 | 2023-05-25 | Multi-click trigger processing method for capacitive stylus, readable medium and capacitive stylus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310607032.7A CN116610224A (en) | 2023-05-25 | 2023-05-25 | Multi-click trigger processing method for capacitive stylus, readable medium and capacitive stylus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116610224A true CN116610224A (en) | 2023-08-18 |
Family
ID=87676197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310607032.7A Pending CN116610224A (en) | 2023-05-25 | 2023-05-25 | Multi-click trigger processing method for capacitive stylus, readable medium and capacitive stylus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116610224A (en) |
-
2023
- 2023-05-25 CN CN202310607032.7A patent/CN116610224A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9292127B2 (en) | Systems and methods for providing enhanced touch sensing | |
US10775929B2 (en) | Suppressing noise in touch panels using a shield layer | |
US8773386B2 (en) | Methods and apparatus to scan a targeted portion of an input device to detect a presence | |
KR101493494B1 (en) | User device including fingerprint sensing region in touch screen | |
CN101859214B (en) | Input device and input processing method using the same | |
US20130207935A1 (en) | Touch panel device | |
US20150070297A1 (en) | Control method for touch panel | |
CN109643176B (en) | Stylus, touch sensing system, touch sensing controller and touch sensing method | |
US10444910B2 (en) | Electronic device and method of processing user actuation of a touch-sensitive input surface | |
EP3271804B1 (en) | Detection with a capacitive based digitizer sensor | |
US10078400B2 (en) | Touch sensor panel and method correcting palm input | |
US9921668B1 (en) | Touch panel controller integrated with host processor for dynamic baseline image update | |
US9367190B2 (en) | Touch recognition method and system for a capacitive touch apparatus | |
US20080042971A1 (en) | System and method for automatic re-calulation and monitoring of thresholds in a puck-based pointing device | |
CN103365507B (en) | Sensing device and method for improving reliability of capacitive touch device | |
US20170131817A1 (en) | Method for dynamically detecting threshold value of displaying stylus stroke on touch panel | |
CN114487784A (en) | Capacitance detection circuit, touch chip and electronic equipment | |
CN102445983A (en) | Electronic equipment and method for cooperative work of multiple input equipment thereof | |
JP3164187U (en) | Signal-sensitive architecture for pressure-sensitive tablets | |
KR20180020696A (en) | Touch system, touch sensing controller and stylus pen adapted thereto | |
CN102156562A (en) | Object sensing device, touch sensing system and touch sensing method | |
CN104185832B (en) | Touch-screen system | |
US9507454B1 (en) | Enhanced linearity of gestures on a touch-sensitive surface | |
KR101112630B1 (en) | Digital device having a touch screen, and touch coordinate correction method therefor | |
KR101210991B1 (en) | Touch-screen controller integrated circuit |
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 |