WO2018148902A1 - 一种按键检测方法及装置 - Google Patents

一种按键检测方法及装置 Download PDF

Info

Publication number
WO2018148902A1
WO2018148902A1 PCT/CN2017/073773 CN2017073773W WO2018148902A1 WO 2018148902 A1 WO2018148902 A1 WO 2018148902A1 CN 2017073773 W CN2017073773 W CN 2017073773W WO 2018148902 A1 WO2018148902 A1 WO 2018148902A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
noise
button
signal
current
Prior art date
Application number
PCT/CN2017/073773
Other languages
English (en)
French (fr)
Inventor
郑引香
杜灿鸿
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to EP17896698.2A priority Critical patent/EP3432128B1/en
Priority to PCT/CN2017/073773 priority patent/WO2018148902A1/zh
Priority to CN201780000073.2A priority patent/CN107003783B/zh
Publication of WO2018148902A1 publication Critical patent/WO2018148902A1/zh
Priority to US16/133,669 priority patent/US10983633B2/en

Links

Images

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/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R29/00Arrangements for measuring or indicating electric quantities not covered by groups G01R19/00 - G01R27/00
    • G01R29/26Measuring noise figure; Measuring signal-to-noise ratio
    • 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/0416Control or interface arrangements specially adapted for digitisers
    • 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/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04182Filtering of noise external to the device and not generated by digitiser components
    • 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
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/962Capacitive touch switches
    • 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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Definitions

  • the present application relates to the field of touch sensing technologies, and in particular, to a button detection method and apparatus.
  • the present application provides a button detection method and device, which solves the problem that the key detection error is high and the cost is high.
  • the present application provides a button detection method, including: sampling an output signal value, and respectively calculating a current noise value and a current signal value according to the sampling result; and determining a noise change according to the current noise value and the current signal value respectively Whether the amount and the amount of signal change reach the corresponding noise change threshold and the signal change threshold; determine the working state of the button according to the judgment result
  • the sampling the output signal value and calculating the current noise value and the current signal value according to the sampling result include: performing the output signal value The real-time sampling is performed multiple times in succession, and multiple sampling results are obtained; the average value and the peak-to-peak value of the multiple sampling results are calculated, and the average value and the peak-to-peak value are respectively taken as the current signal value and the current noise value.
  • the noise variation is a difference between the current noise value and a noise reference value
  • the signal variation is the current signal value and a signal reference value. The difference between.
  • the method further includes: performing multiple consecutive sampling of the output signal value to obtain a plurality of reference sampling results when no button is touched by the human body; and calculating the multiple reference sampling
  • the average value and peak-to-peak value of the result, and the average value and the peak-to-peak value of the plurality of reference sampling results are taken as the reference signal value and the reference noise value, respectively.
  • the confirming the working state of the button according to the determining result includes: when the signal change amount and the noise change amount reach at least one of a corresponding signal change threshold or a noise change threshold And determining that the button is in a button state; when the signal change amount is less than the signal change threshold and the noise change amount is also less than the noise change threshold, determining that the button is in a loose key state.
  • the determining whether the noise variation amount and the signal variation amount reach the noise variation threshold and the signal variation threshold include: a difference between the current noise value and the noise reference value When the value reaches the preset noise change threshold, the noise determination result Noe is set to 1, otherwise, the noise determination result Noe is set to 0; when the difference between the current signal value and the signal reference value is reached When the signal change threshold value is set in advance, the signal determination result Sig is set to 1, otherwise, the signal determination result Sig is set to 0.
  • the present application further provides a button detecting apparatus, including: a sampling unit, configured to sample an output signal value, and respectively calculate a current noise value and a current signal value according to the sampling result; and a determining unit, configured to use the current noise value according to the current noise value And determining, by the current signal value, whether the amount of noise change and the amount of signal change reach a corresponding noise change threshold and a signal change threshold; and the state determining unit is configured to determine an operating state of the button according to the determination result of the determining unit.
  • a button detecting apparatus including: a sampling unit, configured to sample an output signal value, and respectively calculate a current noise value and a current signal value according to the sampling result; and a determining unit, configured to use the current noise value according to the current noise value And determining, by the current signal value, whether the amount of noise change and the amount of signal change reach a corresponding noise change threshold and a signal change threshold; and the state determining unit is configured to determine an operating state of the button according to the determination result of the
  • the sampling unit includes: a sampling subunit, configured to perform continuous multiple real-time sampling on the output signal value, and obtain multiple sampling results; Calculating an average value and a peak-to-peak value of the plurality of sampling results, and using the average value and the peak-to-peak value as the current signal value and the current noise value, respectively.
  • the method further includes: a difference calculating unit, configured to calculate a difference between the current noise value and the noise reference value as the noise variation amount, and calculate The difference between the current signal value and the signal reference value is taken as the signal variation.
  • the method further includes: a reference determining unit configured to predetermine the noise reference value and the signal reference value when the button is not present by the human body.
  • the reference determining unit includes: a reference sampling subunit, configured to continuously sample the output signal value multiple times when the human body does not touch the button a sub-base sampling result; a reference calculation sub-unit, configured to calculate an average value and a peak-to-peak value of the plurality of reference sampling results, and use an average value and a peak-to-peak value of the plurality of reference sampling results as the reference signal value and The reference noise value.
  • the state determining unit is configured to determine, when the signal change amount and the noise change amount reach at least one of a corresponding signal change threshold or a noise change threshold.
  • the button is in a button state; and when the signal change amount is less than the signal change threshold and the noise change amount is also smaller than the noise change threshold, it is determined that the button is in a loose key state.
  • the determining unit includes: a noise change determining sub-unit, configured to obtain a preset noise change between a difference between the current noise value and the noise reference value At the threshold value, the noise determination result Noe is set to 1, otherwise, the noise determination result Noe is set to 0; the signal change determination sub-unit is configured to use a difference between the current signal value and the signal reference value When the signal change threshold value set in advance is reached, the signal determination result Sig is set to 1, otherwise, the signal determination result Sig is set to 0.
  • the present application further provides a button detection method, including: sampling an output signal value of a button in the presence of external common mode interference, and calculating a current noise value; determining whether the noise variation amount is reached according to the current noise value a noise change threshold; when the noise change amount reaches the noise change threshold, it is determined that the button is in a button state.
  • the external common mode interference includes charging common mode interference introduced by connecting a charger.
  • the current noise value is obtained by performing peak-to-peak calculation by using a plurality of sampling results obtained by continuously and continuously sampling the output signal value.
  • the noise variation amount is a difference between the current noise value and a noise reference value, wherein the noise reference value is obtained by touching the button in a non-existing human body
  • the output signal value is continuously sampled multiple times to obtain a plurality of reference sampling results for peak-to-peak calculation.
  • the method further includes: determining, in the absence of external common mode interference, whether the signal change amount reaches a signal change threshold according to a current signal value, and the signal change amount is reached. When the signal changes the threshold, it is determined that the button is in a button state.
  • the button detecting method and device provided by the embodiments of the present application do not need to separately set a complicated auxiliary circuit to implement the detection of the button state, but determine the button state of the smart terminal by corresponding sampling and calculation of the signal value, thereby reducing the cost. Improve the accuracy of button status detection, so that users get a better experience.
  • FIG. 1 is a schematic diagram of a circuit equivalent circuit of a user touching a screen
  • FIG. 2 is a schematic flow chart of a button detecting method according to the present application.
  • Figure 3 is a schematic diagram of a signal output value without interference
  • Figure 4 is a schematic diagram of a signal output value in the case of interference
  • FIG. 5 is a schematic diagram showing a change amount of a noise value and a change amount of a signal value
  • FIG. 6 is a schematic structural diagram of a button detecting device according to the present application.
  • a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products, or equipment.
  • references herein to "embodiments” means specific features, structures, or features described in connection with the embodiments. Sex can be included in at least one embodiment of the present application. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the button detection method provided by each embodiment of the present patent application can be applied to a smart terminal, such as a smart phone, a tablet computer or other terminal device, for detecting whether a button of the mobile terminal is touched or pressed.
  • the button may be a physical button with a fingerprint recognition function (such as a Home button) or a touch virtual button, in particular, a physical button or a virtual button using a capacitive fingerprint recognition technology.
  • the button detection method includes:
  • S101 Sampling an output signal value of the system, and calculating a current noise value of the system and a current signal value according to the sampling result.
  • the output signal value of the system may refer to a signal value output by the button module (or the button circuit) to the button detection circuit, and the output signal value may be mainly used for detecting the working state of the button; or In other alternative embodiments, the output signal value of the system refers to the value of the test signal generated by the signal generator or other excitation source of the smart terminal.
  • FIG. 3 and FIG. 4 are waveform diagrams of output signals of the system in the initial state and the interference state of the smart terminal, respectively.
  • the initial state may specifically refer to a state in which the smart terminal does not introduce external interference, for example, the smart terminal is in a normal working state in which the charger is not connected; as shown in FIG. 3, in the initial state, the The output signal value of the system is basically stable.
  • Disturbance State refers to a state in which the smart terminal introduces external interference, such as a state in which the smart terminal is connected to the charger to introduce charging common mode interference; as shown in FIG. 4, in the interference state, the output signal value of the system Irregular fluctuations appear over time.
  • step S101 the output signal value of the system is sampled in real time, and the current signal value and the current noise value are calculated according to the sampling result.
  • the embodiment of the present application sets a sampling frequency of the output signal value of the system, where the sampling frequency of the output signal value refers to the number of signal samples X collected in a unit time, and the X is a positive integer;
  • the sampling frequency of the output signal value refers to the number of signal samples X collected in a unit time, and the X is a positive integer;
  • other values may be selected according to actual needs.
  • the X sampling result can be obtained by performing the above sampling on the output signal value of the system, and by calculating the X times.
  • the average value and peak-to-peak value of the sampling result may obtain the current signal value ave and the current noise value noise.
  • an average value of the X times sampling result of the output signal value of the system may be used as the current signal value ave, and a peak value of the X times sampling result of the output signal value of the system may be used as the current noise value. Noise.
  • S102 Determine, according to the current noise value and the current signal value, whether the noise value change amount and the signal change amount respectively reach a noise change threshold value and a signal change threshold value.
  • the noise variation may be specifically a difference between the current noise value and a noise reference value
  • the signal variation may be specifically between the current signal value and a signal reference value. The difference.
  • the noise reference value and the signal reference value may be that the smart terminal does not exist.
  • the output signal value of the system is sampled and calculated in advance.
  • the Y sampling result can be obtained by continuously sampling the output signal value of the system for Y times, and the average value is calculated by The peak-to-peak calculation may obtain an average value and a peak-to-peak value of the Y-th reference sampling result, wherein the calculation result of the average value and the peak-to-peak value may be used as the reference signal value Ave_Base and the reference noise value Noise_Base, respectively.
  • the noise reference value and the signal reference value may be obtained by sampling and calculating the output signal value of the system in advance before step S101.
  • step S102 by performing a difference operation on the current noise value and the noise reference value, and performing a difference operation on the current signal value and the signal reference value, the noise change amount N0 can be respectively obtained. And the signal change amount S0. among them,
  • the current noise value or the current signal value of the system changes significantly, and according to the degree of discrimination, the corresponding noise can be preset.
  • the change threshold and the signal change threshold are used as the basis for detecting the working state of the button.
  • the noise change threshold and the signal change threshold are respectively set in advance in the embodiment of the present application, and the noise change threshold and the signal change threshold may be respectively set according to actual requirements, which is not limited by the embodiment of the present application.
  • the threshold and the noise variance signal change threshold may be referred to as S t N t and, respectively, the signal and the noise determination result and the determination result can be written, respectively Noe and Sig.
  • the human hand touch may not cause a significant change in the amount of noise change, and in this case, the Whether the amount of noise change exceeds the noise change threshold as a condition for determining a button state of the system. Therefore, in the embodiment, in the case where the smart terminal does not have external common mode interference, the signal may be changed according to the signal. Whether the amount exceeds the signal change threshold to determine the working state of the button.
  • the noise change amount may exceed the noise change threshold, and at this time, according to whether the noise change amount is The signal change threshold is exceeded to determine the operating state of the button.
  • step S103 when at least one of the signal change amount and the noise change amount reaches its corresponding signal change threshold or noise change threshold, it may be determined that the button is in a button state, that is, is pressed. Or touch the working status. Conversely, when the signal change amount and the noise change amount respectively fail to reach the signal change threshold and the noise change threshold, respectively, it may be determined that the button is in a loose key state, that is, is not pressed. Or touch the working status.
  • K Sig
  • Noe the noise determination result Noe and the signal determination result are both 0
  • K Sig
  • the button detecting method calculates the current current noise value and the current signal value by performing real-time sampling on the output signal value of the system, and determines whether the noise variation amount and the signal variation amount are greater than the corresponding noise.
  • the change threshold or the signal change threshold is used to comprehensively determine the button state of the smart terminal according to the noise judgment result and the signal judgment result.
  • the embodiment of the present application does not need to additionally set a complicated auxiliary circuit to implement the detection of the button state, which reduces the cost and improves the accuracy of the button state detection, so that the user obtains a better use experience.
  • the button detecting device is located in an intelligent terminal, and the smart terminal includes but is not limited to a smart phone, a tablet computer or other terminal device, and the button detecting is performed.
  • the apparatus includes a sampling unit 1, a judging unit 2, and a state determining unit 3.
  • the sampling unit 1 is configured to sample an output signal value, and respectively calculate a current noise value and a current signal value according to the sampling result;
  • the determining unit 2 is configured to determine, according to the current noise value and the current signal value, whether the amount of noise change and the amount of signal change respectively reach a corresponding noise change threshold and a signal change threshold;
  • the state determining unit 3 is configured to determine an operating state of the button according to the determination result of the determining unit.
  • the sampling unit 1 may include:
  • the sampling subunit 11 is configured to perform continuous real-time sampling on the output signal value, and obtain multiple sampling results;
  • the calculating subunit 12 is configured to calculate an average value and a peak value of the plurality of sampling results, and use the average value and the peak value as the current signal value and the current noise value, respectively.
  • buttons detecting device may further include:
  • a difference calculation unit 4 configured to calculate a difference between the current noise value and a noise reference value as the noise change amount, and calculate a difference between the current signal value and a signal reference value and This is taken as the amount of change in the signal.
  • buttons detecting device may further include:
  • the reference determining unit 5 is configured to predetermine the noise reference value and the signal reference value when the human body does not touch the button.
  • the reference determining unit 5 may include:
  • the reference sampling subunit 51 is configured to perform sampling of the output signal value multiple times to obtain a plurality of reference sampling results when the human body does not touch the button;
  • a reference calculation sub-unit 52 configured to calculate an average value and a peak-to-peak value of the plurality of reference sampling results, and use an average value and a peak-to-peak value of the plurality of reference sampling results as the reference signal value and the reference noise, respectively value.
  • the state determining unit 3 may be specifically configured to determine, when the signal change amount and the noise change amount reach at least one of a corresponding signal change threshold or a noise change threshold.
  • the button is in a button state; and when the signal change amount is less than the signal change threshold and the noise change amount is also less than the noise change threshold, it is determined that the button is loose Key status.
  • the determining unit 2 may include:
  • the noise change judging sub-unit 21 is configured to set the noise judging result Noe to 1 when the difference between the current noise value and the noise reference value reaches a preset noise change threshold, otherwise, the noise is The judgment result Noe is set to 0;
  • the signal change judging subunit 22 is configured to set the signal judgment result Sig to 1 when the difference between the current signal value and the signal reference value reaches a preset signal change threshold, otherwise, the signal is The judgment result Sig is set to zero.
  • the state determining unit 3 may include:
  • buttons detecting device may further include:
  • the setting unit 6 is configured to set a sampling frequency of the output signal value, where the sampling frequency of the output signal value refers to the number of signal samples X collected in a unit of time, and the X is a positive integer.
  • the X set by the setting unit 4 is 8.
  • other values may be selected according to actual needs.
  • the button detecting device may be a detecting module implemented by including a processor or combined with other hardware units, and each functional unit may be implemented by hardware, software, or a combination of hardware and software, and specific functions of the respective functional units. For the implementation, reference may be made to the description of the key detection method provided by the present application in the previous embodiment, and details are not described herein again.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Push-Button Switches (AREA)

Abstract

一种按键检测方法及装置,涉及触摸传感技术,该按键触摸方法包括:对输出信号值进行采样,并根据采样结果分别计算当前噪声值以及当前信号值(S101);根据所述当前噪声值和所述当前信号值,分别判断噪声变化量和信号变化量是否达到相应的噪声变化阈值和信号变化阈值(S102);根据判断结果确定按键的工作状态(S103)。所述方法和装置不需要另外设置复杂的辅助电路来实现对按键状态的检测,而是通过对信号值的相应采样和计算来判断智能终端的按键状态,降低了成本同时提高了按键状态检测的准确性,使用户获得了更好的使用体验。

Description

一种按键检测方法及装置 技术领域
本申请涉及触摸传感技术领域,尤其涉及一种按键检测方法及装置。
背景技术
在手机连接充电器的情况下,人手触摸手机按键(比如Home键或者虚拟按键)时易引入共模干扰,如图1所示;典型情况下人体等效于1kΩ电阻RM串联1nF电容CM,其容易导致按键检测出错,从而出现按键不稳定或不停冒键的情况。为了使按键能适应不同充电器,在遇到强共模干扰时需进行特殊处理。目前常用的共模干扰处理方法是通过跳频处理来避开存在干扰的频率。但是通过跳频技术来解决按键检测出错的问题,需要复杂的电路达到快速可靠变频,实现起来难度较大且成本较高。
发明内容
为了克服现有技术中相关产品的不足,本申请提出一种按键检测方法及装置,解决当前解决按键检测出错难度大、成本高的问题。
本申请提供了一种按键检测方法,包括:对输出信号值进行采样,并根据采样结果分别计算当前噪声值以及当前信号值;根据所述当前噪声值和所述当前信号值,分别判断噪声变化量和信号变化量是否达到相应的噪声变化阈值和信号变化阈值;根据判断结果确定按键的工作状态
作为本申请提供的按键检测方法的一种改进,所述对输出信号值进行采样,并根据采样结果计算当前噪声值以及当前信号值包括:对所述输出信号值进行 连续多次实时采样,并得到多次采样结果;计算所述多次采样结果的平均值和峰峰值,并将所述平均值和峰峰值分别作为所述当前信号值和所述当前噪声值。
作为本申请提供的按键检测方法的一种改进,所述噪声变化量为所述当前噪声值与噪声基准值之间的差值,而所述信号变化量为所述当前信号值与信号基准值之间的差值。
作为本申请提供的按键检测方法的一种改进,还包括:在未存在人体触摸所述按键时对所述输出信号值进行连续多次采样得到多次基准采样结果;计算所述多次基准采样结果的平均值和峰峰值,并将所述多次基准采样结果的平均值和峰峰值分别作为所述基准信号值和所述基准噪声值。
作为本申请提供的按键检测方法的一种改进,所述根据判断结果确认按键的工作状态包括:当所述信号变化量和所述噪声变化量至少一个达到其相应的信号变化阈值或噪声变化阈值时,判断出所述按键处于按键状态;当所述信号变化量小于所述信号变化阈值且所述噪声变化量也小于所述噪声变化阈值时,判断出所述按键处于松键状态。
作为本申请提供的按键检测方法的一种改进,所述判断噪声变化量和信号变化量是否达到噪声变化阈值和信号变化阈值包括:当所述当前噪声值与所述噪声基准值之间的差值达到预先设置的噪声变化阈值时,将噪声判断结果Noe设为1,否则,将所述噪声判断结果Noe设为0;当所述当前信号值与所述信号基准值之间的差值达到预先设置的信号变化阈值时,将信号判断结果Sig设为1,否则,将所述信号判断结果Sig设为0。
作为本申请提供的按键检测方法的一种改进,所述根据判断结果确认按键的工作状态包括:根据K=Sig|Noe判断所述按键的工作状态,其中,K表示所 述按键的工作状态,Sig为所述噪声判断结果,Noe为所述信号判断结果,“|”为逻辑或运算;当K=1时,判断出所述按键处于按键状态;而当K=0时,判断出所述按键处于松键状态。
本申请还提供了一种按键检测装置,包括:采样单元,用于对输出信号值进行采样,并根据采样结果分别计算当前噪声值以及当前信号值;判断单元,用于根据所述当前噪声值和所述当前信号值,分别判断噪声变化量以及信号变化量是否达到相应的噪声变化阈值和信号变化阈值;状态确定单元,用于根据所述判断单元的判断结果确定按键的工作状态。
作为本申请提供的按键检测装置的一种改进,所述采样单元包括:采样子单元,用于对所述输出信号值进行连续多次实时采样,并得到多次采样结果;计算子单元,用于计算所述多次采样结果的平均值和峰峰值,并将所述平均值和峰峰值分别作为所述当前信号值和所述当前噪声值。
作为本申请提供的按键检测装置的一种改进,还包括:差值计算单元,用于计算所述当前噪声值与噪声基准值之间的差值并将其作为所述噪声变化量,且计算所述当前信号值与信号基准值之间的差值并将其作为所述信号变化量。
作为本申请提供的按键检测装置的一种改进,还包括:基准确定单元,用于在未存在人体触摸所述按键时预先确定所述噪声基准值和所述信号基准值。
作为本申请提供的按键检测装置的一种改进,所述基准确定单元包括:基准采样子单元,用于在未存在人体触摸所述按键时对所述输出信号值进行连续多次的采样得到多次基准采样结果;基准计算子单元,用于计算所述多次基准采样结果的平均值和峰峰值,并将所述多次基准采样结果的平均值和峰峰值分别作为所述基准信号值和所述基准噪声值。
作为本申请提供的按键检测装置的一种改进,所述状态确定单元用于在所述信号变化量和所述噪声变化量至少一个达到其相应的信号变化阈值或噪声变化阈值时,判断出所述按键处于按键状态;并且,在所述信号变化量小于所述信号变化阈值且所述噪声变化量也小于所述噪声变化阈值时,判断出所述按键处于松键状态。
作为本申请提供的按键检测装置的一种改进,所述判断单元包括:噪声变化判断子单元,用于在所述当前噪声值与所述噪声基准值之间的差值达到预先设置的噪声变化阈值时,将噪声判断结果Noe设为1,否则,将所述噪声判断结果Noe设为0;信号变化判断子单元,用于在所述当前信号值与所述信号基准值之间的差值达到预先设置的信号变化阈值时,将信号判断结果Sig设为1,否则,将所述信号判断结果Sig设为0。
作为本申请提供的按键检测装置的一种改进,所述状态确定单元包括:逻辑或运算子单元,用于根据K=Sig|Noe对所述噪声判断结果Noe和所述信号判断结果Sig进行逻辑或运算,其中K表示所述按键的工作状态,“|”为逻辑或运算;状态确定子单元,用于在K=1时判断出所述按键处于按键状态,而在K=0时判断出所述按键处于松键状态。
本申请还提供了一种按键检测方法,包括:在存在外部共模干扰情况下对按键的输出信号值进行采样,并计算得到当前噪声值;根据所述当前噪声值,判断噪声变化量是否达到噪声变化阈值;在所述噪声变化量达到所述噪声变化阈值时,判断出所述按键处于按键状态。
作为本申请提供的按键检测方法的一种改进,所述外部共模干扰包括连接充电器而引入的充电共模干扰。
作为本申请提供的按键检测方法的一种改进,所述当前噪声值是通过对所述输出信号值进行连续多次实时采样而得到的多次采样结果进行峰峰值计算得到的。
作为本申请提供的按键检测方法的一种改进,所述噪声变化量为所述当前噪声值与噪声基准值之间的差值,其中所述噪声基准值时通过在未存在人体触摸所述按键时对所述输出信号值进行连续多次采样而得到多次基准采样结果进行峰峰值计算而得到的。
作为本申请提供的按键检测方法的一种改进,还包括:在不存在外部共模干扰的情况下,根据当前信号值来判断信号变化量是否达到信号变化阈值,并在所述信号变化量达到信号变化阈值时判断出所述按键处于按键状态。
本申请实施例提供的按键检测方法和装置不需要另外设置复杂的辅助电路来实现对按键状态的检测,而是通过对信号值的相应采样和计算来判断智能终端的按键状态,降低了成本同时提高了按键状态检测的准确性,使用户获得了更好的使用体验。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为用户触摸屏幕的电路等效电路参考示意图;
图2为本申请所述按键检测方法的流程示意图;
图3为无干扰情况下信号输出值的曲线示意图;
图4为干扰情况下信号输出值的曲线示意图;
图5为噪声值的变化量和信号值的变化量的曲线示意图;
图6为本申请所述按键检测装置的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例,附图中给出了本申请的较佳实施例。本申请可以以许多不同的形式来实现,并不限于本文所描述的实施例,相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特 性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
实施例一
本专利申请各个实施例提供的按键检测方法可以应用于智能终端,比如智能手机、平板电脑或者其他终端设备,用于检测移动终端的按键是否被触摸或者按压。其中,所述按键可以是具有指纹识别功能的实体按键(比如Home键)或者触摸式虚拟按键,特别是采用电容式指纹识别技术的实体按键或者虚拟按键。
参阅图2,为本申请提供的按键检测方法一种实施例的流程示意图,所述按键检测方法包括:
S101:对***的输出信号值进行采样,根据采样结果分别计算***的当前噪声值以及当前信号值。
在具体实施例中,所述***的输出信号值可以是指按键模组(或按键电路)输出给按键检测电路的信号值,所述输出信号值可以主要用于进行按键工作状态检测;或者,在其他替代实施例中,所述***的输出信号值是指智能终端的信号发生器或其他激励源生成的测试信号的数值。
请参阅图3和图4,其分别为所述智能终端在初始状态和干扰状态下***的输出信号波形图。其中,所述初始状态可以具体是指智能终端在未引入外部干扰的状态,比如所述智能终端处于没有连接充电器的正常工作状态;请参阅图3所示,在所述初始状态下,所述***的输出信号值基本保持稳定。所述干扰状 态是指智能终端在引入外部干扰的状态,比如在所述智能终端连接充电器而引入充电共模干扰的状态;参阅图4所示,在所述干扰状态下,所述***的输出信号值随时间呈现不规则的波动变化。
在步骤S101中,对***的输出信号值进行实时采样,并根据采样结果计算出当前信号值和当前噪声值。
可选地,本申请实施例设置***的输出信号值的采样频率,所述输出信号值的采样频率是指单位时间内采集的信号样本数量X,所述X为正整数;在本申请实施例中,所述的X为8,在本申请的其他实施方式中,根据实际需求可以选择其他的数值。
在具体实施例中,以对***的输出信号值进行连续X次的实时采样为例,通过对所述***的输出信号值进行上述采样可以得到X次采样结果,并且,通过计算所述X次采样结果的平均值和峰峰值可以得到所述当前信号值ave和所述当前噪声值noise。具体地,所述***的输出信号值的X次采样结果的平均值可以作为所述当前信号值ave,而所述***的输出信号值的X次采样结果的峰峰值可以作为所述当前噪声值noise。
S102:根据所述当前噪声值和所述当前信号值,分别判断噪声值变化量以及信号变化量是否达到噪声变化阈值和信号变化阈值。
在本申请实施例中,所述噪声变化量可以具体为所述当前噪声值与噪声基准值之间的差值,而所述信号变化量可以具体为所述当前信号值与信号基准值之间的差值。为了计算所述噪声变化量和所述信号变化量,在本实施例中需要预先确定***的噪声基准值和信号基准值。
在具体实施例中,所述噪声基准值和信号基准值可以是所述智能终端不存 在人手触摸所述按键时预先地通过对***的输出信号值进行采样并计算得到。比如,在一种实施例中,在所述智能终端不存在人手触摸所述按键时通过对***的输出信号值进行连续Y次的采样可以得到Y次基准采样结果,并且,通过平均值计算和峰峰值计算可以得到所述Y次基准采样结果的平均值和峰峰值,其中,所述平均值和峰峰值的计算结果可以分别作为所述基准信号值Ave_Base和所述基准噪声值Noise_Base。应当理解,所述噪声基准值和信号基准值可以是在步骤S101之前预先通过对***的输出信号值进行采样和计算得到。
在步骤S102中,通过对所述当前噪声值和所述噪声基准值进行差值运算,以及对所述当前信号值和所述信号基准值进行差值运算,可以分别得到所述噪声变化量N0和所述信号变化量S0。其中,
N0=noise-Noise_Base
S0=ave-Ave_Base
参阅图5所示,当智能终端连接到充电器后,在用户触摸或者按压按键时,***的当前噪声值或当前信号值发生了明显的变化,根据其区分度,可以预先设定相应的噪声变化阈值和信号变化阈值,来作为检测按键工作状态的依据。
可选地,本申请实施例分别预先设置所述噪声变化阈值和所述信号变化阈值,所述的噪声变化阈值和所述信号变化阈值可以分别根据实际需求设置,本申请实施例对此不作限制;通过设置合理的所述噪声变化阈值和所述信号变化阈值可以有效避免外部干扰时的判断错误,提高判断准确性。
在本实施例中,所述噪声变化阈值和所述信号变化阈值可以分别记为Nt和St,并且噪声判断结果和信号判断结果可以分别记为Noe和Sig。
当所述噪声变化量达到所述噪声变化阈值时,此时所述噪声判断结果Noe 可以设为1,即当N0≥Nt时,Noe=1;否则,当所述噪声变化量小于所述噪声变化阈值时,所述噪声判断结果Noe可以设为0,即当N0<Nt时,Noe=0。
相类似地,当所述信号变化量达到所述信号变化阈值时,此时所述信号判断结果Sig可以设为1,即当S0≥St时,Sig=1;否则,当所述信号变化量小于所述信号变化阈值时,所述信号判断结果Sig可以设为0,即当N0<Nt时,Sig=0。
S103:根据判断结果确定所述按键的工作状态。
考虑到在所述智能终端不存在外部共模干扰,比如未连接充电器的情况下,此时人手触摸可能并不会引起所述噪声变化量发生明显的变化,在这种情况下无法以所述噪声变化量是否超出所述噪声变化阈值来作为判断***的按键状态的条件,因此,在本实施例中,在所述智能终端不存在外部共模干扰的情况下,可以根据所述信号变化量是否超出所述信号变化阈值来判断所述按键的工作状态。而在所述智能终端存在外部共模干扰的情况下,当存在人手触摸或者按压所述按键的情况下,所述噪声变化量会超出噪声变化阈值,此时便可以根据所述噪声变化量是否超出所述信号变化阈值来判断所述按键的工作状态。
具体地,在步骤S103中,当所述信号变化量和所述噪声变化量至少一个达到其相应的信号变化阈值或噪声变化阈值时,可以判断出所述按键处于按键状态,即是处于被按压或者触摸的工作状态。相反地,当所述信号变化量和所述噪声变化量都分别没有达到所述信号变化阈值和所述噪声变化阈值时,则可以判断出所述按键处于松键状态,即是处于未被按压或者触摸的工作状态。
比如,在申请实施例中,步骤S103可以根据K=Sig|Noe综合确认所述按键的工作状态,其中,K为所述按键的工作状态,Sig为噪声判断结果,Noe为信号判断结果,“|”为逻辑或运算。
具体地,只要所述噪声变化量达到所述噪声变化阈值或者所述信号变化量 达到所述信号变化阈值,即只要所述噪声判断结果Noe和所述信号判断结果Sig中任一个为1时,则根据K=Sig|Noe可以得到当前所述按键的工作状态K=1,即确认当前***处于按键状态。当所述噪声变化量小于所述噪声变化阈值并且所述信号变化量也小于所述信号变化阈值,即所述噪声判断结果Noe和所述信号判断结果均为0时,则根据K=Sig|Noe可以得到当前所述按键的工作状态K=0,即确认当前***处于松键状态。
在本申请的实施例中,所述按键检测方法通过对***的输出信号值进行实时采样,计算得到对应的当前噪声值和当前信号值,并判断噪声变化量和信号变化量是否大于相应的噪声变化阈值或信号变化阈值,根据噪声判断结果和信号判断结果综合确定智能终端的按键状态。与现有技术相比,本申请实施例不需要另外设置复杂的辅助电路来实现对按键状态的检测,降低了成本同时提高了按键状态检测的准确性,使用户获得了更好的使用体验。
实施例二
参阅图6所示,为本申请所述按键检测装置的结构示意图,所述按键检测装置位于智能终端,所述的智能终端包括但不限于智能手机、平板电脑或者其他终端设备,所述按键检测装置包括采样单元1、判断单元2和状态确定单元3。
所述采样单元1,用于对输出信号值进行采样,并根据采样结果分别计算当前噪声值以及当前信号值;
所述判断单元2,用于根据所述当前噪声值和所述当前信号值,分别判断噪声变化量以及信号变化量是否达到相应的噪声变化阈值和信号变化阈值;
所述状态确定单元3,用于根据所述判断单元的判断结果确定按键的工作状态。
在一种具体实施例中,所述采样单元1可以包括:
采样子单元11,用于对所述输出信号值进行连续多次实时采样,并得到多次采样结果;
计算子单元12,用于计算所述多次采样结果的平均值和峰峰值,并将所述平均值和峰峰值分别作为所述当前信号值和所述当前噪声值。
进一步地,所述按键检测装置还可以包括:
差值计算单元4,用于计算所述当前噪声值与噪声基准值之间的差值并将其作为所述噪声变化量,且计算所述当前信号值与信号基准值之间的差值并将其作为所述信号变化量。
进一步地,所述按键检测装置还可以包括:
基准确定单元5,用于在未存在人体触摸所述按键时预先确定所述噪声基准值和所述信号基准值。
在一种具体实施例中,所述基准确定单元5可以包括:
基准采样子单元51,用于在未存在人体触摸所述按键时对所述输出信号值进行连续多次的采样得到多次基准采样结果;
基准计算子单元52,用于计算所述多次基准采样结果的平均值和峰峰值,并将所述多次基准采样结果的平均值和峰峰值分别作为所述基准信号值和所述基准噪声值。
可选地,在一种实施例中,所述状态确定单元3可以具体用于在所述信号变化量和所述噪声变化量至少一个达到其相应的信号变化阈值或噪声变化阈值时,判断出所述按键处于按键状态;并且,在所述信号变化量小于所述信号变化阈值且所述噪声变化量也小于所述噪声变化阈值时,判断出所述按键处于松 键状态。
在一种具体实施例中,所述判断单元2可以包括:
噪声变化判断子单元21,用于在所述当前噪声值与所述噪声基准值之间的差值达到预先设置的噪声变化阈值时,将噪声判断结果Noe设为1,否则,将所述噪声判断结果Noe设为0;
信号变化判断子单元22,用于在所述当前信号值与所述信号基准值之间的差值达到预先设置的信号变化阈值时,将信号判断结果Sig设为1,否则,将所述信号判断结果Sig设为0。
可选地,在一种实施例中,所述状态确定单元3可以包括:
逻辑或运算子单元31,用于根据K=Sig|Noe对所述噪声判断结果Noe和所述信号判断结果Sig进行逻辑或运算,其中K表示所述按键的工作状态,“|”为逻辑或运算;
状态确定子单元32,用于在K=1时判断出所述按键处于按键状态,而在K=0时判断出所述按键处于松键状态。
进一步地,所述按键检测装置还可以包括:
设置单元6,用于设置所述输出信号值的采样频率,所述输出信号值的采样频率是指单位时间内采集的信号样本数量X,所述X为正整数,在本申请实施例中,所述设置单元4设置的所述的X为8,在本申请的其他实施方式中,根据实际需求可以选择其他的数值。应当理解,所述按键检测装置可以是由包括处理器或者结合其他硬件单元来实现的检测模块,其各个功能单元可以通过硬件、软件或者软硬件结合来实现,且所述各个功能单元的具体功能实现可以参照前一实施例关于本申请提供的按键检测方法的描述,此处不再赘述。
在本申请所提供的上述实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
以上仅为本申请的实施例,但并不限制本申请的专利范围,尽管参照前述实施例对本申请进行了详细的说明,对于本领域的技术人员来而言,其依然可以对前述各具体实施方式所记载的技术方案进行修改,或者对其中部分技术特征进行等效替换。凡是利用本申请说明书及附图内容所做的等效结构,直接或间接运用在其他相关的技术领域,均同理在本申请专利保护范围之内。

Claims (20)

  1. 一种按键检测方法,其特征在于,包括:
    对输出信号值进行采样,并根据采样结果分别计算当前噪声值以及当前信号值;
    根据所述当前噪声值和所述当前信号值,分别判断噪声变化量和信号变化量是否达到相应的噪声变化阈值和信号变化阈值;
    根据判断结果确定按键的工作状态。
  2. 根据权利要求1所述的按键检测方法,其特征在于,所述对输出信号值进行采样,并根据采样结果计算当前噪声值以及当前信号值包括:
    对所述输出信号值进行连续多次实时采样,并得到多次采样结果;
    计算所述多次采样结果的平均值和峰峰值,并将所述平均值和峰峰值分别作为所述当前信号值和所述当前噪声值。
  3. 根据权利要求1所述的按键检测方法,其特征在于,所述噪声变化量为所述当前噪声值与噪声基准值之间的差值,而所述信号变化量为所述当前信号值与信号基准值之间的差值。
  4. 根据权利要求3所述的按键检测方法,其特征在于,还包括:
    在未存在人体触摸所述按键时对所述输出信号值进行连续多次采样得到多次基准采样结果;
    计算所述多次基准采样结果的平均值和峰峰值,并将所述多次基准采样结果的平均值和峰峰值分别作为所述基准信号值和所述基准噪声值。
  5. 根据权利要求3所述的按键检测方法,其特征在于,所述根据判断结果确认按键的工作状态包括:
    当所述信号变化量和所述噪声变化量至少一个达到其相应的信号变化阈值或噪声变化阈值时,判断出所述按键处于按键状态;
    当所述信号变化量小于所述信号变化阈值且所述噪声变化量也小于所述噪声变化阈值时,判断出所述按键处于松键状态。
  6. 根据权利要求3所述的按键检测方法,其特征在于,所述判断噪声变化量和信号变化量是否达到噪声变化阈值和信号变化阈值包括:
    当所述当前噪声值与所述噪声基准值之间的差值达到预先设置的噪声变化阈值时,将噪声判断结果Noe设为1,否则,将所述噪声判断结果Noe设为0;
    当所述当前信号值与所述信号基准值之间的差值达到预先设置的信号变化阈值时,将信号判断结果Sig设为1,否则,将所述信号判断结果Sig设为0。
  7. 根据权利要求6所述的按键检测方法,其特征在于,所述根据判断结果确认按键的工作状态包括:
    根据K=Sig|Noe判断所述按键的工作状态,其中,K表示所述按键的工作状态,Sig为所述噪声判断结果,Noe为所述信号判断结果,“|”为逻辑或运算;
    当K=1时,判断出所述按键处于按键状态;而当K=0时,判断出所述按键处于松键状态。
  8. 一种按键检测装置,其特征在于,包括:
    采样单元,用于对输出信号值进行采样,并根据采样结果分别计算当前噪声值以及当前信号值;
    判断单元,用于根据所述当前噪声值和所述当前信号值,分别判断噪声变化量以及信号变化量是否达到相应的噪声变化阈值和信号变化阈值;
    状态确定单元,用于根据所述判断单元的判断结果确定按键的工作状态。
  9. 根据权利要求8所述的按键检测装置,其特征在于,所述采样单元包括:
    采样子单元,用于对所述输出信号值进行连续多次实时采样,并得到多次采样结果;
    计算子单元,用于计算所述多次采样结果的平均值和峰峰值,并将所述平均值和峰峰值分别作为所述当前信号值和所述当前噪声值。
  10. 根据权利要求8所述的按键检测装置,其特征在于,还包括:
    差值计算单元,用于计算所述当前噪声值与噪声基准值之间的差值并将其作为所述噪声变化量,且计算所述当前信号值与信号基准值之间的差值并将其作为所述信号变化量。
  11. 根据权利要求10所述的按键检测方法,其特征在于,还包括:
    基准确定单元,用于在未存在人体触摸所述按键时预先确定所述噪声基准值和所述信号基准值。
  12. 根据权利要求11所述的按键检测方法,其特征在于,所述基准确定单元包括:
    基准采样子单元,用于在未存在人体触摸所述按键时对所述输出信号值进行连续多次的采样得到多次基准采样结果;
    基准计算子单元,用于计算所述多次基准采样结果的平均值和峰峰值,并将所述多次基准采样结果的平均值和峰峰值分别作为所述基准信号值和所述基准噪声值。
  13. 根据权利要求11所述的按键检测装置,其特征在于,所述状态确定单元用于在所述信号变化量和所述噪声变化量至少一个达到其相应的信号变化阈值或噪声变化阈值时,判断出所述按键处于按键状态;并且,在所述信号变化 量小于所述信号变化阈值且所述噪声变化量也小于所述噪声变化阈值时,判断出所述按键处于松键状态。
  14. 根据权利要求11所述的按键检测装置,其特征在于,所述判断单元包括:
    噪声变化判断子单元,用于在所述当前噪声值与所述噪声基准值之间的差值达到预先设置的噪声变化阈值时,将噪声判断结果Noe设为1,否则,将所述噪声判断结果Noe设为0;
    信号变化判断子单元,用于在所述当前信号值与所述信号基准值之间的差值达到预先设置的信号变化阈值时,将信号判断结果Sig设为1,否则,将所述信号判断结果Sig设为0。
  15. 根据权利要求14所述的按键检测装置,其特征在于,所述状态确定单元包括:
    逻辑或运算子单元,用于根据K=Sig|Noe对所述噪声判断结果Noe和所述信号判断结果Sig进行逻辑或运算,其中K表示所述按键的工作状态,“|”为逻辑或运算;
    状态确定子单元,用于在K=1时判断出所述按键处于按键状态,而在K=0时判断出所述按键处于松键状态。
  16. 一种按键检测方法,其特征在于,包括:
    在存在外部共模干扰情况下对按键的输出信号值进行采样,并计算得到当前噪声值;
    根据所述当前噪声值,判断噪声变化量是否达到噪声变化阈值;
    在所述噪声变化量达到所述噪声变化阈值时,判断出所述按键处于按键状 态。
  17. 根据权利要求16所述的按键检测方法,其特征在于,所述外部共模干扰包括连接充电器而引入的充电共模干扰。
  18. 根据权利要求16所述的按键检测方法,其特征在于,所述当前噪声值是通过对所述输出信号值进行连续多次实时采样而得到的多次采样结果进行峰峰值计算得到的。
  19. 根据权利要求16所述的按键检测方法,其特征在于,所述噪声变化量为所述当前噪声值与噪声基准值之间的差值,其中所述噪声基准值时通过在未存在人体触摸所述按键时对所述输出信号值进行连续多次采样而得到多次基准采样结果进行峰峰值计算而得到的。
  20. 根据权利要求16至19中任一项所述的按键检测方法,其特征在于,还包括:在不存在外部共模干扰的情况下,根据当前信号值来判断信号变化量是否达到信号变化阈值,并在所述信号变化量达到信号变化阈值时判断出所述按键处于按键状态。
PCT/CN2017/073773 2017-02-16 2017-02-16 一种按键检测方法及装置 WO2018148902A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP17896698.2A EP3432128B1 (en) 2017-02-16 2017-02-16 Button detection method and device
PCT/CN2017/073773 WO2018148902A1 (zh) 2017-02-16 2017-02-16 一种按键检测方法及装置
CN201780000073.2A CN107003783B (zh) 2017-02-16 2017-02-16 一种按键检测方法及装置
US16/133,669 US10983633B2 (en) 2017-02-16 2018-09-17 Key detecting method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/073773 WO2018148902A1 (zh) 2017-02-16 2017-02-16 一种按键检测方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/133,669 Continuation US10983633B2 (en) 2017-02-16 2018-09-17 Key detecting method and apparatus

Publications (1)

Publication Number Publication Date
WO2018148902A1 true WO2018148902A1 (zh) 2018-08-23

Family

ID=59435919

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/073773 WO2018148902A1 (zh) 2017-02-16 2017-02-16 一种按键检测方法及装置

Country Status (4)

Country Link
US (1) US10983633B2 (zh)
EP (1) EP3432128B1 (zh)
CN (1) CN107003783B (zh)
WO (1) WO2018148902A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019127118A1 (zh) * 2017-12-27 2019-07-04 深圳市汇顶科技股份有限公司 噪声检测方法及装置、电子设备和计算机可读存储介质
CN110138373B (zh) * 2019-05-24 2023-12-15 深圳市谷粒科技有限公司 按键信息处理设备及方法
CN110945471A (zh) * 2019-10-30 2020-03-31 深圳市汇顶科技股份有限公司 共模噪声滤波方法、mcu、触控设备及存储介质
CN111897449A (zh) * 2020-06-19 2020-11-06 上海美仁半导体有限公司 触控信号的抗干扰处理方法、***、芯片以及家用电器
CN112073046A (zh) * 2020-07-22 2020-12-11 深圳市优必选科技股份有限公司 一种按键触发事件的检测方法、检测装置、终端
CN115437017A (zh) * 2022-08-24 2022-12-06 远峰科技股份有限公司 智能防误触感应器、感应***及门把感应装置
CN115549680B (zh) * 2022-11-28 2023-03-31 南京沁恒微电子股份有限公司 一种触摸按键抗干扰检测方法及检测芯片

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365469A (zh) * 2013-06-28 2013-10-23 京东方科技集团股份有限公司 触摸点的检测方法、装置、触控驱动电路及触摸屏
CN105045426A (zh) * 2015-08-13 2015-11-11 北京集创北方科技有限公司 一种触摸屏抗噪声方法及装置
CN105573553A (zh) * 2015-12-30 2016-05-11 联想(北京)有限公司 信息处理方法、信息处理装置及电子设备
CN105980960A (zh) * 2014-02-14 2016-09-28 德州仪器公司 触摸屏控制器及通过噪声整形减小充电器噪声的方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102934061B (zh) * 2011-02-07 2016-11-09 谱瑞科技股份有限公司 用于电容感测装置的噪声滤波装置、***和方法
CN103389842B (zh) * 2012-05-07 2016-12-28 美法思株式会社 触摸传感器芯片、包含触摸传感器芯片的触摸感测装置及触摸板的噪声控制方法
US10042446B2 (en) * 2013-08-13 2018-08-07 Samsung Electronics Company, Ltd. Interaction modes for object-device interactions
KR20150104784A (ko) * 2014-03-06 2015-09-16 삼성전기주식회사 터치스크린 장치 및 터치 감지 방법

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365469A (zh) * 2013-06-28 2013-10-23 京东方科技集团股份有限公司 触摸点的检测方法、装置、触控驱动电路及触摸屏
CN105980960A (zh) * 2014-02-14 2016-09-28 德州仪器公司 触摸屏控制器及通过噪声整形减小充电器噪声的方法
CN105045426A (zh) * 2015-08-13 2015-11-11 北京集创北方科技有限公司 一种触摸屏抗噪声方法及装置
CN105573553A (zh) * 2015-12-30 2016-05-11 联想(北京)有限公司 信息处理方法、信息处理装置及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3432128A4 *

Also Published As

Publication number Publication date
EP3432128B1 (en) 2023-08-02
US10983633B2 (en) 2021-04-20
CN107003783B (zh) 2019-05-21
EP3432128A4 (en) 2019-11-13
EP3432128A1 (en) 2019-01-23
US20190018054A1 (en) 2019-01-17
CN107003783A (zh) 2017-08-01

Similar Documents

Publication Publication Date Title
WO2018148902A1 (zh) 一种按键检测方法及装置
CN106598335B (zh) 一种移动终端的触摸屏控制方法、装置及移动终端
US9007314B2 (en) Method for touch processing and mobile terminal
EP3200051B1 (en) Method, device and system for processing touch interaction
KR101742410B1 (ko) 스크린샷 기능을 내장하는 지능형 단말기 및 그 구현 방법
CN110132458B (zh) 一种动态或准动态力度检测装置及方法
CN105739868B (zh) 一种识别终端被误触的方法及装置
CN106775087A (zh) 一种移动终端的触摸屏控制方法、装置及移动终端
TW201305869A (zh) 觸控屏觸摸軌跡檢測方法及檢測裝置
WO2012075732A1 (zh) 一种应用于数字终端的输入方法及装置
CN104298392A (zh) 一种根据触摸位置判断惯用手握持的方法
WO2017032063A1 (zh) 一种屏幕切换方法及移动终端
CN104866226A (zh) 一种终端设备及其控制方法
CN111078108A (zh) 一种屏幕显示方法、装置、存储介质及移动终端
CN105302369A (zh) 一种防止或减少触摸屏误操作发生的方法及***
WO2019023923A1 (zh) 确定触摸位置的方法和触摸控制芯片
KR101327888B1 (ko) 터치 패널 시스템의 믹서 회로 및 방법
JP2014174996A (ja) インタフェースが触れられていることを示すためのシステムおよび方法
CN104360800A (zh) 一种解锁模式调整方法
EP3214533B1 (en) Method and terminal for moving screen interface
CN115665319B (zh) 基于无线耳机的应用控制方法、装置、设备以及存储介质
TW201145085A (en) Position detection device and detection method
CN106775406A (zh) 一种移动终端触摸屏的防误触控制方法、装置及移动终端
WO2017161807A1 (zh) 一种终端及其握力检测方法
WO2016070465A1 (zh) 多事件输入的方法和终端

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2017896698

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2017896698

Country of ref document: EP

Effective date: 20181015

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17896698

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE