WO2021223447A1 - 触摸电容数据的调整方法及装置、电子设备、存储介质 - Google Patents

触摸电容数据的调整方法及装置、电子设备、存储介质 Download PDF

Info

Publication number
WO2021223447A1
WO2021223447A1 PCT/CN2020/137359 CN2020137359W WO2021223447A1 WO 2021223447 A1 WO2021223447 A1 WO 2021223447A1 CN 2020137359 W CN2020137359 W CN 2020137359W WO 2021223447 A1 WO2021223447 A1 WO 2021223447A1
Authority
WO
WIPO (PCT)
Prior art keywords
compensation
value
touch
touch capacitance
capacitance data
Prior art date
Application number
PCT/CN2020/137359
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 KR1020227038573A priority Critical patent/KR20220162785A/ko
Priority to US17/923,575 priority patent/US11966539B2/en
Priority to JP2022567672A priority patent/JP7490819B2/ja
Publication of WO2021223447A1 publication Critical patent/WO2021223447A1/zh

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
    • 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
    • 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/04186Touch location disambiguation
    • 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
    • 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
    • G06F3/0443Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using a single layer of sensing electrodes
    • 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
    • G06F3/0446Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using a grid-like structure of electrodes in at least two directions, e.g. using row and column electrodes
    • 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/046Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by electromagnetic means

Definitions

  • This application relates to the field of touch technology, and in particular to a method and device for adjusting touch capacitance data, electronic equipment, and storage media.
  • the touch capacitance data collected by multiple touch sensors on the touch panel before being touched should be adjusted to a uniform value, so as to ensure that the touch capacitance data collected when being touched have a uniform reference value , To ensure the accuracy of touch sensing.
  • the compensation capacitance value of the touch sensor is directly adjusted linearly, but there is a nonlinear relationship between the compensation capacitance value and the touch capacitance data, which limits this adjustment method and cannot guarantee the accuracy of the touch capacitance data adjustment.
  • An embodiment of the application provides a method for adjusting touch capacitance data, and the method includes:
  • the configured compensation step size calculating the amount of change in the compensation capacitance value required to adjust the touch capacitance data to the target value
  • the corresponding compensation operation is performed by using the variation of the compensation capacitance value.
  • the performing a corresponding compensation operation by using the change in the compensation capacitance value according to the judgment result includes:
  • the current compensation capacitance value is acceleratedly compensated by using the compensation capacitance value change amount.
  • the acceleration compensation of the current compensation capacitance value using the change in the compensation capacitance value includes:
  • CnegNew CnegInitial+Y* ⁇ CnegValue; where CnegNew represents the target compensation capacitor value, CnegInitial represents the current compensation capacitor value, ⁇ CnegValue represents the change in the compensation capacitor value, and Y is based on the compensation capacitor value and the said The configuration parameters of the corresponding relationship of the touch capacitance data;
  • the performing a corresponding compensation operation by using the change in the compensation capacitance value according to the judgment result includes:
  • the current compensation capacitance value is linearly compensated by using the compensation capacitance value change amount.
  • the linear compensation of the current compensation capacitance value by using the compensation capacitance value change includes:
  • CnegNew CnegInitial+ ⁇ CnegValue
  • CnegNew represents the target compensation capacitor value
  • CnegInitial represents the current compensation capacitor value
  • ⁇ CnegValue represents the amount of change in the compensation capacitor value
  • the calculating the compensation capacitance value change amount required to adjust the touch capacitance data to the target value according to the configured compensation step size includes:
  • the touch capacitance difference value is divided by the compensation step size to obtain the compensation capacitance value change amount.
  • the method before the judging whether the touch capacitance data is in a non-linear range, the method further includes:
  • the non-linear range of the touch capacitance data is calculated.
  • the determining whether the touch capacitance data is in a non-linear range includes:
  • RawSatur represents a saturation value
  • CnegStep represents the compensation step size
  • X is a parameter configured according to the corresponding relationship between the compensation capacitance value and the touch capacitance data.
  • the method further includes:
  • the acquisition of touch capacitance data and the compensation operation are repeated.
  • the repeated execution of the acquisition of touch capacitance data and the compensation operation according to the configured number of repetitions of automatic compensation includes:
  • the non-linear range and the compensation degree are reconfigured according to the corresponding relationship between the current compensation capacitance value and the touch capacitance data;
  • the step of calculating the amount of change in the compensation capacitance value required to adjust the touch capacitance data to the target value according to the configured compensation step size includes:
  • the method before the step of calculating the change in the compensation capacitance value required to adjust the touch capacitance data to the target value according to the configured compensation step size, the method further includes:
  • the compensation step length is calculated according to the formula
  • an embodiment of the present application also provides a device for adjusting touch capacitance data, the device including:
  • the data acquisition module is configured to acquire touch capacitance data
  • the compensation capacitance value variation calculation module is configured to calculate the compensation capacitance value variation required to adjust the touch capacitance data to the target value according to the configured compensation step;
  • a non-linear judgment module configured to judge whether the touch capacitance data is in a non-linear range
  • the capacitance compensation module is configured to perform a corresponding compensation operation by using the variation of the compensation capacitance value according to the judgment result.
  • the present application also provides an electronic device, the electronic device including:
  • a memory configured to store executable instructions of the processor
  • the processor is configured to execute the method for adjusting touch capacitance data provided in this application.
  • the present application also provides a computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to complete the method for adjusting the touch capacitance data provided by the present application.
  • the technical solution provided by the above-mentioned embodiments of the present application obtains the touch capacitance data, calculates the compensation capacitance value change according to the compensation step size, and then determines whether the touch capacitance data is in the non-linear range, and uses the compensation capacitance value change according to the judgment result Perform a corresponding compensation operation, so that no matter what range the touch capacitance data is in, it can be appropriately compensated and adjusted to near the target value, which improves the accuracy of adjustment of the touch capacitance data.
  • FIG. 1 is a schematic diagram of an application scenario of a method for adjusting touch capacitance data provided by an embodiment of the application;
  • FIG. 2 is a schematic flowchart of a method for adjusting touch capacitance data according to an embodiment of the application
  • step S220 in the embodiment corresponding to FIG. 2;
  • FIG. 4 is a schematic diagram of a process of a method for adjusting touch capacitance data provided by another embodiment of the application.
  • FIG. 5 is a block diagram of a device for adjusting touch capacitance data according to another embodiment of the application.
  • Icon 100-touch device; 110-touch panel; 111-touch sensor; 120-controller; 121-processor; 122-memory; 510-data acquisition module; 520-compensation capacitance value change calculation module; 530- Non-linear judgment module; 540-capacitance compensation module.
  • FIG. 1 is a schematic diagram of an application scenario of a method for adjusting touch capacitance data provided by an embodiment of the application.
  • the application scenario includes a touch device 100.
  • the touch device 100 may be a mobile phone, a tablet computer, or other devices equipped with a touch panel.
  • the touch device 100 can automatically adjust the compensation capacitance value of the touch sensor using the method for adjusting the touch capacitance data provided in the embodiments of the present application, so that the touch capacitance data is adjusted to near the target value, and the accuracy of the adjustment of the touch capacitance data is improved.
  • the touch device 100 includes a touch panel 110 and a controller 120.
  • the touch panel includes a plurality of touch sensors 111.
  • the controller 120 may be connected to the touch panel 110 and adopt the method for adjusting the touch capacitance data provided in the embodiments of the present application to realize the automatic adjustment of the touch capacitance data collected by the touch sensor 111.
  • the application also provides an electronic device.
  • the electronic device may be the controller 120.
  • the controller 120 may include a processor 121 and a memory 122 configured to store executable instructions of the processor 121; wherein the processor 121 is configured to execute the method for adjusting touch capacitance data provided in the present application.
  • the memory 122 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable programmable read-only memory (Electrically erasable programmable read-only memory), or a combination thereof.
  • Static Random Access Memory SRAM for short
  • electrically erasable programmable read-only memory Electrically erasable programmable read-only memory
  • EEPROM Erasable Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • PROM Programmable Red-Only Memory
  • Read-only memory Read-Only Memory, ROM for short
  • magnetic memory flash memory, magnetic disk or optical disk.
  • the present application also provides a computer-readable storage medium.
  • the storage medium stores a computer program.
  • the computer program can be executed by the processor 121 to complete the method for adjusting the touch capacitance data provided in the present application.
  • FIG. 2 is a schematic flowchart of a method for adjusting touch capacitance data provided by an embodiment of the application. As shown in Figure 2, the method includes the following steps S210-S240.
  • Step S210 Acquire touch capacitance data.
  • the touch capacitance data provided by the embodiments of the present application is the sum of the capacitance data of each touch sensor on the touch panel before being touched and the corresponding compensation capacitance value.
  • the touch device 100 starts scanning after being turned on to obtain touch capacitance data.
  • Step S220 According to the configured compensation step size, calculate the compensation capacitance value change amount required to adjust the touch capacitance data to the target value.
  • the target value is preset.
  • the target value may be a value close to most of the touch capacitance data on the touch panel 110; or, the target value may also be a value set according to actual needs.
  • the amount of change in the compensation capacitance value is based on the current compensation capacitance value. In order to adjust the touch capacitance data to the target value, the amount of change in the compensation capacitance value needs to be compensated.
  • the compensation step is the amount of change in the touch capacitance data when the compensation capacitance value increases by 1 unit within the linear variation range.
  • the compensation step size can be determined and configured in the following manner.
  • the first touch data, the first compensation parameter corresponding to the first historical touch capacitance data, the second touch data, and the second compensation parameter corresponding to the second historical touch capacitance data may be acquired first.
  • the compensation step length is calculated according to the formula
  • RawCur is the touch capacitance data
  • RawDest is the target value
  • CnegStep is the compensation step length
  • ⁇ CnegValue is the change in the compensation capacitance value.
  • step S210 After obtaining the current touch capacitance data in step S210, first stop scanning.
  • the configured compensation step that is, according to the linear change relationship between the compensation capacitance value and the touch capacitance data, calculate the amount required to adjust the touch capacitance data acquired in step S210 to the target value under linear conditions. Compensate the change in capacitance value.
  • Step S230 Determine whether the touch capacitance data is in a non-linear range.
  • the non-linear range refers to a specific range of the touch capacitance data, and the specific range is associated with the size of the touch capacitance data itself. Within this specific range, the corresponding relationship between the compensation capacitance value and the touch capacitance data presents a non-linear relationship. In this step, it is determined whether the current touch capacitance data is within the specific range.
  • Step S240 According to the judgment result, perform a corresponding compensation operation using the change in the compensation capacitance value.
  • the judgment result may be that the touch capacitance data is in the non-linear range or not in the non-linear range. Since the corresponding relationship between the compensation capacitance value and the touch capacitance data is different in these two ranges, the compensation degree for the current compensation capacitance value should also be different. For these two judgment results, the compensation capacitance value change can be used to perform corresponding compensation operations on the current compensation capacitance value.
  • the current compensation capacitance value when the touch capacitance data is within the linear range, the current compensation capacitance value can be increased by one unit of the change in the compensation capacitance value, and when the touch capacitance data is not within the linear range, the current compensation capacitance value can be increased Increase the amount of change in the compensation capacitance value greater than one unit.
  • the technical solution provided by the above-mentioned embodiments of the present application obtains the touch capacitance data, calculates the compensation capacitance value change according to the compensation step size, and then determines whether the touch capacitance data is in the non-linear range, and uses the compensation capacitance value change according to the judgment result Perform a corresponding compensation operation, so that no matter what range the touch capacitance data is in, it can be properly compensated and adjusted to near the target value.
  • the performing a corresponding compensation operation using the change in the compensation capacitance value according to the judgment result may include: if the touch capacitance data is within the non-linear range, using the change in the compensation capacitance value Accelerate compensation for the current compensation capacitor value.
  • acceleration compensation refers to compensation for the current compensation capacitance value greater than the amount of change in the compensation capacitance value.
  • the target compensation capacitance value refers to the compensation capacitance value updated after this compensation is completed.
  • Y is a parameter greater than 1, and Y can be configured according to the corresponding relationship between the compensation capacitance value and the touch capacitance data. Specifically, when the degree of nonlinearity between the compensation capacitance value and the touch capacitance data is greater, Y is also larger.
  • the compensation capacitor address is pre-stored in the memory. In this step, the compensation capacitor address in the memory is acquired first, and then the target compensation capacitor value is written into the compensation capacitor address to complete the update of the compensation capacitor value.
  • using the compensation capacitance value variation to perform a corresponding compensation operation may also include: if the touch capacitance data is not within the non-linear range, using the compensation capacitance value variation Perform linear compensation on the current compensation capacitor value.
  • linear compensation refers to the compensation of the current compensation capacitor value equal to the amount of change in the compensation capacitor value.
  • the target compensation capacitance value can be obtained by directly adding the current compensation capacitance value to the change in the compensation capacitance value .
  • the target compensation capacitor value is written into the compensation capacitor address to complete the update of the compensation capacitor value.
  • the above step S220 calculates the compensation capacitance value change amount required to adjust the touch capacitance data to the target value according to the configured compensation step size, which may include the following steps S221-S223.
  • Step S221 Obtain a preset target value.
  • the target value may be set based on historical experience data, and the target value may be an average value of touch capacitance data collected by all touch sensors on the touch panel 110 when they are not touched.
  • Step S222 Calculate the difference between the touch capacitance data and the target value to obtain a touch capacitance difference.
  • Step S223 Divide the touch capacitance difference value by the compensation step size according to the configured compensation step size to obtain the compensation capacitance value change amount.
  • the touch capacitance data decreases as the compensation capacitance value increases.
  • the touch capacitance difference is negative and the compensation capacitance change is also negative; on the contrary, when the touch capacitance data is greater than the target value, the touch capacitance difference is positive to compensate for the capacitance change It is also a positive value.
  • the method provided in the embodiment of the present application may further include: acquiring a saturation value of the touch capacitance data; according to the saturation value, Calculate the non-linear range of the touch capacitance data.
  • the saturation value refers to a specific value.
  • the touch capacitance data When the touch capacitance data reaches the specific value, the touch capacitance data will not change as the compensation capacitance value increases. In the vicinity of the saturation value, the touch capacitance data has a nonlinear relationship with the change of the compensation capacitance value. According to the empirical data, the saturation value of the touch capacitance data is obtained, and then the non-linear range of the touch capacitance data can be calculated according to the saturation value.
  • the above step S230 determines whether the touch capacitance data is in a non-linear range, and the following method may be used: it is determined whether the touch capacitance data falls within the interval (RawSatur-X*CnegStep, RawSatur); wherein, RawSatur Represents the saturation value, CnegStep represents the compensation step size, and X is a parameter configured according to the corresponding relationship between the compensation capacitance value and the touch capacitance data. Specifically, when the touch capacitance data is far from the target value, X can be configured to be correspondingly larger.
  • the embodiment of the present application may further include: repeating the touch according to the configured number of repetitions of automatic compensation. Capacitance data acquisition and compensation operations.
  • the number of repetitions of automatic compensation refers to the number of repetitive executions of the compensation operation for the touch capacitance data.
  • a compensation operation is completed, that is, after the target compensation capacitance value data is written into the compensation capacitance address, scanning is started to obtain updated touch capacitance data, and another compensation operation is performed according to the touch capacitance data.
  • the non-linear range and compensation degree can be reconfigured according to the corresponding relationship between the current compensation capacitance value and the touch capacitance data; the compensation operation is performed for the last time When the current compensation capacitor value is linearly compensated.
  • the degree of compensation refers to the ratio between the actual change in the compensation capacitance value and the calculated change in the compensation capacitance value based on the change in the compensation capacitance value.
  • the compensation capacitance value is linearly compensated for the last time, so that the partially over-compensated touch capacitance data is restored to near the target value.
  • FIG. 4 is a schematic diagram of a process of a method for adjusting touch capacitance data according to an embodiment of the present invention. The process includes steps S410-S460.
  • Step S410 Acquire touch capacitance data.
  • Step S420 According to the configured compensation step size, the amount of change in the compensation capacitance value required to adjust the touch capacitance data to the target value is calculated.
  • Step S430 Determine whether the touch capacitance data is in a non-linear range. If yes, go to step S440, otherwise go to step S450.
  • Step S440 Perform acceleration compensation on the current compensation capacitance value by using the compensation capacitance value change amount.
  • the method of accelerating compensation can refer to the above-mentioned embodiment.
  • Step S450 Perform linear compensation on the current compensation capacitance value by using the compensation capacitance value change amount.
  • Step S460 Determine whether it is the last compensation; if yes, end, otherwise go back to step S410.
  • five touch sensors on the touch panel are selected as an example, assuming that the touch capacitance data is ⁇ 900,1000,1600,2400,2500 ⁇ , and the compensation capacitance value is ⁇ 5,5,5,5,5 ⁇ ,
  • the touch capacitance data and the compensation capacitance value are normalized data that have been pre-processed. Set the target value of the touch capacitance data to 1000, the saturation value to 2500, the compensation step size to 500, and the number of compensation times to 3.
  • the calculation formula of the compensation capacitance value change is ⁇ (900-1000)/500, (1000-1000)/500, (1600-1000)/500, (2400-1000)/500, (2500-1000)/500 ⁇ , the calculated change in the compensation capacitance value is ⁇ -0.2, 0, 1.2, 2.8, 3 ⁇ . Then, it is judged whether the touch capacitance data is in the non-linear range.
  • X can be configured as ⁇ 0.5, 0.5, 0.8, 1.2, 1.2 ⁇ , and then according to the interval of the non-linear range (RawSatur–X*CnegStep, RawSatur), the calculated non-linear range They are ⁇ (2250, 2500), (2250, 2500), (2100, 2500), (1900, 2500), (1900, 2500) ⁇ . Obviously, 2400 and 2500 are within the nonlinear range for acceleration compensation.
  • Choose Y is 1.8 and 2, respectively, 900, 1000, 1600 are in the linear range, and linear compensation is performed.
  • the updated compensation capacitance value is ⁇ 4.8, 5, 6.2, 10.04 , 11 ⁇ .
  • the touch capacitance data collected by rescanning is ⁇ 988, 1000, 1050, 1200, 1300 ⁇ .
  • the touch capacitance data collected after compensation is ⁇ 998, 1000, 1010, 1050, 1050 ⁇ .
  • the touch capacitance data collected after compensation is ⁇ 1001, 1000, 1006, 1003, 1009 ⁇ .
  • the distance between the touch capacitance data and the target value of 1000 is less than 10, which is as expected.
  • FIG. 5 is a block diagram of a device for adjusting touch capacitance data according to an embodiment of the application.
  • the device includes: a data acquisition module 510, a compensation capacitance value variation calculation module 520, a nonlinear judgment module 530, and a capacitance compensation module 540.
  • the data acquisition module 510 is configured to acquire touch capacitance data
  • the compensation capacitance value variation calculation module 520 is configured to calculate the compensation capacitance value variation required to adjust the touch capacitance data to the target value according to the configured compensation step;
  • the non-linear determination module 530 is configured to determine whether the touch capacitance data is in a non-linear range
  • the capacitance compensation module 540 is configured to perform a corresponding compensation operation by using the variation of the compensation capacitance value according to the judgment result.
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more executables that are configured to implement prescribed logical functions. instruction.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
  • the function is realized in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
  • the present application provides a method and device, electronic equipment, and storage medium for adjusting touch capacitance data, so that the touch capacitance data can be automatically adjusted to near the target value, and the accuracy of the adjustment of the touch capacitance data is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Position Input By Displaying (AREA)
  • Electronic Switches (AREA)

Abstract

一种触摸电容数据的调整方法及装置、电子设备、存储介质。该方法包括:获取触摸电容数据(S210);根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量(S220);判断所述触摸电容数据是否在非线性范围(S230);根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作(S240)。该方法使触摸电容数据可以自动调整至目标值附近,提高了触摸电容数据调整的准确度。

Description

触摸电容数据的调整方法及装置、电子设备、存储介质
相关申请的交叉引用
本申请要求于2020年05月06日提交中国专利局,申请号为2020103759029、名称为“触摸电容数据的调整方法及装置、电子设备、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及触控技术领域,特别涉及一种触摸电容数据的调整方法及装置、电子设备、存储介质。
背景技术
在触控设备中,触摸面板上的多个触摸传感器在受触摸之前采集到的触摸电容数据都应调整至一个统一值,从而保证在受触摸时采集到的触摸电容数据都具有统一的基准值,保证触摸感应的准确性。
现有方法中,直接对触摸传感器的补偿电容值进行线性调整,但是补偿电容值和触摸电容数据之间存在非线性的关系,从而使得这种调整方法受到限制,无法保证触摸电容数据调整的准确度。
发明内容
本申请实施例提供了一种触摸电容数据的调整方法,所述方法包括:
获取触摸电容数据;
根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量;
判断所述触摸电容数据是否在非线性范围;
根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作。
在一实施例中,所述根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作,包括:
如果所述触摸电容数据在所述非线性范围内,利用所述补偿电容值变化量对当前补偿电容值进行加速补偿。
在一实施例中,所述利用所述补偿电容值变化量对当前补偿电容值进行加速补偿,包括:
按照公式CnegNew=CnegInitial+Y*ΔCnegValue计算目标补偿电容值;其中,CnegNew表示所述目标补偿电容值,CnegInitial表示当前补偿电容值,ΔCnegValue表示补偿电容值变化量,Y为根据补偿电容值与所述触摸电容数据的对应关系配置的参数;
将所述目标补偿电容值写入补偿电容地址。
在一实施例中,所述根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作,包括:
如果所述触摸电容数据不在所述非线性范围内,利用所述补偿电容值变化量对当前补偿电容值进行线性补偿。
在一实施例中,所述利用所述补偿电容值变化量对当前补偿电容值进行线性补偿,包括:
按照公式CnegNew=CnegInitial+ΔCnegValue计算目标补偿电容值;其中,CnegNew表示所述目标补偿电容值,CnegInitial表示当前补偿电容值,ΔCnegValue表示补偿电容值变化量;
将所述目标补偿电容值写入补偿电容地址。
在一实施例中,所述根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量,包括:
获取预设的目标值;
计算所述触摸电容数据与所述目标值之差,得到触摸电容差值;
根据配置的补偿步长,将所述触摸电容差值除以所述补偿步长,得到所述补偿电容值变化量。
在一实施例中,所述判断所述触摸电容数据是否在非线性范围之前,所述方法还包括:
获取所述触摸电容数据的饱和值;
根据所述饱和值,计算所述触摸电容数据的非线性范围。
在一实施例中,所述判断所述触摸电容数据是否在非线性范围,包括:
判断所述触摸电容数据是否落在区间(RawSatur–X*CnegStep,RawSatur)内;
其中,RawSatur表示饱和值,CnegStep表示所述补偿步长,X为根据补偿电容值与所述触摸电容数据的对应关系配置的参数。
在一实施例中,所述根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作之后,所述方法还包括:
根据配置的自动补偿重复次数,重复执行触摸电容数据的获取以及补偿操作。
在一实施例中,所述根据配置的自动补偿重复次数,重复执行触摸电容数据的获取以及补偿操作,包括:
除最后一次外,每次执行补偿操作时,根据当前补偿电容值与所述触摸电容数据的对应关系,重新配置所述非线性范围和补偿程度;
最后一次执行补偿操作时,对当前补偿电容值进行线性补偿。
在一种可选的实施方式中,所述根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量的步骤包括:
计算所述触摸电容数据与所述目标值的差值;
根据算式ΔCnegValue=(RawCur-RawDest)/CnegStep计算所述补偿电容值变化量,其中,RawCur为所述触摸电容数据,RawDest为所述目标值,CnegStep为所述补偿步长,ΔCnegValue为所述补偿电容值变化量。
在一种可选的实施方式中,在所述根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量的步骤之前,所述方法还包括:
获取第一触摸数据、所述第一历史触摸电容数据对应的第一补偿参数、第二触摸数据及所述第二历史触摸电容数据对应的第二补偿参数;
根据算式|R2-R1|/|C2-C1|计算所述补偿步长,其中,R1为第一触摸数据,R2为第二触摸数据,C2为第一补偿参数,C2为第二补偿参数。
另一方面,本申请实施例还提供了一种触摸电容数据的调整装置,所述装置包括:
数据获取模块,配置成获取触摸电容数据;
补偿电容值变化量计算模块,配置成根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量;
非线性判断模块,配置成判断所述触摸电容数据是否在非线性范围;
电容补偿模块,配置成根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作。
第三方面,本申请还提供了一种电子设备,所述电子设备包括:
处理器;
配置成存储处理器可执行指令的存储器;
其中,所述处理器被配置为执行本申请提供的触摸电容数据的调整方法。
第四方面,本申请还提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序可由处理器执行以完成本申请提供的触摸电容数据的调整方法。
本申请上述实施例提供的技术方案,通过获取触摸电容数据,根据补偿步长来计算补偿电容值变化量,继而判断触摸电容数据是否在非线性范围,并依据判断结果来利用补偿电容值变化量执行相应的补偿操作,从而使触摸电容数据无论处于什么范围,都可以得到合适的补偿,调整至目标值附近,提高了触摸电容数据调整的准确度。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍。
图1为本申请一实施例提供的触摸电容数据的调整方法的应用场景示意图;
图2为本申请一实施例提供的触摸电容数据的调整方法的流程示意图;
图3为图2对应实施例中步骤S220的细节流程图;
图4为本申请另一实施例提供的触摸电容数据的调整方法的过程示意图;
图5为本申请另一实施例提供的触摸电容数据的调整装置的框图。
图标:100-触控设备;110-触摸面板;111-触摸传感器;120-控制器;121-处理器;122-存储器;510-数据获取模块;520-补偿电容值变化量计算模块;530-非线性判断模块;540-电容补偿模块。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
图1为本申请实施例提供的触摸电容数据的调整方法的应用场景示意图。如图1所示,该应用场景包括触控设备100。该触控设备100可以是手机、平板电脑以及其他配置有触摸面板的设备。该触控设备100可以采用本申请实施例提供的触摸电容数据的调整方法,自动调整触摸传感器的补偿电容值,从而使触摸电容数据调整至目标值附近,提高了触摸电容数据调整的准确度。
该触控设备100包括触摸面板110和控制器120。触摸面板上包括多个触摸传感器111。控制器120可以连接触摸面板110,采用本申请实施例提供的触摸电容数据的调整方法,实现对触摸传感器111采集的触摸电容数据的自动调整。
本申请还提供了一种电子设备。该电子设备可以是控制器120。控制器120可以包括处理器121和配置成存储处理器121可执行指令的存储器122;其中,该处理器121被配置为执行本申请提供的触摸电容数据的调整方法。
存储器122可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read Only Memory,简称EPROM),可编程只读存储器(Programmable Red-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。
本申请还提供了一种计算机可读存储介质,存储介质存储有计算机程序,计算机程序可由处理器121执行以完成本申请提供的触摸电容数据的调整方法。
图2为本申请实施例提供的触摸电容数据的调整方法的流程示意图。如图2所示,该方法包括以下步骤S210-S240。
步骤S210:获取触摸电容数据。
通常地,在触控设备100中,为了使每个触摸传感器的电容数据在被触摸前的感应量都达到一特定值附近,通常会设置一个补偿电容值来调节该电容数据。因而,本申请实施例所提供的触摸电容数据为触摸面板上的各个触摸传感器在被触摸前的电容数据与对应的补偿电容值的和。在本步骤中,触控设备100在开机之后启动扫描,即可获取触摸电容数据。
步骤S220:根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量。
其中,目标值是预先设定的,在一实施例中,目标值可以是触摸面板110上的大部分触摸电容数据所接近的值;或者,该目标值也可以为根据实际需求进行设置的值。补偿电容值变化量为基于当前的补偿电容值,为了将触摸电容数据调整至目标值而需要补偿电容值的变化量。
需要说明的是,在一定范围内,补偿电容值与触摸电容数据是呈线性变化关系的。补偿步长即为在线性变化范围内,补偿电容值每增加1个单位,触摸电容数据的变化量。
在一种可选的实施方式中,可以采用以下方式确定并配置补偿步长。可以先获取第一触摸数据、第一历史触摸电容数据对应的第一补偿参数、第二触摸数据及第二历史触摸电容数据对应的第二补偿参数。其中,对于每个触摸传感器的补偿电容,可以在其线性变化范围内,首先将补偿电容值配置为第一补偿参数C1,采集此时的触摸电容数据即可得到第一触摸数据R1,再将补偿电容值配置为第二补偿参数C2,采集此时的触摸电容数据即可得到第二触摸数据R2。根据公式|R2-R1|/|C2-C1|计算得到补偿步长,此处|R2-R1|是指R2-R1的绝对值,|C2-C1|是指C2-C1的绝对值。
从而,补偿电容值变化量即满足算式:ΔCnegValue=(RawCur-RawDest)/CnegStep。其中,RawCur为触摸电容数据,RawDest为目标值,CnegStep为补偿步长,ΔCnegValue为补偿电容值变化量。
在步骤S210中获取到当前的触摸电容数据之后,首先停止扫描。在本步骤中,根据配置的补偿步长,即根据补偿电容值与触摸电容数据之间的线性变化关系,计算在线性条件下,将步骤S210中获取的触摸电容数据调整到目标值所需的补偿电容值变化量。
步骤S230:判断所述触摸电容数据是否在非线性范围。
非线性范围是指触摸电容数据的某个特定范围,且该特定范围与触摸电容数据本身的大小关联。在该特定范围内,补偿电容值和触摸电容数据之间的对应关系呈现非线性关系。 在本步骤中,判断当前的触摸电容数据是否在该特定范围内。
步骤S240:根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作。
其中,判断结果可以是触摸电容数据在非线性范围或者不在非线性范围。由于在这两种范围内,补偿电容值与触摸电容数据之间的对应关系不同,对于当前补偿电容值的补偿程度也应当不同。针对这两种判断结果,可以利用补偿电容值变化量来对当前补偿电容值进行相应的补偿操作。
在一实施例中,当触摸电容数据在线性范围内时,可以将当前补偿电容值增加一个单位的补偿电容值变化量,而当触摸电容数据不在线性范围内时,可以将当前补偿电容值增加大于一个单位的补偿电容值变化量。
本申请上述实施例提供的技术方案,通过获取触摸电容数据,根据补偿步长来计算补偿电容值变化量,继而判断触摸电容数据是否在非线性范围,并依据判断结果来利用补偿电容值变化量执行相应的补偿操作,从而使触摸电容数据无论处于什么范围,都可以得到合适的补偿,调整至目标值附近。
在一实施例中,所述根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作,可以包括:如果所述触摸电容数据在所述非线性范围内,利用所述补偿电容值变化量对当前补偿电容值进行加速补偿。其中,加速补偿是指对当前补偿电容值进行大于该补偿电容值变化量的补偿。
在一实施例中,利用所述补偿电容值变化量对当前补偿电容值进行加速补偿,可以包括:按照公式CnegNew=CnegInitial+Y*ΔCnegValue计算目标补偿电容值;其中,CnegNew表示所述目标补偿电容值,CnegInitial表示当前补偿电容值,ΔCnegValue表示补偿电容值变化量,Y为根据补偿电容值与所述触摸电容数据的对应关系配置的参数,将所述目标补偿电容值写入补偿电容地址。
其中,目标补偿电容值是指本次补偿完成后更新的补偿电容值。在本步骤中,Y为大于1的参数,Y可以根据补偿电容值与触摸电容数据的对应关系来进行配置,具体地,当补偿电容值与触摸电容数据之间的非线性程度越大时,Y也越大。补偿电容地址预存于存储器中,本步骤中,先获取存储器中的补偿电容地址,再将目标补偿电容值写入该补偿电容地址,完成补偿电容值的更新。
在一实施例中,根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作,还可以包括:如果所述触摸电容数据不在所述非线性范围内,利用所述补偿电容值变化量对当前补偿电容值进行线性补偿。其中,线性补偿是指对当前补偿电容值进行等于该补偿电容值变化量的补偿。
在一实施例中,利用所述补偿电容值变化量对当前补偿电容值进行线性补偿,可以包 括:按照公式CnegNew=CnegInitial+ΔCnegValue计算所述目标补偿电容值;其中,CnegNew表示所述目标补偿电容值,CnegInitial表示当前补偿电容值,ΔCnegValue表示补偿电容值变化量。
与加速补偿不同,在线性补偿中,由于在线性范围内,补偿电容值与触摸电容数据之间呈线性关系,直接将当前补偿电容值加上补偿电容值变化量,即可得到目标补偿电容值。当目标补偿电容值计算完成后,将该目标补偿电容值写入补偿电容地址,完成补偿电容值的更新。
在一实施例中,如图3所示,上述步骤S220根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量,可以包括以下步骤S221-S223。
步骤S221:获取预设的目标值。
其中,目标值可以是根据历史经验数据而设定的,目标值可以是触摸面板110上的所有触摸传感器在没有被触摸状态下采集的触摸电容数据的平均值。
步骤S222:计算所述触摸电容数据与所述目标值之差,得到触摸电容差值。
步骤S223:根据配置的补偿步长,将所述触摸电容差值除以所述补偿步长,得到所述补偿电容值变化量。
在实际应用中,触摸电容数据随着补偿电容值的增加而减小。当触摸电容数据小于目标值时,触摸电容差值为负值,补偿电容值变化量也为负值;反之,当触摸电容数据大于目标值时,触摸电容差值为正值,补偿电容变化量也为正值。
在一实施例中,在上述步骤S230判断所述触摸电容数据是否在非线性范围之前,本申请实施例提供的方法还可以包括:获取所述触摸电容数据的饱和值;根据所述饱和值,计算所述触摸电容数据的非线性范围。
其中,饱和值是指某一特定值,当触摸电容数据到达该特定值的时候,触摸电容数据便不会随着补偿电容值的增加而改变。而在饱和值的附近范围内,触摸电容数据随着补偿电容值的变化已经呈现非线性关系。根据经验数据,获取触摸电容数据的饱和值,即可根据饱和值来计算触摸电容数据的非线性范围。
在一实施例中,上述步骤S230判断所述触摸电容数据是否在非线性范围,可以采用以下方式:判断所述触摸电容数据是否落在区间(RawSatur–X*CnegStep,RawSatur)内;其中,RawSatur表示饱和值,CnegStep表示所述补偿步长,X为根据补偿电容值与所述触摸电容数据的对应关系配置的参数。具体地,当触摸电容数据离目标值较远时,可以将X配置得相应大一些。
换句话说,可以先将RawSatur–X*CnegStep作为第一阈值,再将饱和值RawSatur作为第二阈值,然后判断该触摸电容数据是否大于或等于该第一阈值且小于或等于第二阈值, 如果是,则表明该触摸电容数据较为接近饱和值,从而确定触摸电容数据在非线性范围内;否则,则可以确定触摸电容数据在线性范围内。
在一实施例中,在上述步骤S240根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作之后,本申请实施例提供的还可以包括:根据配置的自动补偿重复次数,重复执行触摸电容数据的获取以及补偿操作。
其中,自动补偿重复次数是指对于触摸电容数据的补偿操作重复执行的次数。在本步骤中,当一次补偿操作执行完成,即目标补偿电容值数据写入补偿电容地址后,开启扫描,获取更新后的触摸电容数据,并根据触摸电容数据进行再一次的补偿操作。该补偿操作的具体过程可以参照上述实施例的描述,在此不再赘述。
在一实施例中,除最后一次外,每次执行补偿操作时,可以根据当前补偿电容值与所述触摸电容数据的对应关系,重新配置所述非线性范围和补偿程度;最后一次执行补偿操作时,对当前补偿电容值进行线性补偿。
其中,补偿程度是指基于补偿电容值变化量,补偿电容值的实际变化量与计算的补偿电容值变化量之间的比值。触摸电容数据在进行第一次补偿时,其与补偿电容值之间的非线性关系最强,当进行第二次补偿时,由于第一次的补偿已经完成,触摸电容数据与补偿电容值之间的非线性关系减弱,相应地,可以减小非线性范围以及补偿程度。在一实施例中,可以是减小上述实施例中的X和Y。最后一次执行补偿操作时,由于触摸电容数据经过之前的多次补偿操作后可能存在过度补偿的问题,最后一次对补偿电容值进行线性补偿,使得部分过度补偿的触摸电容数据恢复至目标值附近。
图4是本发明一实施例提供的触摸电容数据的调整方法的过程示意图。该过程包括步骤S410-S460。
步骤S410:获取触摸电容数据。
步骤S420:根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量。
步骤S430:判断所述触摸电容数据是否在非线性范围。如果是,执行步骤S440,否则执行步骤S450。
步骤S440:利用所述补偿电容值变化量对当前补偿电容值进行加速补偿。其中,加速补偿的方法可以参见上述实施例。
步骤S450:利用所述补偿电容值变化量对当前补偿电容值进行线性补偿。
步骤S460:判断是否为最后一次补偿;如果是,结束,否则回到步骤S410。
在一实施例中,选取触摸面板上的5个触摸传感器为例,假设触摸电容数据为{900,1000,1600,2400,2500},补偿电容值为{5,5,5,5,5},触摸电容数据和补偿电容值均为经 过预先处理的归一化数据。设置触摸电容数据的目标值为1000,饱和值为2500,补偿步长为500,补偿次数为3。
在第一次补偿过程中,首先计算补偿电容值变化量。根据图3对应实施例中补偿电容值变化量的计算方法,补偿电容值变化量的计算公式为{(900-1000)/500,(1000-1000)/500,(1600-1000)/500,(2400-1000)/500,(2500-1000)/500},计算出补偿电容值变化量为{-0.2,0,1.2,2.8,3}。然后,判断触摸电容数据是否在非线性范围。根据触摸电容数据与目标值的远近,可将X配置为{0.5,0.5,0.8,1.2,1.2},则根据非线性范围的区间(RawSatur–X*CnegStep,RawSatur),计算出的非线性范围分别为{(2250,2500),(2250,2500),(2100,2500),(1900,2500),(1900,2500)},显然,2400和2500在非线性范围内,进行加速补偿,选取Y分别为1.8和2,900、1000、1600在线性范围内,进行线性补偿。根据加速补偿中目标补偿电容值的计算公式CnegNew=CnegInitial+Y*ΔCnegValue以及线性补偿中目标补偿电容值的计算公式CnegNew=CnegInitial+ΔCnegValue,更新之后的补偿电容值为{4.8,5,6.2,10.04,11}。重新扫描采集到的触摸电容数据为{988,1000,1050,1200,1300}。
之后,用同样的方法对当前补偿电容值做第二次补偿,补偿之后采集的触摸电容数据为{998,1000,1010,1050,1050}。最后一次对当前补偿电容值做线性补偿,补偿之后采集的触摸电容数据为{1001,1000,1006,1003,1009}。经过三次补偿,触摸电容数据与目标值1000的距离都小于10,达到预期。
下述为本申请装置实施例,可以配置成执行本申请上述触摸电容数据的调整方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请触摸电容数据的调整方法实施例。
图5为本申请一实施例示出的触摸电容数据的调整装置的框图。该装置包括:数据获取模块510、补偿电容值变化量计算模块520、非线性判断模块530和电容补偿模块540。
数据获取模块510,配置成获取触摸电容数据;
补偿电容值变化量计算模块520,配置成根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量;
非线性判断模块530,配置成判断所述触摸电容数据是否在非线性范围;
电容补偿模块540,配置成根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作。
上述装置中各个模块的功能和作用的实现过程具体详见上述触摸电容数据的调整方法中对应步骤的实现过程,在此不再赘述。
在本申请所提供的几个实施例中,所揭露的装置和方法,也可以通过其它的方式实现。 以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,模块、程序段或代码的一部分包含一个或多个配置成实现规定的逻辑功能的可执行指令。在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。
功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
工业实用性:
本申请提供一种触摸电容数据的调整方法及装置、电子设备、存储介质,使触摸电容数据可以自动调整至目标值附近,提高了触摸电容数据调整的准确度。

Claims (15)

  1. 一种触摸电容数据的调整方法,其特征在于,所述方法包括:
    获取触摸电容数据;
    根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量;
    判断所述触摸电容数据是否在非线性范围;
    根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作。
  2. 根据权利要求1所述的触摸电容数据的调整方法,其特征在于,所述根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作,包括:
    如果所述触摸电容数据在所述非线性范围内,利用所述补偿电容值变化量对当前补偿电容值进行加速补偿。
  3. 根据权利要求2所述的触摸电容数据的调整方法,其特征在于,所述利用所述补偿电容值变化量对当前补偿电容值进行加速补偿,包括:
    按照公式CnegNew=CnegInitial+Y*ΔCnegValue计算目标补偿电容值;其中,CnegNew表示所述目标补偿电容值,CnegInitial表示当前补偿电容值,ΔCnegValue表示补偿电容值变化量,Y为根据补偿电容值与所述触摸电容数据的对应关系配置的参数;
    将所述目标补偿电容值写入补偿电容地址。
  4. 根据权利要求1所述的触摸电容数据的调整方法,其特征在于,所述根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作,包括:
    如果所述触摸电容数据不在所述非线性范围内,利用所述补偿电容值变化量对当前补偿电容值进行线性补偿。
  5. 根据权利要求4所述的触摸电容数据的调整方法,其特征在于,所述利用所述补偿电容值变化量对当前补偿电容值进行线性补偿,包括:
    按照公式CnegNew=CnegInitial+ΔCnegValue计算目标补偿电容值;其中,CnegNew表示所述目标补偿电容值,CnegInitial表示当前补偿电容值,ΔCnegValue表示补偿电容值变化量;
    将所述目标补偿电容值写入补偿电容地址。
  6. 根据权利要求1-5中任意一项所述的触摸电容数据的调整方法,其特征在于,所述根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量,包括:
    获取预设的目标值;
    计算所述触摸电容数据与所述目标值之差,得到触摸电容差值;
    根据配置的补偿步长,将所述触摸电容差值除以所述补偿步长,得到所述补偿电容值变化量。
  7. 根据权利要求1-5中任意一项所述的触摸电容数据的调整方法,其特征在于,所述判断所述触摸电容数据是否在非线性范围之前,所述方法还包括:
    获取所述触摸电容数据的饱和值;
    根据所述饱和值,计算所述触摸电容数据的非线性范围。
  8. 据权利要求1-5中任意一项所述的触摸电容数据的调整方法,其特征在于,所述判断所述触摸电容数据是否在非线性范围,包括:
    判断所述触摸电容数据是否落在区间(RawSatur–X*CnegStep,RawSatur)内;
    其中,RawSatur表示饱和值,CnegStep表示所述补偿步长,X为根据补偿电容值与所述触摸电容数据的对应关系配置的参数。
  9. 根据权利要求1-5中任意一项所述的触摸电容数据的调整方法,其特征在于,所述根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作之后,所述方法还包括:
    根据配置的自动补偿重复次数,重复执行触摸电容数据的获取以及补偿操作。
  10. 根据权利要求9所述的触摸电容数据的调整方法,其特征在于,所述根据配置的自动补偿重复次数,重复执行触摸电容数据的获取以及补偿操作,包括:
    除最后一次外,每次执行补偿操作时,根据当前补偿电容值与所述触摸电容数据的对应关系,重新配置所述非线性范围和补偿程度;
    最后一次执行补偿操作时,对当前补偿电容值进行线性补偿。
  11. 根据权利要求1-10中任意一项所述的触摸电容数据的调整方法,其特征在于,所述根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量的步骤包括:
    计算所述触摸电容数据与所述目标值的差值;
    根据算式ΔCnegValue=(RawCur-RawDest)/CnegStep计算所述补偿电容值变化量,其中,RawCur为所述触摸电容数据,RawDest为所述目标值,CnegStep为所述补偿步长,ΔCnegValue为所述补偿电容值变化量。
  12. 根据权利要求1-10中任意一项所述的触摸电容数据的调整方法,其特征在于,在所述根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量的步骤之前,所述方法还包括:
    获取第一触摸数据、所述第一历史触摸电容数据对应的第一补偿参数、第二触摸数据及所述第二历史触摸电容数据对应的第二补偿参数;
    根据算式|R2-R1|/|C2-C1|计算所述补偿步长,其中,R1为第一触摸数据,R2为第二触摸数据,C2为第一补偿参数,C2为第二补偿参数。
  13. 一种触摸电容数据的调整装置,其特征在于,所述装置包括:
    数据获取模块,配置成获取触摸电容数据;
    补偿电容值变化量计算模块,配置成根据配置的补偿步长,计算将所述触摸电容数据调整到目标值所需的补偿电容值变化量;
    非线性判断模块,配置成判断所述触摸电容数据是否在非线性范围;
    电容补偿模块,配置成根据判断结果,利用所述补偿电容值变化量执行相应的补偿操作。
  14. 一种电子设备,其特征在于,所述电子设备包括:
    处理器;
    配置成存储处理器可执行指令的存储器;
    其中,所述处理器被配置为执行权利要求1-12任意一项所述的触摸电容数据的调整方法。
  15. 一种计算机可读存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序可由处理器执行以完成权利要求1-12任意一项所述的触摸电容数据的调整方法。
PCT/CN2020/137359 2020-05-06 2020-12-17 触摸电容数据的调整方法及装置、电子设备、存储介质 WO2021223447A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020227038573A KR20220162785A (ko) 2020-05-06 2020-12-17 터치 커패시턴스 데이터의 조정 방법 및 장치, 전자 기기, 저장 매체
US17/923,575 US11966539B2 (en) 2020-05-06 2020-12-17 Method and device for adjusting touch capacitance data, electronic device, and storage medium
JP2022567672A JP7490819B2 (ja) 2020-05-06 2020-12-17 タッチ容量データの調整方法及び装置、電子機器、記憶媒体

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010375902.9A CN111522469B (zh) 2020-05-06 2020-05-06 触摸电容数据的调整方法及装置、电子设备、存储介质
CN202010375902.9 2020-05-06

Publications (1)

Publication Number Publication Date
WO2021223447A1 true WO2021223447A1 (zh) 2021-11-11

Family

ID=71908806

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137359 WO2021223447A1 (zh) 2020-05-06 2020-12-17 触摸电容数据的调整方法及装置、电子设备、存储介质

Country Status (5)

Country Link
US (1) US11966539B2 (zh)
JP (1) JP7490819B2 (zh)
KR (1) KR20220162785A (zh)
CN (1) CN111522469B (zh)
WO (1) WO2021223447A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI807481B (zh) * 2021-11-12 2023-07-01 大陸商北京集創北方科技股份有限公司 自適應電容觸控偵測方法、電容式觸控晶片、觸控顯示裝置及資訊處理裝置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522469B (zh) * 2020-05-06 2021-08-20 北京集创北方科技股份有限公司 触摸电容数据的调整方法及装置、电子设备、存储介质
CN113033402A (zh) * 2021-03-25 2021-06-25 深圳市汇顶科技股份有限公司 电容指纹识别方法、电容指纹识别装置和电子设备
CN114113801B (zh) * 2022-01-24 2022-06-21 上海艾为微电子技术有限公司 电容检测方法及电容检测装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6307436B1 (en) * 1999-06-15 2001-10-23 Nec Corporation Predistortion type linearizer with a resonant circuit and common gate FET
CN101221479A (zh) * 2007-01-09 2008-07-16 义隆电子股份有限公司 具有按键结构的电容式触摸屏的检测补偿方法
CN105630254A (zh) * 2014-10-28 2016-06-01 南京瀚宇彩欣科技有限责任公司 触控板及其触控感测单元的感应量的补偿方法
CN107624176A (zh) * 2017-07-31 2018-01-23 深圳市汇顶科技股份有限公司 触摸检测方法、装置、触摸屏及电子终端
CN107957804A (zh) * 2016-10-14 2018-04-24 奕力科技股份有限公司 三维触控装置
CN108073329A (zh) * 2018-01-31 2018-05-25 北京集创北方科技股份有限公司 触控装置及其驱动方法和终端
CN111522469A (zh) * 2020-05-06 2020-08-11 北京集创北方科技股份有限公司 触摸电容数据的调整方法及装置、电子设备、存储介质

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7567240B2 (en) * 2005-05-31 2009-07-28 3M Innovative Properties Company Detection of and compensation for stray capacitance in capacitive touch sensors
US8279180B2 (en) * 2006-05-02 2012-10-02 Apple Inc. Multipoint touch surface controller
US8094128B2 (en) * 2007-01-03 2012-01-10 Apple Inc. Channel scan logic
US8629852B2 (en) * 2009-11-12 2014-01-14 Electronics And Telecommunications Research Institute Touch screen and method for compensating sensing capacitance variations and offset variations thereof
CN102541367B (zh) * 2010-12-29 2015-11-25 比亚迪股份有限公司 一种电容式触控检测电路、检测装置
US9128570B2 (en) * 2011-02-07 2015-09-08 Cypress Semiconductor Corporation Noise filtering devices, systems and methods for capacitance sensing devices
FR2988175B1 (fr) * 2012-03-13 2014-04-11 Nanotec Solution Procede de mesure capacitive par des electrodes non-regulieres, et appareil mettant en œuvre un tel procede
CN103324366B (zh) * 2012-03-20 2016-09-28 晨星软件研发(深圳)有限公司 电容检测装置及应用该电容检测装置的电容式触控系统
JP6006591B2 (ja) 2012-09-13 2016-10-12 キヤノン株式会社 電子機器
TWI497390B (zh) * 2013-08-12 2015-08-21 Novatek Microelectronics Corp 觸控顯示裝置及其電容値感測方法
KR101532581B1 (ko) * 2013-11-27 2015-07-01 주식회사 지니틱스 터치입력위치 오류의 보정방법 및 이를 위한 장치
KR101738864B1 (ko) * 2015-06-01 2017-05-23 주식회사 하이딥 터치 압력을 감지하는 터치 입력 장치의 감도 보정 방법 및 컴퓨터 판독 가능한 기록 매체
KR101762387B1 (ko) 2015-07-24 2017-07-28 주식회사 하이딥 터치 압력 감도 보정 방법 및 컴퓨터 판독 가능한 기록 매체
KR101762278B1 (ko) 2016-02-05 2017-07-31 주식회사 하이딥 터치 압력 감도 보정 방법 및 컴퓨터 판독 가능한 기록 매체
CN106293299B (zh) * 2016-08-16 2018-01-12 北京集创北方科技股份有限公司 用于电容感应识别系统的装置和方法
KR102564601B1 (ko) * 2016-09-19 2023-08-09 엘지디스플레이 주식회사 구동 회로, 터치 디스플레이 장치 및 그 구동 방법
TWI608392B (zh) * 2017-01-18 2017-12-11 意象無限股份有限公司 觸控系統之偵測更新方法
CN107092407B (zh) * 2017-04-12 2023-10-03 北京集创北方科技股份有限公司 感应电容测量装置
CN108919997B (zh) * 2018-06-29 2021-06-29 中国联合网络通信集团有限公司 提高电容式触摸屏识别精确度的方法及装置
CN111488083B (zh) * 2019-01-25 2023-03-31 瑞昱半导体股份有限公司 具有自校准功能的电容式触摸检测装置
JP6604454B1 (ja) 2019-05-09 2019-11-13 富士通クライアントコンピューティング株式会社 情報処理装置、タッチパネル装置、及びプログラム

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6307436B1 (en) * 1999-06-15 2001-10-23 Nec Corporation Predistortion type linearizer with a resonant circuit and common gate FET
CN101221479A (zh) * 2007-01-09 2008-07-16 义隆电子股份有限公司 具有按键结构的电容式触摸屏的检测补偿方法
CN105630254A (zh) * 2014-10-28 2016-06-01 南京瀚宇彩欣科技有限责任公司 触控板及其触控感测单元的感应量的补偿方法
CN107957804A (zh) * 2016-10-14 2018-04-24 奕力科技股份有限公司 三维触控装置
CN107624176A (zh) * 2017-07-31 2018-01-23 深圳市汇顶科技股份有限公司 触摸检测方法、装置、触摸屏及电子终端
CN108073329A (zh) * 2018-01-31 2018-05-25 北京集创北方科技股份有限公司 触控装置及其驱动方法和终端
CN111522469A (zh) * 2020-05-06 2020-08-11 北京集创北方科技股份有限公司 触摸电容数据的调整方法及装置、电子设备、存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI807481B (zh) * 2021-11-12 2023-07-01 大陸商北京集創北方科技股份有限公司 自適應電容觸控偵測方法、電容式觸控晶片、觸控顯示裝置及資訊處理裝置

Also Published As

Publication number Publication date
CN111522469B (zh) 2021-08-20
CN111522469A (zh) 2020-08-11
KR20220162785A (ko) 2022-12-08
JP7490819B2 (ja) 2024-05-27
US11966539B2 (en) 2024-04-23
US20230185405A1 (en) 2023-06-15
JP2023525728A (ja) 2023-06-19

Similar Documents

Publication Publication Date Title
WO2021223447A1 (zh) 触摸电容数据的调整方法及装置、电子设备、存储介质
CN110515871B (zh) 一种中断方法、装置及fpga和存储介质
US9692384B2 (en) System and method for audio volume control
US20140195794A1 (en) Electronic device with baseboard management controller updating system
RU2017104121A (ru) Система и способ для создания выборочных моментальных снимков базы данных
US20190042980A1 (en) Method and device for generating a machine learning system and virtual sensor device
US10228792B2 (en) Touch determining device and method, and display device
JP2017049627A (ja) 検証システム、検証装置、及び、車両制御装置
CN113238995A (zh) 标定数据更新方法、存储介质及电子设备
US8823650B2 (en) Computing device and method for adjusting display parameters of monitor
CN108387688B (zh) 传感器校正与气体检测方法、装置及设备、可读存储介质
CN110837465A (zh) 一种基于Android的句柄泄露检测方法及其系统
CN108550365B (zh) 离线语音识别的阈值自适应调整方法
US20160188080A1 (en) Mobile terminal and method for input control
CN105260044A (zh) 电子设备及触控操作识别方法
CN113010416A (zh) 银行柜面交易自动化测试方法及装置
US11074850B2 (en) Display panel, method for generating a gray-scale voltage method thereof, and a computer-readable storage medium
CN113220647A (zh) 震动功能检测方法及装置
CN113868052A (zh) 基于pid算法的iops测试方法、装置和存储介质
CN110716666B (zh) 自适应触摸屏的处理方法、装置、主控设备及触摸屏设备
CN111625140B (zh) 触摸测试方法和触摸装置
CN117348779B (zh) 功能按键映射方法、装置、设备及计算机可读存储介质
CN110968502B (zh) 基于mfac算法进行遍历测试的系统及方法
CN113312167B (zh) 业务控制方法和装置、电子设备、计算机可读介质
CN112783368A (zh) 一种优化触控屏报点稳定性的方法、存储介质及终端设备

Legal Events

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

Ref document number: 20934593

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20227038573

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2022567672

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20934593

Country of ref document: EP

Kind code of ref document: A1