CN110196387B - Damp-proof key identification method and device, electronic equipment and readable storage medium - Google Patents

Damp-proof key identification method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN110196387B
CN110196387B CN201910482832.4A CN201910482832A CN110196387B CN 110196387 B CN110196387 B CN 110196387B CN 201910482832 A CN201910482832 A CN 201910482832A CN 110196387 B CN110196387 B CN 110196387B
Authority
CN
China
Prior art keywords
key
electrical characteristic
characteristic value
threshold value
value
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.)
Active
Application number
CN201910482832.4A
Other languages
Chinese (zh)
Other versions
CN110196387A (en
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.)
Suzhou Blue Stone Tech Co ltd
Original Assignee
Suzhou Blue Stone Tech 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 Suzhou Blue Stone Tech Co ltd filed Critical Suzhou Blue Stone Tech Co ltd
Priority to CN201910482832.4A priority Critical patent/CN110196387B/en
Publication of CN110196387A publication Critical patent/CN110196387A/en
Application granted granted Critical
Publication of CN110196387B publication Critical patent/CN110196387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/282Testing of electronic circuits specially adapted for particular applications not provided for elsewhere

Abstract

The embodiment of the application provides a moisture-proof key identification method and device, electronic equipment and a readable storage medium, and relates to the field of circuit detection. The damp-proof key identification device is connected with the keys, and the damp-proof key identification method comprises the following steps: acquiring a first electrical characteristic value of a key at a first time; judging whether the first electrical characteristic value is less than or equal to a first threshold value; when the first electrical characteristic value is smaller than or equal to the first threshold value, acquiring a second electrical characteristic value of the key at a second time; acquiring the data variation of the key according to the first electrical characteristic value and the second electrical characteristic value; judging whether the data variation is larger than or equal to a second threshold value; the second threshold value is a change threshold value of the electrical characteristic value of the key; and when the data variation is larger than or equal to a second threshold value, triggering the key. The change threshold value is set by acquiring the electrical characteristic variation of the key at different time, so that whether the key is triggered or not can be judged effectively in a wet state.

Description

Damp-proof key identification method and device, electronic equipment and readable storage medium
Technical Field
The application relates to the field of circuit detection, in particular to a moisture-proof key identification method and device, electronic equipment and a readable storage medium.
Background
In the prior art, level trigger detection is used, specifically, a key is pressed to be at a high level, an initial state is at a low level, and when the key states are different, a circuit outputs the difference of the high level and the low level to judge the key state. However, when the button is wet, the button is pressed at a high level, and the initial state is also at a high level, and the state of the button cannot be detected by the difference of the high and low levels when the button is wet. Therefore, a method for accurately recognizing the key state in a wet state is required to solve the above problems.
Disclosure of Invention
The application aims to provide a moisture-proof key identification method, a moisture-proof key identification device, electronic equipment and a readable storage medium, which can solve the problem that the key state cannot be accurately identified when the key is in a wet state.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides a method for identifying a moisture-proof key, where a moisture-proof key identification device is connected to a key, and the method includes: acquiring a first electrical characteristic value of a key at a first time; judging whether the first electrical characteristic value is less than or equal to a first threshold value; the first threshold value is the maximum allowable value of the electrical characteristic value of the key; when the first electrical characteristic value is smaller than or equal to the first threshold value, acquiring a second electrical characteristic value of the key at a second time; acquiring the data variation of the key according to the first electrical characteristic value and the second electrical characteristic value; the data variable quantity represents whether the key is triggered or not; judging whether the data variation is larger than or equal to a second threshold value; the second threshold value is a change threshold value of the electrical characteristic value of the key; and when the data variation is larger than or equal to a second threshold value, triggering the key.
Optionally, before the step of acquiring the data variation of the key, the method further includes: judging whether the second electrical characteristic value is less than or equal to a first threshold value; when the second electrical characteristic value is smaller than or equal to the first threshold value, executing a step of acquiring the data variation of the key; and exiting the key identification when the second electrical characteristic value is larger than the first threshold value.
Optionally, the method further comprises: and exiting the key identification when the first electrical characteristic value is larger than the first threshold value.
Optionally, before the step of obtaining the first electrical characteristic value of the key at the first time, the method further comprises: and setting the electrical characteristic value of the key as a third electrical characteristic value, wherein the third electrical characteristic value is the electrical characteristic value when the key is in the non-working state.
In a second aspect, an embodiment of the present application further provides a moisture-proof key identification device, including: the device comprises an acquisition module, a judgment module and a processing module. The acquisition module is used for acquiring a first electrical characteristic value of the key at a first time; and a judging module. For determining whether the first electrical characteristic value is less than or equal to a first threshold value; the first threshold is a maximum allowable value of the electrical characteristic value of the key. The obtaining module is further used for obtaining a second electrical characteristic value of the key at a second time when the first electrical characteristic value is smaller than or equal to the first threshold value; the obtaining module is further used for obtaining the data variation of the key according to the first electrical characteristic value and the second electrical characteristic value; the data variation represents whether the key is triggered or not. The judging module is also used for judging whether the data variation is larger than or equal to a second threshold value; the second threshold value is a change threshold value of the electrical characteristic value of the key; and the processing module is used for determining that the key is triggered when the data variation is larger than or equal to a second threshold value.
Optionally, the determining module is further configured to determine whether the second electrical characteristic value is less than or equal to a first threshold; the processing module is further used for exiting key identification when the second electrical characteristic value is larger than the first threshold value.
Optionally, the processing module is further configured to exit the key identification when the first electrical characteristic value is greater than the first threshold value.
Optionally, the processing module is further configured to set the electrical characteristic value of the key to a third electrical characteristic value, where the third electrical characteristic value is an electrical characteristic value when the key is in an inactive state.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor and memory for storing one or more programs. The moisture-resistant key identification method described above is implemented when one or more programs are executed by the processor.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the above-mentioned moisture-proof key identification method.
The embodiment of the application provides a moisture-proof key identification method and device, electronic equipment and a readable storage medium, and relates to the field of circuit detection. The damp-proof key identification device is connected with the keys, and the damp-proof key identification method comprises the following steps: acquiring a first electrical characteristic value of a key at a first time; judging whether the first electrical characteristic value is less than or equal to a first threshold value; when the first electrical characteristic value is smaller than or equal to the first threshold value, acquiring a second electrical characteristic value of the key at a second time; acquiring the data variation of the key according to the first electrical characteristic value and the second electrical characteristic value; judging whether the data variation is larger than or equal to a second threshold value; the second threshold value is a change threshold value of the electrical characteristic value of the key; and when the data variation is larger than or equal to a second threshold value, triggering the key. The change threshold value is set by acquiring the electrical characteristic variation of the key at different time, so that whether the key is triggered or not can be judged effectively in a wet state.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of a moisture-proof key identification device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a method for identifying moisture-proof keys according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating another method for identifying moisture-proof keys according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart illustrating another method for identifying moisture-proof keys according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a key identification circuit according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
In the figure: 200-moisture proof key identification means; 201-an acquisition module; 202-a judging module; 203-processing module, 300-electronic device, 301-memory, 302-processor, 303-communication interface, 304-keys.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
In the description of the present application, it is also to be noted that, unless otherwise explicitly specified or limited, the terms "disposed" and "connected" are to be interpreted broadly, e.g., as being either fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
In the prior art, when the key is in a wet state, the level detection is high level, and the key state cannot be effectively identified. Referring to fig. 1, fig. 1 is a schematic view of a moisture-proof key recognition device according to an embodiment of the present disclosure, in which the moisture-proof key recognition device 200 is connected to a key, the key is driven by a high voltage or high current, and when the key is driven, the electrical characteristics of the key are changed. This dampproofing button recognition device includes: an acquisition module 201, a judgment module 202 and a processing module 203.
The obtaining module 201 is configured to obtain a first electrical characteristic value of the key at a first time. The first electrical characteristic value may be an electrical physical value such as a voltage, a current, a capacitance, an inductance, and a charge.
The judging module 202 is used for judging whether the first electrical characteristic value is smaller than or equal to a first threshold value; the first threshold is a maximum allowable value of the electrical characteristic value of the key.
The obtaining module 201 is further configured to obtain a second electrical characteristic value of the key at a second time when the first electrical characteristic value is smaller than or equal to the first threshold; the obtaining module 201 is further configured to obtain a data variation of the key according to the first electrical characteristic value and the second electrical characteristic value; the data variation represents whether the key is triggered or not.
The determining module 202 is further configured to determine whether the data variation is greater than or equal to a second threshold; the second threshold value is a change threshold value of the electrical characteristic value of the key.
And the processing module 203 is used for determining that the key is triggered when the data variation is greater than or equal to a second threshold value.
The electrical characteristic variation of the key at different time is obtained, a variation threshold value is set, whether the key is triggered or not is judged, and compared with the prior art that the key state is identified by using different levels, whether the key is triggered or not can be accurately identified when the key is in a wet state.
Optionally, when the circuit connection or the component is abnormal, in order to prevent the moisture-proof key identification device 200 from being damaged, the determining module 202 is further configured to determine whether the second electrical characteristic value is less than or equal to the first threshold value; the processing module 203 is further configured to exit the key identification when the second electrical characteristic value is greater than the first threshold value. The processing module 203 is further configured to exit the key identification when the first electrical characteristic value is greater than the first threshold value.
Optionally, in order to make the acquired first electrical characteristic value more accurate and reduce the noise interference, the processing module 203 is further configured to set the electrical characteristic value of the key to a third electrical characteristic value, where the third electrical characteristic value is an electrical characteristic value when the key is in an inactive state.
In order to more clearly describe how to implement identification of a moisture-proof key, on the basis of fig. 1, an embodiment of the present application further provides a method for identifying a moisture-proof key, for example, fig. 2, and fig. 2 is a schematic flowchart of the method for identifying a moisture-proof key provided in the embodiment of the present application. The moisture-proof key identification method comprises the following steps:
step 101, obtaining a first electrical characteristic value of a key at a first time.
Step 102, whether the first electrical characteristic value is smaller than or equal to a first threshold value is judged.
The first threshold is a maximum allowable value of the electrical characteristic value of the key.
When the first electrical characteristic value is less than or equal to the first threshold value, step 103 is executed.
And 103, acquiring a second electrical characteristic value of the key at a second time.
Taking the electrical characteristic value as the current as an example, the maximum allowable value of the electrical characteristic value of the key is 20 milliamperes, and when the acquired first electrical characteristic value is 100 milliamperes, the step 103 is not continued to prevent the moisture-proof key identification device from being damaged.
And 105, acquiring the data variation of the key according to the first electrical characteristic value and the second electrical characteristic value.
The data variation represents whether the key is triggered. The data variation may be a difference between the first electrical characteristic value and the second electrical characteristic value, and the data variation is a voltage difference between the first electrical characteristic value and the second electrical characteristic value, taking the first electrical characteristic value and the second electrical characteristic value as an example.
And step 106, judging whether the data variation is larger than or equal to a second threshold value.
The second threshold value is a change threshold value of the electrical characteristic value of the key.
And when the data variation is smaller than the second threshold, returning to execute step 103, and acquiring the second electrical characteristic value of the key again, and recording and storing the acquired electrical characteristic value.
When the data variation is greater than or equal to the second threshold, step 107 is executed.
Step 107, the key is identified as a trigger state.
Meanwhile, in order to judge the state of the key more accurately, the first electrical characteristic value, the second electrical characteristic value and the data variable quantity can be recorded and stored, so that the key and the moisture-proof key identification device can be debugged in the following process.
The electrical characteristic variation of the key at different time is obtained, a variation threshold value is set, whether the key is triggered or not is judged, and compared with the prior art that the key state is identified by using different levels, whether the key is triggered or not can be accurately identified when the key is in a wet state.
Optionally, in order to prevent the moisture-proof key identification device from being damaged when an abnormality occurs in a circuit connection or a component, a monitoring process for the second electrical characteristic value is added on the basis of fig. 2, as shown in fig. 3, and fig. 3 is a schematic flow chart of another moisture-proof key identification method provided by the embodiment of the present application. The moisture-proof key identification method further comprises the following steps:
and 104, judging whether the second electrical characteristic value is less than or equal to the first threshold value.
When the second electrical characteristic value is less than or equal to the first threshold value, step 105 is performed.
When the second electrical characteristic value is greater than the first threshold value, step 108 is performed.
And step 108, exiting key identification.
Alternatively, in order to prevent the moisture-proof key recognition device from being damaged when an abnormality occurs in a circuit connection or a component, referring to fig. 2, the moisture-proof key recognition method further includes:
when the first electrical characteristic value is greater than the first threshold value, step 108 is performed.
And step 108, exiting key identification.
When the button is in humid state, the condition such as circuit open circuit or part damage appears easily, through monitoring electrical characteristic value, dampproofing button recognition device of effectual protection.
Optionally, in order to reduce noise data in the key identification process, a key preprocessing process is added on the basis of fig. 2, as shown in fig. 4, and fig. 4 is a schematic flow chart of another moisture-proof key identification method provided in the embodiment of the present application. The moisture-proof key identification method further comprises the following steps:
and step 100, setting the electrical characteristic value of the key as a third electrical characteristic value.
The third electrical characteristic value is an electrical characteristic value when the key is in a non-operating state.
The electrical characteristic variation of the key at different time is obtained, a variation threshold value is set, whether the key is triggered or not is judged, and compared with the prior art that the key state is identified by using different levels, whether the key is triggered or not can be accurately identified when the key is in a wet state. Meanwhile, in order to judge the state of the key more accurately, the first electrical characteristic value, the second electrical characteristic value and the data variable quantity can be recorded and stored, so that the key and the moisture-proof key identification device can be debugged in the following process. The first threshold value is set, so that the electrical characteristic value of the key can be monitored in real time, and the key and the moisture-proof key identification device are effectively protected.
Taking the first electrical characteristic value and the second electrical characteristic value as the current as an example, the embodiment of the present application further provides a circuit capable of implementing the key identification method, as shown in fig. 5, and fig. 5 is a schematic structural diagram of a key identification circuit provided in the embodiment of the present application. The processor adopted by the key identification circuit is a TIC10024-Q1 type chip which is provided with 24 input ports, wherein three ports are connected with reserved points (J1, J2 and J3), the remaining 21 input ports are connected with external input signals, a resistor is arranged between each input port and each external input signal/reserved point, and the resistance value of the resistor connected with each input port is the same; at the same time, between the resistor and the external input signal, it alsoAnd capacitors are connected, the capacitors are C1-C24 in sequence, the use parameters of the capacitors are all 100nF/25V, and the other ends of the capacitors C1-C24 are all grounded. Both VS ports of the TIC10024-Q1 type chip are connected to an external voltage source VCC (14.4V). CAPA end, CAPPRE end and CAPD end of the TIC10024-Q1 type chip are capacitor ports which are respectively connected with a capacitor C25, a capacitor C26 and a capacitor C27, and the use parameters of C25-C27 are 100 nF/25V. The power supply terminal VDD of the TIC10024-Q1 type chip is connected with an external power supply VCC (3.3V). The TIC10024-Q1 type chip also has three communication ports
Figure BDA0002084392500000111
SI, SO and external signal TIC
Figure BDA0002084392500000112
The TIC SI and the TIC SO are connected in a connection relationship
Figure BDA0002084392500000113
-TIC
Figure BDA0002084392500000114
SI-TIC SI, SO-TIC SO; the communication port is used for the TIC10024-Q1 type chip to interact with external signals so as to realize the state recognition of the moisture-proof key. Meanwhile, the TIC10024-Q1 type chip adopted by the embodiment of the application is further provided with a RESET terminal RESET and a grounding terminal, and the grounding terminal comprises an AGND terminal, a PGND terminal and a group terminal. In order to prevent sudden changes of external power supplies VCC (3.3V) and VCC (14.4V) from affecting the performance of the TIC10024-Q1 type chip, two capacitors are further arranged at a VCC (3.3V) end and a DGND end, wherein the two capacitors are respectively C28 and C29, the use parameter of C28 is 100nF/25V, and the use parameter of C29 is 100 uF/6.3V; a capacitor C30 is arranged between the VCC (14.4V) terminal and the AGND terminal, and the use parameter is 47 uF/16V. The TIC10024-Q1 type chip is connected with the key, receives external current information, processes and judges the received current information, and identifies whether the key is triggered.
In order to more clearly illustrate the difference between the present application and the prior art, the present application provides another embodiment of voltage detection, which embodies the difference between the present application and the prior art, and the following table is drawn for more detailed description:
initial state Idle state Key press End state
High and low level judgment threshold 1.6 1.6 2 2
The key is in normal state 0 0 3.3 3.3
The push-button is in a wet state 2 2 2.8 2.8
Data variance 0 0 0.8 0.8
Variation threshold 0 0 0.5 0.5
In the prior art, when a key is in a wet state, since the level 2 of the key in the initial state and the idle state is greater than the high-low level judgment threshold value 1.6, the key is identified as a high level, and the level 2.8 of the key in the key pressing state and the key in the key ending state is greater than the high-low level judgment threshold value 2, the key is identified as a high level, that is, when the key is in the wet state, the key is identified as a high level state, and the key state cannot be effectively identified.
The embodiment of the application monitors the state change of the key by using the data variable quantity, and when the key is in a wet state, the data variable quantity is 0.8, and the change threshold value is 0.5, the key is identified as the pressed state of the key. The method and the device realize effective and accurate judgment on whether the key is pressed when the key is in a wet state.
An embodiment of the present application further provides an electronic device, as shown in fig. 6, fig. 6 is a schematic structural diagram of the electronic device provided in the embodiment of the present application, where the electronic device 300 includes: the memory 301, the processor 302, the communication interface 303 and the keys 304 are electrically connected with each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 301 may be used to store software programs and modules, such as program instructions/modules corresponding to the moisture-proof key identification device 200 provided in the embodiment of the present application, and the processor 302 executes the software programs and modules stored in the memory 301, so as to execute various functional applications and data processing. The communication interface 303 may be used for communicating signaling or data with other node devices.
The Memory 301 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 302 may be an integrated circuit chip having signal processing capabilities. The Processor 302 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. A processor and memory for storing one or more programs.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the above-mentioned moisture-proof key identification method.
The readable storage medium may be various media capable of storing program codes, such as RAM, ROM, PROM, EPROM, EEPROM, magnetic disk, optical disk, etc.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In summary, the present application provides a method and an apparatus for identifying a moisture-proof key, an electronic device, and a readable storage medium, and relates to the field of circuit detection. The damp-proof key identification device is connected with the keys, and the damp-proof key identification method comprises the following steps: acquiring a first electrical characteristic value of a key at a first time; judging whether the first electrical characteristic value is less than or equal to a first threshold value; when the first electrical characteristic value is smaller than or equal to the first threshold value, acquiring a second electrical characteristic value of the key at a second time; acquiring the data variation of the key according to the first electrical characteristic value and the second electrical characteristic value; judging whether the data variation is larger than or equal to a second threshold value; the second threshold value is a change threshold value of the electrical characteristic value of the key; and when the data variation is larger than or equal to a second threshold value, triggering the key. The change threshold value is set by acquiring the electrical characteristic variation of the key at different time, so that whether the key is triggered or not can be judged effectively in a wet state.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A method of moisture resistant key identification, wherein a moisture resistant key identification device is connected to a key, the method comprising:
acquiring a first electrical characteristic value of the key at a first time;
determining whether the first electrical characteristic value is less than or equal to a first threshold value; the first threshold value is the maximum allowable value of the electrical characteristic value of the key;
when the first electrical characteristic value is smaller than or equal to the first threshold value, acquiring a second electrical characteristic value of the key at a second time;
acquiring the data variation of the key according to the first electrical characteristic value and the second electrical characteristic value; the data variation represents whether the key is triggered or not;
judging whether the data variation is larger than or equal to a second threshold value; the second threshold value is a change threshold value of the electrical characteristic value of the key;
and when the data variation is larger than or equal to the second threshold, triggering the key.
2. The moisture resistant key identification method of claim 1 further comprising, prior to said step of obtaining a change in data for said key:
determining whether the second electrical characteristic value is less than or equal to the first threshold value;
when the second electrical characteristic value is smaller than or equal to the first threshold value, executing the step of acquiring the data variation of the key;
and exiting key identification when the second electrical characteristic value is greater than the first threshold value.
3. The moisture resistant key identification method of claim 1, further comprising:
and exiting key identification when the first electrical characteristic value is greater than the first threshold value.
4. The moisture resistant key identification method of claim 1 wherein prior to said step of obtaining a first value of an electrical characteristic of said key at a first time, said method further comprises:
and setting the electrical characteristic value of the key as a third electrical characteristic value, wherein the third electrical characteristic value is the electrical characteristic value when the key is in a non-working state.
5. A moisture resistant key identification device comprising: the device comprises an acquisition module, a judgment module and a processing module;
the acquisition module is used for acquiring a first electrical characteristic value of the key at a first time;
the judging module is used for judging whether the first electrical characteristic value is smaller than or equal to a first threshold value or not; the first threshold value is the maximum allowable value of the electrical characteristic value of the key;
the obtaining module is further used for obtaining a second electrical characteristic value of the key at a second time when the first electrical characteristic value is smaller than or equal to the first threshold; the obtaining module is further configured to obtain a data variation of the key according to the first electrical characteristic value and the second electrical characteristic value; the data variation represents whether the key is triggered or not;
the judging module is further used for judging whether the data variation is larger than or equal to a second threshold value; the second threshold value is a change threshold value of the electrical characteristic value of the key;
and the processing module is used for determining that the key is triggered when the data variation is larger than or equal to the second threshold.
6. The moisture resistant key identification device of claim 5 wherein the determination module is further configured to determine whether the second electrical property value is less than or equal to the first threshold value;
the processing module is further used for exiting key identification when the second electrical characteristic value is larger than the first threshold value.
7. The moisture resistant key identification device of claim 5 wherein the processing module is further configured to exit key identification when the first electrical characteristic value is greater than the first threshold value.
8. The moisture resistant key identification device of claim 5 wherein the processing module is further configured to set the electrical characteristic value of the key to a third electrical characteristic value, the third electrical characteristic value being the electrical characteristic value of the key when the key is in the inactive state.
9. An electronic device, comprising:
a memory for storing one or more programs;
a processor;
the one or more programs, when executed by the processor, implement the moisture resistant key identification method of any of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the moisture-proof key identification method according to any one of claims 1-4.
CN201910482832.4A 2019-06-04 2019-06-04 Damp-proof key identification method and device, electronic equipment and readable storage medium Active CN110196387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910482832.4A CN110196387B (en) 2019-06-04 2019-06-04 Damp-proof key identification method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910482832.4A CN110196387B (en) 2019-06-04 2019-06-04 Damp-proof key identification method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110196387A CN110196387A (en) 2019-09-03
CN110196387B true CN110196387B (en) 2021-09-03

Family

ID=67754016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910482832.4A Active CN110196387B (en) 2019-06-04 2019-06-04 Damp-proof key identification method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110196387B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599769A (en) * 2009-06-01 2009-12-09 康佳集团股份有限公司 A kind of fault-tolerance approach of touch induction buttons
CN102033668A (en) * 2009-09-30 2011-04-27 智点科技(深圳)有限公司 Capacitive touch screen
CN102799325A (en) * 2012-06-21 2012-11-28 敦泰科技有限公司 Method, device and system for detecting self-capacitance touch screen
CN103105975A (en) * 2013-02-26 2013-05-15 华为终端有限公司 Touch identification method and device
CN103475352A (en) * 2013-09-06 2013-12-25 深圳市芯海科技有限公司 Detection circuit of capacitor touch key
CN103995627A (en) * 2013-02-19 2014-08-20 比亚迪股份有限公司 Method and device for detecting capacitive touch screen
CN104199572A (en) * 2014-08-18 2014-12-10 京东方科技集团股份有限公司 Touch positioning method of touch display device and touch display device
CN104423736A (en) * 2013-08-29 2015-03-18 天津富纳源创科技有限公司 Touch identification method for touch screen
CN105355494A (en) * 2015-11-12 2016-02-24 西安龙德科技发展有限公司 Function changeable display button
CN105573570A (en) * 2014-11-07 2016-05-11 上海科勒电子科技有限公司 Touch press key identifying method of capacitive touch control screen
CN106646202A (en) * 2017-02-24 2017-05-10 常州信息职业技术学院 Touch key circuit board function display and detection system
CN106656204A (en) * 2016-11-28 2017-05-10 杭州九阳小家电有限公司 Method and device for implementing interference resistance of touch key
CN108551340A (en) * 2018-05-09 2018-09-18 珠海格力电器股份有限公司 A kind of jamproof processing method of membrane keyboard and electric appliance

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599769A (en) * 2009-06-01 2009-12-09 康佳集团股份有限公司 A kind of fault-tolerance approach of touch induction buttons
CN102033668A (en) * 2009-09-30 2011-04-27 智点科技(深圳)有限公司 Capacitive touch screen
CN102799325A (en) * 2012-06-21 2012-11-28 敦泰科技有限公司 Method, device and system for detecting self-capacitance touch screen
CN103995627A (en) * 2013-02-19 2014-08-20 比亚迪股份有限公司 Method and device for detecting capacitive touch screen
CN103105975A (en) * 2013-02-26 2013-05-15 华为终端有限公司 Touch identification method and device
CN104423736A (en) * 2013-08-29 2015-03-18 天津富纳源创科技有限公司 Touch identification method for touch screen
CN103475352A (en) * 2013-09-06 2013-12-25 深圳市芯海科技有限公司 Detection circuit of capacitor touch key
CN104199572A (en) * 2014-08-18 2014-12-10 京东方科技集团股份有限公司 Touch positioning method of touch display device and touch display device
CN105573570A (en) * 2014-11-07 2016-05-11 上海科勒电子科技有限公司 Touch press key identifying method of capacitive touch control screen
CN105355494A (en) * 2015-11-12 2016-02-24 西安龙德科技发展有限公司 Function changeable display button
CN106656204A (en) * 2016-11-28 2017-05-10 杭州九阳小家电有限公司 Method and device for implementing interference resistance of touch key
CN106646202A (en) * 2017-02-24 2017-05-10 常州信息职业技术学院 Touch key circuit board function display and detection system
CN108551340A (en) * 2018-05-09 2018-09-18 珠海格力电器股份有限公司 A kind of jamproof processing method of membrane keyboard and electric appliance

Also Published As

Publication number Publication date
CN110196387A (en) 2019-09-03

Similar Documents

Publication Publication Date Title
CN108475245B (en) Plug and play device identification method and electronic device
US7839182B2 (en) Detector of noise peaks in the power supply of an integrated circuit
US9443115B2 (en) System and method for circuit card insertion tracking
CN110647063B (en) Microcontroller and EFT event protection method
CN110213255A (en) A kind of pair of host carries out the method, apparatus and electronic equipment of trojan horse detection
CN106662970A (en) Method, apparatus and terminal device for setting interrupt threshold for fingerprint identification device
CN110196387B (en) Damp-proof key identification method and device, electronic equipment and readable storage medium
CN111458654A (en) Input signal diagnosis circuit
US11044086B2 (en) Apparatus for generating identification key and management method thereof
CN110680297A (en) Fault detection method, device and equipment of blood pressure monitor
EP3683682B1 (en) Bus monitoring system, method and apparatus
CN112214439B (en) Hot plug self-identification circuit and identification method
US20160041207A1 (en) Method for performing power consumption control, and associated apparatus
Yanci et al. Detecting voltage glitch attacks on secure devices
US20140068762A1 (en) Detection arrangement
CN111865923A (en) Method, system, device and medium for identifying abnormal behavior of Internet of things card
CN101996113B (en) Method and device for identifying cause of system reset
US20130127447A1 (en) Electrical parameter detection device for peripheral component interconnect devices
CN211086428U (en) Network cable detection circuit
CN113630389A (en) User abnormal behavior identification method, system, electronic equipment and storage medium
CN115659134A (en) Signal processing method for improving chip sensitivity and related device
CN219369954U (en) Electronic fuse power failure detection circuit, board card and server
US9515907B2 (en) Monitoring method of monitoring module
CN113849438B (en) Protection circuit, method of protecting circuit, storage medium, and electronic device
CN111241475B (en) Power consumption classification processing method, device, storage medium and processor

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
GR01 Patent grant
GR01 Patent grant