CN111857427A - Reference value determining method, device, equipment and storage medium - Google Patents

Reference value determining method, device, equipment and storage medium Download PDF

Info

Publication number
CN111857427A
CN111857427A CN202010698955.4A CN202010698955A CN111857427A CN 111857427 A CN111857427 A CN 111857427A CN 202010698955 A CN202010698955 A CN 202010698955A CN 111857427 A CN111857427 A CN 111857427A
Authority
CN
China
Prior art keywords
value
reference value
determining
key
set threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010698955.4A
Other languages
Chinese (zh)
Inventor
梁浩蓝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shikun Electronic Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shikun Electronic Technology Co Ltd
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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shikun Electronic Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202010698955.4A priority Critical patent/CN111857427A/en
Publication of CN111857427A publication Critical patent/CN111857427A/en
Pending legal-status Critical Current

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for determining a reference value. The method comprises the following steps: acquiring a key value of a current key channel within preset time; determining an average key value of the current key channel based on the obtained key value; and determining a reference value of the current key channel based on a comparison result of the average key value and a set threshold value. By using the method, the reference value of the key channel can be effectively determined.

Description

Reference value determining method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for determining a reference value.
Background
With the development of science and technology, terminal equipment is widely used. The terminal equipment can not be separated from the keys used as the input device in the using process. The user can control whether the key is pressed or not by operating the key. When determining whether the key is pressed, the sizes of the key value and the reference value of the key channel can be judged. The determination of the reference value is crucial.
At present, when determining a reference value, it is common to obtain a key value of a key channel after power is turned on, and then use an average key value of a certain key channel in a period of time as the reference value of the key channel.
However, if the key of a certain key channel is pressed at the power-on time, the reference value of the key channel will be calculated as an error, so how to effectively avoid the error caused by the key of the key channel being pressed when the reference value is determined is a technical problem to be solved at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for determining a reference value, which effectively determine the reference value of a key channel.
In a first aspect, an embodiment of the present invention provides a method for determining a reference value, including:
acquiring a key value of a current key channel within preset time;
determining an average key value of the current key channel based on the obtained key value;
and determining a reference value of the current key channel based on a comparison result of the average key value and a set threshold value.
Further, the determining the reference value of the current key channel based on the comparison result of the average key value and the set threshold value includes:
determining a comparison result of the average key value and a set threshold value;
determining the average key value as a reference value of the current key channel under the condition that the comparison result is that the average key value is smaller than or equal to the set threshold value;
And determining a preset reference value as the reference value of the current key channel and determining that the key of the current key channel is pressed under the condition that the average key value is larger than the set threshold value as the comparison result.
Further, the method further comprises:
and determining a set threshold value and a preset reference value.
Further, the determining to set the preset reference value includes:
acquiring a reference value interval of the current key channel debugging stage;
and determining to set a preset reference value based on the reference value interval.
Further, the determining to set a preset reference value based on the reference interval includes:
and determining the average value of the maximum value and the minimum value of the reference interval as a preset reference value.
Further, determining the set threshold includes:
acquiring a maximum reference value of the current key channel debugging stage;
and determining a set threshold value based on the maximum reference value.
Further, the determining a set threshold based on the maximum reference value includes:
determining the maximum reference value as a set threshold value; alternatively, the first and second electrodes may be,
determining the sum of the maximum reference value and a preset deviation as a set threshold value;
the preset deviation is half of the maximum difference value, and the maximum difference value is determined based on the average key value and the debugging base value of the current key channel in the debugging stage.
In a second aspect, an embodiment of the present invention further provides a reference value determining apparatus, including:
the acquisition module is arranged for acquiring a key value of a current key channel within preset time;
a first determining module configured to determine an average key value of the current key channel based on the obtained key value;
and the second determination module is used for determining the reference value of the current key channel based on the comparison result of the average key value and a set threshold value.
In a third aspect, the present invention provides a reference value determination apparatus, comprising:
one or more processing devices;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processing devices, the one or more processing devices are caused to implement the reference value determination method provided by the embodiment of the present invention.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processing apparatus, implements a baseline determination method as provided by embodiments of the present invention.
The embodiment of the invention provides a method, a device, equipment and a storage medium for determining a reference value, which comprises the steps of firstly obtaining a key value of a current key channel within preset time; then, based on the obtained key value, determining an average key value of the current key channel; and finally, determining the reference value of the current key channel based on the comparison result of the average key value and a set threshold value. By utilizing the technical scheme, the reference value of the key channel can be effectively determined.
Drawings
Fig. 1 is a schematic flowchart of a method for determining a reference value according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a reference value determining method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a reference value determining apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a reference value determining apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
The term "include" and variations thereof as used herein are intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment".
Example one
Fig. 1 is a flowchart of a method for determining a reference value according to an embodiment of the present invention, where the method is applicable to a case of determining a reference value of a key channel, and the method may be executed by a reference value determining apparatus, where the apparatus may be implemented by software and/or hardware and is generally integrated on a device, and in this embodiment, the device includes but is not limited to: a touch screen or a device for detecting the state of a key on a touch screen.
As shown in fig. 1, a method for determining a reference value according to a first embodiment of the present invention includes the following steps:
s110, obtaining a key value of the current key channel within preset time.
In the present embodiment, the preset time may be considered as a predetermined period of time. The invention can detect the key value of the current key channel within the preset time so as to determine the reference value. The specific value of the preset time is not limited and can be determined according to the actual situation. The present invention can determine the reference value of each key channel individually. The keyboard may be a touch screen and one key may correspond to one key channel. A key value may be considered a status value of a keystroke channel. Whether a key of the corresponding key channel is pressed may be determined based on the size of the key value. The current key channel may be considered the key channel for which the reference value is currently determined.
When determining the reference value, the key value of the current key channel within the preset time may be determined first, and then the reference value of the current key channel may be determined based on the obtained key value.
And S120, determining the average key value of the current key channel based on the obtained key value.
The average key value may be considered as an average value of key values of current key channels within a preset time. After the key values of the current key channel within the preset time are obtained, the step may determine an average value of the obtained key values, and determine the average value as the average key value of the current key channel.
And S130, determining a reference value of the current key channel based on a comparison result of the average key value and a set threshold value.
The set threshold may be considered a predetermined threshold. By setting a threshold value to compare with the average key value, the comparison result can be determined. Whether a key of the current key channel is pressed may be determined based on the different comparison results. The comparison result of the average key value and the set threshold value may include that the average key value is smaller than the set threshold value, the average key value is equal to the set threshold value, and the average key value is greater than the set threshold value. In one example, if the average key value is less than a set threshold, the key of the current key channel may be considered not pressed; otherwise, the key of the current key channel can be considered to be pressed.
After determining the comparison result, this step may determine the reference value based on the comparison result. The different comparison results can represent whether the key of the current key channel is pressed, so that the reference value of the current key channel can be further determined. If the comparison result is that the average key value is smaller than or equal to the set threshold value, directly determining the average key value as the reference value of the current key channel; and in the case that the average key value of the comparison result Wie is greater than the set threshold, determining the preset reference value as the reference value of the current key channel. The preset reference value may be a preset reference value. The preset reference value may be an empirical value or may be determined based on a reference value interval. The reference value interval may be considered as an interval of the reference value determined in the device debugging stage.
The method for determining the reference value provided by the embodiment of the invention comprises the steps of firstly obtaining a key value of a current key channel within preset time; then, based on the obtained key value, determining an average key value of the current key channel; and finally, determining the reference value of the current key channel based on the comparison result of the average key value and a set threshold value. By the method, the reference value of the key channel can be effectively determined.
Example two
Fig. 2 is a schematic flow chart of a reference value determining method according to a second embodiment of the present invention, which is embodied on the basis of the above embodiments. In this embodiment, determining the reference value of the current key channel based on the comparison result between the average key value and the set threshold specifically includes:
determining a comparison result of the average key value and a set threshold value;
determining the average key value as a reference value of the current key channel under the condition that the comparison result is that the average key value is smaller than or equal to the set threshold value;
and determining a preset reference value as the reference value of the current key channel and determining that the key of the current key channel is pressed under the condition that the average key value is larger than the set threshold value as the comparison result.
Please refer to the first embodiment for a detailed description of the present embodiment.
As shown in fig. 2, a method for determining a reference value according to a second embodiment of the present invention includes the following steps:
s210, obtaining a key value of the current key channel within preset time.
S220, determining the average key value of the current key channel based on the obtained key value.
And S230, determining a comparison result of the average key value and a set threshold value.
In determining the reference value, the embodiment may first determine the comparison result based on the average key value and the set threshold value. And if the average key value is compared with the set threshold value, obtaining a comparison result.
And S240, determining the average key value as a reference value of the current key channel and finishing the operation under the condition that the comparison result is that the average key value is smaller than or equal to the set threshold value.
If the average key value is less than or equal to the set threshold value, the key of the current key channel can be considered not to be pressed, and the average key value can be directly determined as the reference value of the current key channel.
And S250, determining a preset reference value as the reference value of the current key channel and determining that the key of the current key channel is pressed under the condition that the comparison result is that the average key value is larger than the set threshold value.
When the average key value is greater than the set threshold value, it may be considered that the key of the current key channel has been pressed, and the average key value may not be used as the reference value. The preset reference value may be a reference value determined when the key is not pressed. The preset reference value may be determined during the commissioning phase, and the determination means is not limited herein. If the reference value interval is determined manually by the commissioning staff, the embodiment directly obtains the determined reference value interval, and then determines the preset reference value based on the reference value interval.
And under the condition that the average key value is larger than the set threshold value according to the comparison result, the key of the current key channel can be determined to be pressed, so that the reference value can be determined more effectively, and personnel operating the equipment can be assisted to know the key state of the equipment.
The method for determining the reference value provided by the second embodiment of the invention embodies the operation of determining the reference value. By the method, errors caused by key detection based on the reference value in the later period due to key pressing after the equipment is powered on can be effectively avoided, and accuracy of determining the reference value is improved.
On the basis of the above-described embodiment, a modified embodiment of the above-described embodiment is proposed, and it is to be noted herein that, in order to make the description brief, only the differences from the above-described embodiment are described in the modified embodiment.
In one embodiment, the method further comprises:
and determining a set threshold value and a preset reference value.
The invention may also first determine a set threshold value and a preset reference value before determining the reference value. The set threshold and the preset reference value may be empirical values or determined based on a reference value interval of the debugging stage for determining the reference value.
In one embodiment, determining the preset reference value comprises:
acquiring a reference value interval of the current key channel debugging stage;
and determining a preset reference value based on the reference value interval.
The determining means of the reference value interval is not limited herein, and the embodiment may directly obtain the reference value interval, for example, directly obtain the maximum value of the reference value and the minimum value of the reference value determined by the debugger in the debugging stage, so as to determine the reference value interval.
After determining the reference value interval, the present embodiment may determine a preset reference value based on the reference values included in the reference value interval, for example, any one of the reference values in the reference value interval may be determined as the preset reference value; the reference value with the largest occurrence frequency in the reference value interval can also be determined as a preset reference value; it is also possible to determine the average of the maximum value and the minimum value of the reference value interval as the preset reference value.
In one embodiment, the determining a preset reference value based on the reference interval includes:
and determining the average value of the maximum value and the minimum value of the reference interval as a preset reference value.
In one embodiment, determining the set threshold comprises:
acquiring a maximum reference value of the current key channel debugging stage;
And determining a set threshold value based on the maximum reference value.
The maximum reference value may be considered as the maximum value of the reference value of the device during the commissioning phase, e.g. the maximum value of the reference value interval. After determining the maximum reference value, the present embodiment may determine the setting threshold value based on the maximum reference value. If the maximum reference value is directly determined as the set threshold value; or determining the set threshold value based on the maximum reference value and a preset deviation. The set deviation may be considered to be the maximum deviation of the allowable reference value. The specific value of the maximum deviation is not limited and can be determined by the debugging personnel during the debugging stage.
In one embodiment, the determining a set threshold based on the maximum reference value includes:
determining the maximum reference value as a set threshold value; alternatively, the first and second electrodes may be,
determining the sum of the maximum reference value and a preset deviation as a set threshold value;
the preset deviation is half of the maximum difference value, and the maximum difference value is determined based on the average key value and the debugging base value of the current key channel in the debugging stage.
The debug base value may be considered a reference value for the debug phase. In this embodiment, the average key value and the corresponding debug base value at each time may be determined in the debug stage, and the maximum value of the difference between the average key value and the corresponding debug base value in the debug stage is selected as the maximum difference. The initial debug base value may be an average value of key values within a set time. The next debug baseline may be determined based on the bucket algorithm.
The present invention is described in an exemplary manner below, and the method for determining the reference value provided by the present invention can be considered as an initialization scheme for capacitive touch detection.
In the current touch processing of a touch chip factory, key values of all key channels are obtained after power is on, and an average key value of each key channel is used as a baseline (i.e., a reference value). And identifying a key value once in a certain period, and comparing the difference value (raw data-baseline) between the average value (namely the average key value) of the key value and the baseline (namely the debugging base value baseline) in a period of time. When the difference value of a certain channel is positive and is larger than a preset threshold value, the channel is identified to be pressed. At intervals, the software dynamically refreshes the baseline. The means of refreshing may be based on, but not limited to, a bucket algorithm. The preset threshold value can be set according to the actual situation without limitation.
The above-mentioned means for determining the reference value has the following technical problems: if a certain key is pressed at the power-on moment, the reference value of the channel during initialization is determined according to the key value rawdata during triggering, and in this case, the channel cannot be recognized to be pressed until the next time the user loosens his hands and refreshes the reference value.
In order to solve the technical problem, after the equipment is powered on, the average key value of a certain channel within a period of time (namely within a preset time) is obtained, if the average key value is larger than a set baseline threshold value (namely a set threshold value), a reference value is set as a preset reference value, and the channel is identified to be pressed down; otherwise, the average key value is determined as the reference value.
For example, when a software engineer debugs a touch key, a reference value interval touched by a device, such as a touch screen, is determined. And determining the maximum value of the reference value interval plus the maximum deviation, namely half of the maximum difference value, as a preset threshold value. Wherein the maximum difference is the maximum difference in the debugging phase. The difference is the difference between the average key value and the debug base value in the debug phase. The initial debug base value may be an average key value and the next debug base value may be determined based on a bucket algorithm.
After certain time, namely average key value rawdata of preset time, is obtained after power-on, the rawdata is judged, and if the average key value rawdata is smaller than a set threshold value, the average key value is determined as a reference value; otherwise, setting the current reference value as a preset reference value, and identifying that the key is pressed. It should be noted that, the case that the average key value is equal to the set threshold is not limited, and when the average key value is equal to the set threshold, the average key value may be determined as a reference value, and a preset reference value may be determined as a reference value.
According to the technical scheme, judgment is carried out before the reference value is assigned for the first time when the key is initialized. Therefore, the problem that the capacitive touch key cannot be identified when being pressed on in the current market can be solved, and the user experience is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a reference value determining apparatus according to a third embodiment of the present invention, which is applicable to a case of determining a reference value of a key channel, where the apparatus may be implemented by software and/or hardware and is generally integrated on a device.
As shown in fig. 3, the apparatus includes:
the obtaining module 31 is configured to obtain a key value of a current key channel within a preset time;
a first determining module 32, configured to determine an average key value of the current key channel based on the obtained key value;
and a second determining module 33 configured to determine the reference value of the current key channel based on a comparison result between the average key value and a set threshold.
In this embodiment, the device first passes; secondly, obtaining a key value of the current key channel within a preset time through an obtaining module 31; then, determining the average key value of the current key channel based on the obtained key value through a first determining module 32; finally, a second determining module 33 determines the reference value of the current key channel based on the comparison result between the average key value and the set threshold.
The embodiment provides a reference value determining device which can effectively determine the reference value of a key channel.
Further, the second determining module 33 is specifically configured to:
determining a comparison result of the average key value and a set threshold value;
determining the average key value as a reference value of the current key channel under the condition that the comparison result is that the average key value is smaller than or equal to the set threshold value;
and determining a preset reference value as the reference value of the current key channel and determining that the key of the current key channel is pressed under the condition that the average key value is larger than the set threshold value as the comparison result.
Further, the apparatus further comprises: a third determination module to:
and determining a set threshold value and a preset reference value.
Further, the third determining module determines the preset reference value to include:
acquiring a reference value interval of the current key channel debugging stage;
and determining a preset reference value based on the reference value interval.
Further, the third determining module determines a preset reference value based on the reference interval, including:
and determining the average value of the maximum value and the minimum value of the reference interval as a preset reference value.
Further, the third determination module determines that the set threshold includes:
acquiring a maximum reference value of the current key channel debugging stage;
and determining a set threshold value based on the maximum reference value.
Further, a third determination module determines a set threshold based on the maximum baseline value, comprising:
determining the maximum reference value as a set threshold value; alternatively, the first and second electrodes may be,
determining the sum of the maximum reference value and a preset deviation as a set threshold value;
the preset deviation is half of the maximum difference value, and the maximum difference value is determined based on the average key value and the debugging base value of the current key channel in the debugging stage.
The reference value determining device can execute the reference value determining method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the executing method.
Example four
Fig. 4 is a schematic structural diagram of a reference value determining apparatus according to a fourth embodiment of the present invention. As shown in fig. 4, a reference value determining device according to a fourth embodiment of the present invention includes: one or more processing devices 41 and storage devices 42; the number of the processing means 41 in the reference value determination device may be one or more, and fig. 4 illustrates one processing means 41 as an example; storage 42 is used to store one or more programs; the one or more programs are executed by the one or more processing devices 41, so that the one or more processing devices 41 implement the reference value determination method according to any one of the embodiments of the present invention.
The processing means 41 and the storage means 42 in the reference value determination device may be connected by a bus or other means, as exemplified by a bus connection in fig. 4.
The storage device 42 in the reference value determining apparatus is used as a computer-readable storage medium for storing one or more programs, which may be software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the reference value determining method according to one or two embodiments of the present invention (for example, the modules in the reference value determining device shown in fig. 3 include the obtaining module 31, the first determining module 32, and the second determining module 33). The processing means 41 executes various functional applications and data processing of the reference value determination device by executing software programs, instructions and modules stored in the storage means 42, that is, implements the reference value determination method in the above-described method embodiments.
The storage device 42 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the reference value determination device, and the like. Further, the storage 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage means 42 may further comprise a memory remotely located with respect to the processing means 41, which may be connected to the reference value determination device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
When one or more programs included in the above-described reference value determination device are executed by the one or more processing means 41, the programs perform the following operations:
acquiring a key value of a current key channel within preset time;
determining an average key value of the current key channel based on the obtained key value;
and determining a reference value of the current key channel based on a comparison result of the average key value and a set threshold value.
EXAMPLE five
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is used, when executed by a processing apparatus, to execute a reference value determining method, where the method includes:
acquiring a key value of a current key channel within preset time;
determining an average key value of the current key channel based on the obtained key value;
and determining a reference value of the current key channel based on a comparison result of the average key value and a set threshold value.
Optionally, the program may be further configured to perform a reference value determination method provided in any embodiment of the present invention when executed by a processing device.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. A computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for determining a reference value, comprising:
acquiring a key value of a current key channel within preset time;
determining an average key value of the current key channel based on the obtained key value;
and determining a reference value of the current key channel based on a comparison result of the average key value and a set threshold value.
2. The method of claim 1, wherein determining the reference value for the current keystroke channel based on the comparison of the average key value with a set threshold comprises:
Determining a comparison result of the average key value and a set threshold value;
determining the average key value as a reference value of the current key channel under the condition that the comparison result is that the average key value is smaller than or equal to the set threshold value;
and determining a preset reference value as the reference value of the current key channel and determining that the key of the current key channel is pressed under the condition that the average key value is larger than the set threshold value as the comparison result.
3. The method of claim 1, further comprising:
and determining a set threshold value and a preset reference value.
4. The method of claim 3, wherein determining a preset reference value comprises:
acquiring a reference value interval of the current key channel debugging stage;
and determining a preset reference value based on the reference value interval.
5. The method according to claim 4, wherein the determining a preset reference value based on the reference interval comprises:
and determining the average value of the maximum value and the minimum value of the reference interval as a preset reference value.
6. The method of claim 3, wherein determining a set threshold comprises:
Acquiring a maximum reference value of the current key channel debugging stage;
and determining a set threshold value based on the maximum reference value.
7. The method of claim 6, wherein the determining a set threshold based on the maximum reference value comprises:
determining the maximum reference value as a set threshold value; alternatively, the first and second electrodes may be,
determining the sum of the maximum reference value and a preset deviation as a set threshold value;
the preset deviation is half of the maximum difference value, and the maximum difference value is determined based on the average key value and the debugging base value of the current key channel in the debugging stage.
8. A reference value determination device, characterized by comprising:
the acquisition module is arranged for acquiring a key value of a current key channel within preset time;
a first determining module configured to determine an average key value of the current key channel based on the obtained key value;
and the second determination module is used for determining the reference value of the current key channel based on the comparison result of the average key value and a set threshold value.
9. A reference value determination device characterized by comprising:
one or more processing devices;
storage means for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processing means, carries out the method according to any one of claims 1-7.
CN202010698955.4A 2020-07-20 2020-07-20 Reference value determining method, device, equipment and storage medium Pending CN111857427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010698955.4A CN111857427A (en) 2020-07-20 2020-07-20 Reference value determining method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010698955.4A CN111857427A (en) 2020-07-20 2020-07-20 Reference value determining method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111857427A true CN111857427A (en) 2020-10-30

Family

ID=73002402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010698955.4A Pending CN111857427A (en) 2020-07-20 2020-07-20 Reference value determining method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111857427A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853102A (en) * 2010-06-01 2010-10-06 深圳市汇顶科技有限公司 Automatic generating method and system of configuration parameters of touch control equipment
CN101976135A (en) * 2010-07-27 2011-02-16 苏州瀚瑞微电子有限公司 Calibrating method of touch screen
CN103488364A (en) * 2013-09-29 2014-01-01 Tcl集团股份有限公司 Capacitive touch screen and self-adaptation correction method and system of capacitive touch screen
CN107357473A (en) * 2017-05-18 2017-11-17 华显光电技术(惠州)有限公司 Capacitance plate touch-control adjustment method
CN110048703A (en) * 2019-04-18 2019-07-23 珠海格力电器股份有限公司 A kind of method, apparatus and terminal device improving touch key-press sensitivity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853102A (en) * 2010-06-01 2010-10-06 深圳市汇顶科技有限公司 Automatic generating method and system of configuration parameters of touch control equipment
CN101976135A (en) * 2010-07-27 2011-02-16 苏州瀚瑞微电子有限公司 Calibrating method of touch screen
CN103488364A (en) * 2013-09-29 2014-01-01 Tcl集团股份有限公司 Capacitive touch screen and self-adaptation correction method and system of capacitive touch screen
CN107357473A (en) * 2017-05-18 2017-11-17 华显光电技术(惠州)有限公司 Capacitance plate touch-control adjustment method
CN110048703A (en) * 2019-04-18 2019-07-23 珠海格力电器股份有限公司 A kind of method, apparatus and terminal device improving touch key-press sensitivity

Similar Documents

Publication Publication Date Title
CN109558282B (en) PCIE link detection method, system, electronic equipment and storage medium
CN110673936B (en) Breakpoint continuous operation method and device for arrangement service, storage medium and electronic equipment
WO2015017217A1 (en) Controlling a current access mode of a computing device based on a state of an attachment mechanism
CN108959064B (en) Popup window processing method and device for automatic test
US9378054B2 (en) Testing system with methodology for background application control
CN114024884B (en) Test method, test device, electronic equipment and storage medium
CN112380046B (en) Calculation result verification method, system, device, equipment and storage medium
CN111177732B (en) System debugging mode control method and system and electronic equipment
CN104915228A (en) Application program language setting method and device
WO2016184191A1 (en) Reset calibration determining method, apparatus and terminal
CN113821433A (en) Method, device, equipment, medium and product for testing cloud mobile phone application program
CN111857427A (en) Reference value determining method, device, equipment and storage medium
CN112583617B (en) Fault determination method, server, control terminal and storage medium
CN109005469B (en) Message format conversion method and device, storage medium and android terminal
CN109491825B (en) Method, device, storage medium and terminal for positioning abnormal starting problem
CN107168776B (en) Event statistical method, device, equipment and storage medium
CN113612659B (en) Device networking test method and device, electronic device and storage medium
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN105260044A (en) Electronic equipment and touch operation recognition method
CN113676434B (en) Network resource fusing method and device, electronic equipment and storage medium
KR101415270B1 (en) Network system monitoring application installed on computing device
CN112596966A (en) Chip verification method, device, equipment and storage medium
CN113534691A (en) Control system and method of terminal equipment
CN110825572A (en) Method, device and system for detecting I2C equipment address and electronic equipment
CN115237816B (en) System function verification method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201030