CN110196387A - A kind of moisture-proof recognition by pressing keys method, apparatus, electronic equipment and readable storage medium storing program for executing - Google Patents
A kind of moisture-proof recognition by pressing keys method, apparatus, electronic equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN110196387A CN110196387A CN201910482832.4A CN201910482832A CN110196387A CN 110196387 A CN110196387 A CN 110196387A CN 201910482832 A CN201910482832 A CN 201910482832A CN 110196387 A CN110196387 A CN 110196387A
- Authority
- CN
- China
- Prior art keywords
- electrical characteristic
- key
- threshold
- pressing keys
- moisture
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/282—Testing of electronic circuits specially adapted for particular applications not provided for elsewhere
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Push-Button Switches (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The embodiment of the present application provides a kind of moisture-proof recognition by pressing keys method, apparatus, electronic equipment and readable storage medium storing program for executing, is related to circuit detection field.For moisture-proof recognition by pressing keys device with by key connection, which includes: to obtain key in the first electrical characteristic of first time;Judge whether the first electrical characteristic is less than or equal to first threshold;When the first electrical characteristic is less than or equal to first threshold, key is obtained in the second electrical characteristic of the second time;According to the first electrical characteristic and the second electrical characteristic, the data variation amount of key is obtained;Judge whether data variation amount is greater than or equal to second threshold;Second threshold is the change threshold of the electrical characteristic of key;When data variation amount is greater than or equal to second threshold, then key is triggered.By obtaining key in the electrical characteristic variable quantity of different time, a change threshold is set, can judge whether key is triggered effectively in dampness.
Description
Technical field
This application involves circuit detection fields, set in particular to a kind of moisture-proof recognition by pressing keys method, apparatus, electronics
Standby and readable storage medium storing program for executing.
Background technique
The prior art uses level triggers to detect, and is high level when specially pressing key pressing, and original state is low electricity
Flat, when key-press status difference, the difference of circuit output low and high level judges key-press status.It but is humidity in key
When, by being high level when key pressing, original state is also high level, cannot be when key is moist, not by low and high level
The same state to detect key.On therefore, it is necessary to a kind of methods that can accurately identify key-press status in dampness to solve
State problem.
Summary of the invention
The application's is designed to provide a kind of moisture-proof recognition by pressing keys method, apparatus, electronic equipment and readable storage medium
The problem of matter can solve key in dampness, and key-press status cannot be accurately identified.
To achieve the goals above, the embodiment of the present application the technical solution adopted is as follows:
In a first aspect, the embodiment of the present application provides a kind of moisture-proof recognition by pressing keys method, moisture-proof recognition by pressing keys device and key
Connection, this method comprises: obtaining key in the first electrical characteristic of first time;Judge whether the first electrical characteristic is less than
Or it is equal to first threshold;First threshold is the maximum permissible value of the electrical characteristic of key;Be less than when the first electrical characteristic or
When equal to first threshold, key is obtained in the second electrical characteristic of the second time;According to the first electrical characteristic and the second electricity
Gas characteristic value obtains the data variation amount of key;Whether data variation scale sign key is triggered;Whether judge data variation amount
More than or equal to second threshold;Second threshold is the change threshold of the electrical characteristic of key;When data variation amount is greater than or waits
When second threshold, then key is triggered.
Optionally, before the step of obtaining the data variation amount of key, method further include: judge the second electrical characteristic
Whether first threshold is less than or equal to;When the second electrical characteristic is less than or equal to first threshold, then executes and obtain key
The step of data variation amount;When the second electrical characteristic is greater than first threshold, then recognition by pressing keys is exited.
Optionally, method further include: when the first electrical characteristic is greater than first threshold, then exit recognition by pressing keys.
Optionally, before the step of obtaining the first electrical characteristic of the key in first time, method further include: will be by
The electrical characteristic of key is set as third electrical characteristic, and third electrical characteristic is electrical when key is in non-working condition
Characteristic value.
Second aspect, the embodiment of the present application also provide a kind of moisture-proof recognition by pressing keys device, comprising: obtain module, judge mould
Block and processing module.Module is obtained for obtaining key in the first electrical characteristic of first time;Judgment module.For judging
Whether the first electrical characteristic is less than or equal to first threshold;First threshold is the maximum permissible value of the electrical characteristic of key.
It obtains module to be also used to when the first electrical characteristic is less than or equal to first threshold, obtains key in the second electricity of the second time
Gas characteristic value;Obtain the data variation that module is also used to obtain key according to the first electrical characteristic and the second electrical characteristic
Amount;Whether data variation scale sign key is triggered.Judgment module is also used to judge whether data variation amount is greater than or equal to
Two threshold values;Second threshold is the change threshold of the electrical characteristic of key;Processing module, for when data variation amount is greater than or waits
When second threshold, determine that key is triggered.
Optionally, judgment module is also used to judge whether the second electrical characteristic is less than or equal to first threshold;Handle mould
Block is also used to exit recognition by pressing keys when the second electrical characteristic is greater than first threshold.
Optionally, processing module is also used to exit recognition by pressing keys when the first electrical characteristic is greater than first threshold.
Optionally, processing module is also used to set third electrical characteristic for the electrical characteristic of key, and third is electrical
Characteristic value is electrical characteristic when key is in non-working condition.
The third aspect, the embodiment of the present application also provide a kind of electronic equipment, comprising: processor and memory, memory are used
In the one or more programs of storage.When one or more programs are executed by processor, above-mentioned moisture-proof recognition by pressing keys side is realized
Method.
Fourth aspect, the embodiment of the present application also provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence, the computer program realize above-mentioned moisture-proof recognition by pressing keys method when being executed by processor.
The embodiment of the present application provides a kind of moisture-proof recognition by pressing keys method, apparatus, electronic equipment and readable storage medium storing program for executing, relates to
And circuit detection field.For moisture-proof recognition by pressing keys device with by key connection, which includes: to obtain key the
The first electrical characteristic of one time;Judge whether the first electrical characteristic is less than or equal to first threshold;As the first electrical spy
Property value be less than or equal to first threshold when, obtain key the second time the second electrical characteristic;According to the first electrical characteristic
Value and the second electrical characteristic, obtain the data variation amount of key;Judge whether data variation amount is greater than or equal to second threshold;
Second threshold is the change threshold of the electrical characteristic of key;When data variation amount is greater than or equal to second threshold, then key
It is triggered.By acquisition key in the electrical characteristic variable quantity of different time, a change threshold is set, it can be effectively in tide
When wet condition, judge whether key is triggered.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of structural schematic diagram of moisture-proof recognition by pressing keys device provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of moisture-proof recognition by pressing keys method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the moisture-proof recognition by pressing keys method of another kind provided by the embodiments of the present application;
Fig. 4 is the flow diagram of the moisture-proof recognition by pressing keys method of another kind provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of recognition by pressing keys circuit provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
In figure: the moisture-proof recognition by pressing keys device of 200-;201- obtains module;202- judgment module;203- processing module, 300-
Electronic equipment, 301- memory, 302- processor, 303- communication interface, 304- key.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed
Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can be
Mechanical connection, is also possible to be electrically connected;It can be directly connected, two can also be can be indirectly connected through an intermediary
Connection inside element.For the ordinary skill in the art, above-mentioned term can be understood in the application with concrete condition
In concrete meaning.
With reference to the accompanying drawing, it elaborates to some embodiments of the application.In the absence of conflict, following
Feature in embodiment and embodiment can be combined with each other.
For the prior art when key is in dampness, level detection is high level, cannot effective key range
State.In order to which whether key range is triggered under dampness, referring to Fig. 1, Fig. 1 is one kind provided by the embodiments of the present application
The schematic diagram of moisture-proof recognition by pressing keys device, for the moisture-proof recognition by pressing keys device 200 with by key connection, key driving uses voltage or electricity
The mode of flash driving is flowed, when key is driven, electrical characteristic can change.The moisture-proof recognition by pressing keys device includes:
Obtain module 201, judgment module 202 and processing module 203.
Module 201 is obtained for obtaining key in the first electrical characteristic of first time.First electrical characteristic can
Think the electric physical quantity such as voltage, electric current, capacitor, inductance and charge.
Judgment module 202 is for judging whether the first electrical characteristic is less than or equal to first threshold;First threshold be by
The maximum permissible value of the electrical characteristic of key.
Module 201 is obtained to be also used to obtain key second when the first electrical characteristic is less than or equal to first threshold
The second electrical characteristic of time;Module 201 is obtained to be also used to be obtained according to the first electrical characteristic and the second electrical characteristic
The data variation amount of key;Whether data variation scale sign key is triggered.
Judgment module 202 is also used to judge whether data variation amount is greater than or equal to second threshold;Second threshold is key
Electrical characteristic change threshold.
Processing module 203, for determining that key is triggered when data variation amount is greater than or equal to second threshold.
By obtaining key in the electrical characteristic variable quantity of different time, a change threshold is set, whether judges key
It is triggered, it is middle compared to the prior art that key-press status is identified using the difference of low and high level, tide can be in key
Whether accurate key range is triggered when wet condition.
Optionally, when circuit connection or component occur abnormal, moisture-proof recognition by pressing keys device 200 is damaged in order to prevent,
Judgment module 202 is also used to judge whether the second electrical characteristic is less than or equal to first threshold;Processing module 203 is also used to work as
When second electrical characteristic is greater than first threshold, recognition by pressing keys is exited.Processing module 203 is also used to when the first electrical characteristic is big
When first threshold, recognition by pressing keys is exited.
Optionally, in order to keep the first electrical characteristic obtained more accurate, the interference of noise, processing module 203 are reduced
It is also used to set the electrical characteristic of key to third electrical characteristic, third electrical characteristic is that key is in the shape that do not work
Electrical characteristic when state.
For the clearer identification for describing how to realize moisture-proof key, on the basis of Fig. 1, the embodiment of the present application is also mentioned
For a kind of moisture-proof recognition by pressing keys method, such as Fig. 2, Fig. 2 are a kind of stream of moisture-proof recognition by pressing keys method provided by the embodiments of the present application
Journey schematic diagram.The moisture-proof recognition by pressing keys method includes:
Step 101 obtains key in the first electrical characteristic of first time.
Step 102 judges whether the first electrical characteristic is less than or equal to first threshold.
Above-mentioned first threshold is the maximum permissible value of the electrical characteristic of key.
When the first electrical characteristic is less than or equal to first threshold, 103 are thened follow the steps.
Step 103 obtains key in the second electrical characteristic of the second time.
By taking electrical characteristic is electric current as an example, the maximum permissible value of the electrical characteristic of key is 20 milliamperes, when getting
The first electrical characteristic be 100 milliampere hour, then step 103 is not gone on, to prevent moisture-proof recognition by pressing keys device from damaging.
Step 105, according to the first electrical characteristic and the second electrical characteristic, obtain the data variation amount of key.
Whether above-mentioned data variation scale sign key is triggered.The data variation amount can be the first electrical characteristic and the
The difference of two electrical characteristics, by taking the first electrical characteristic and the second electrical characteristic are voltage as an example, the data variation amount
It is then the voltage difference of the first electrical characteristic and the second electrical characteristic.
Step 106 judges whether data variation amount is greater than or equal to second threshold.
Above-mentioned second threshold is the change threshold of the electrical characteristic of key.
When data variation amount is less than second threshold, then 103 are returned to step, reacquire key second is electrical special
Property value, while by the electrical characteristic obtained carry out recording and storage.
When data variation amount is greater than or equal to second threshold, 107 are thened follow the steps.
Step 107, key are identified as triggering state.
Meanwhile the state in order to more accurately judge key, it can be by the first electrical characteristic, the second electrical characteristic
It records and saves with data variable quantity, key and moisture-proof recognition by pressing keys device is debugged so as to subsequent.
By obtaining key in the electrical characteristic variable quantity of different time, a change threshold is set, whether judges key
It is triggered, it is middle compared to the prior art that key-press status is identified using the difference of low and high level, tide can be in key
Whether accurate key range is triggered when wet condition.
Optionally, when circuit connection or component occur abnormal, moisture-proof recognition by pressing keys device is damaged in order to prevent, is being schemed
On the basis of 2, increase the monitoring process to the second electrical characteristic, such as Fig. 3, Fig. 3 are another kinds provided by the embodiments of the present application
The flow diagram of moisture-proof recognition by pressing keys method.The moisture-proof recognition by pressing keys method further include:
Step 104 judges whether the second electrical characteristic is less than or equal to first threshold.
When the second electrical characteristic is less than or equal to first threshold, 105 are thened follow the steps.
When the second electrical characteristic is greater than first threshold, 108 are thened follow the steps.
Step 108 exits recognition by pressing keys.
Optionally, when circuit connection or component occur abnormal, moisture-proof recognition by pressing keys device is damaged in order to prevent, referring to
Fig. 2, the moisture-proof recognition by pressing keys method further include:
When the first electrical characteristic is greater than first threshold, 108 are thened follow the steps.
Step 108 exits recognition by pressing keys.
When key is in dampness, situations such as being easy to appear circuit breaker or parts damages, by electrical characteristic
It is monitored, moisture-proof recognition by pressing keys device can be effectively protected.
Optionally, in order to reduce the noise data during recognition by pressing keys, on the basis of Fig. 2, increase to the pre- of key
Treatment process is such as schemed, and 4, Fig. 4 be the flow diagram of the moisture-proof recognition by pressing keys method of another kind provided by the embodiments of the present application.It should
Moisture-proof recognition by pressing keys method further include:
The electrical characteristic of key is set third electrical characteristic by step 100.
Above-mentioned third electrical characteristic is electrical characteristic when key is in non-working condition.
By obtaining key in the electrical characteristic variable quantity of different time, a change threshold is set, whether judges key
It is triggered, it is middle compared to the prior art that key-press status is identified using the difference of low and high level, tide can be in key
Whether accurate key range is triggered when wet condition.Meanwhile the state in order to more accurately judge key, it can be by first
Electrical characteristic, the second electrical characteristic and data variable quantity record and save, and know so as to subsequent to key and moisture-proof key
Other device is debugged.First threshold, which is arranged, to be in real time monitored the electrical characteristic of key, be effectively protected by
Key and moisture-proof recognition by pressing keys device.
By taking the first electrical characteristic and the second electrical characteristic are electric current as an example, the embodiment of the present application also proposes that one kind can be with
Realize that the circuit of above-mentioned recognition by pressing keys method, such as Fig. 5, Fig. 5 are a kind of knot of recognition by pressing keys circuit provided by the embodiments of the present application
Structure schematic diagram.The processor that the recognition by pressing keys circuit uses has 24 input ports for TIC10024-Q1 cake core,
In connect with pre- stationary point (J1, J2, J3) there are three port, remaining 21 input ports are connect with the input signal of outside,
Between each input port and each external input signal/pre- stationary point, it is provided with a resistance, the electricity of each input port connection
It is identical to hinder resistance value;Meanwhile between resistance and the input signal of outside, it is also connected with capacitor, is followed successively by C1~C24, used
Parameter is 100nF/25V, and the other end of capacitor C1~C24 is grounded.Two ports VS of TIC10024-Q1 cake core connect
Meet external voltage source VCC (14.4V).The end CAP A, the end CAP PRE, the end CAP D of TIC10024-Q1 cake core are capacitor
Port, the use parameter for being separately connected capacitor C25, capacitor C26 and capacitor C27, C25~C27 is 100nF/25V.TIC10024-
The power end VDD connection external power supply VCC (3.3V) of Q1 cake core.There are three communication port for TIC10024-Q1 cake coreSI, SO and external signal TICTIC SI, TIC SO connection, connection relationship are-TICSI—TIC SI、
SO—TIC SO;Communication port is interacted for TIC10024-Q1 cake core and external signal, to realize moisture-proof key
State recognition.Meanwhile the TIC10024-Q1 cake core that the embodiment of the present application uses is additionally provided with a reset terminal RESET and connects
Ground terminal, ground terminal include the end AGND, the end PGND and the end Ground.External power supply VCC (3.3V) and VCC (14.4V) in order to prevent
Mutation influence the performance of TIC10024-Q1 cake core, also set up at the end VCC (3.3V) and the end DGND there are two capacitor, respectively
For C28 and C29, the use parameter of C28 is 100nF/25V, and the use parameter of C29 is 100uF/6.3V;It is held at VCC (14.4V)
It is provided with capacitor C30 between the end AGND, the use of parameter is 47uF/16V.TIC10024-Q1 cake core connects with by key connection
Current information outside receiving, is handled and is judged to the current information received, whether key range is triggered.
For the difference for illustrating the application and the prior art being more clear, the application also provides another is with voltage detecting
The embodiment of example embodies the difference of the application and the prior art, draws following table, so as to more detailed explanation:
Original state | Idle state | By key pressing | End state | |
Low and high level judgment threshold | 1.6 | 1.6 | 2 | 2 |
Key is in normal condition | 0 | 0 | 3.3 | 3.3 |
Key is in dampness | 2 | 2 | 2.8 | 2.8 |
Data variation amount | 0 | 0 | 0.8 | 0.8 |
Change threshold | 0 | 0 | 0.5 | 0.5 |
The prior art is when key is in dampness, since key is big for the level 2 of original state and idle state
In low and high level judgment threshold 1.6, it is identified as high level, key is by key pressing and to terminate the level 2.8 of status keys
Greater than low and high level judgment threshold 2, identify it for high level, that is, when key is in dampness, key is identified as high electricity
Level state, can not effective key range state.
The embodiment of the present application is monitored the state change of key using data variation amount, when key is in moist shape
When state, data variation amount is 0.8, and change threshold is 0.5, then key range is the state by key pressing.Realize by
When key is in dampness, whether it is pressed to key and carries out effective and accurate judgement.
The embodiment of the present application also provides a kind of electronic equipment, such as Fig. 6, and Fig. 6 is a kind of electronics provided by the embodiments of the present application
The structural schematic diagram of equipment, the electronic equipment 300 include: memory 301, processor 302, communication interface 303 and key 304,
The memory 301, processor 302, communication interface 303 and key 304 are directly or indirectly electrically connected between each other, to realize
The transmission or interaction of data.For example, these elements can realize electricity by one or more communication bus or signal wire between each other
Property connection.Memory 301 can be used for storing software program and module, the moisture-proof recognition by pressing keys dress as provided by the embodiment of the present application
200 corresponding program instruction/modules are set, processor 302 passes through the software program and module for executing and being stored in memory 301,
Thereby executing various function application and data processing.The communication interface 303 can be used for other node devices carry out signaling or
The communication of data.
Wherein, memory 301 can be but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Processor 302 can be a kind of IC chip, have signal handling capacity.The processor 302 can be logical
With processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), dedicated collection
At circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.Processor and memory, the memory is for storing one or more programs.
The embodiment of the present application also provides a kind of computer readable storage medium, is stored thereon with computer program, the calculating
Machine program realizes above-mentioned moisture-proof recognition by pressing keys method when being executed by processor.
Above-mentioned readable storage medium storing program for executing can be deposited for RAM, ROM, PROM, EPROM, EEPROM, magnetic disk, CD etc. are various
Store up the medium of program code.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
In conclusion a kind of moisture-proof recognition by pressing keys method, apparatus provided by the embodiments of the present application, electronic equipment and readable
Storage medium is related to circuit detection field.With by key connection, which includes: moisture-proof recognition by pressing keys device
Key is obtained in the first electrical characteristic of first time;Judge whether the first electrical characteristic is less than or equal to first threshold;
When the first electrical characteristic is less than or equal to first threshold, key is obtained in the second electrical characteristic of the second time;According to
First electrical characteristic and the second electrical characteristic obtain the data variation amount of key;Judge data variation amount whether be greater than or
Equal to second threshold;Second threshold is the change threshold of the electrical characteristic of key;When data variation amount is greater than or equal to second
When threshold value, then key is triggered.By acquisition key in the electrical characteristic variable quantity of different time, a change threshold is set,
It can judge whether key is triggered effectively in dampness.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie
In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.
Claims (10)
1. a kind of moisture-proof recognition by pressing keys method, which is characterized in that moisture-proof recognition by pressing keys device with by key connection, the method packet
It includes:
The key is obtained in the first electrical characteristic of first time;
Judge whether first electrical characteristic is less than or equal to first threshold;The first threshold is the electrical of the key
The maximum permissible value of characteristic value;
When first electrical characteristic is less than or equal to the first threshold, the key is obtained the second of the second time
Electrical characteristic;
According to first electrical characteristic and second electrical characteristic, the data variation amount of the key is obtained;It is described
Data variation scale levies whether the key is triggered;
Judge whether the data variation amount is greater than or equal to second threshold;The second threshold is the electrical characteristic of the key
The change threshold of value;
When the data variation amount is greater than or equal to the second threshold, then the key is triggered.
2. moisture-proof recognition by pressing keys method according to claim 1, which is characterized in that in the data for obtaining the key
Before the step of variable quantity, further includes:
Judge whether second electrical characteristic is less than or equal to the first threshold;
When second electrical characteristic is less than or equal to the first threshold, then the data for obtaining the key are executed
The step of variable quantity;
When second electrical characteristic is greater than the first threshold, then recognition by pressing keys is exited.
3. moisture-proof recognition by pressing keys method according to claim 1, which is characterized in that the method also includes:
When first electrical characteristic is greater than the first threshold, then recognition by pressing keys is exited.
4. moisture-proof recognition by pressing keys method according to claim 1, which is characterized in that obtain the key first described
Before the step of the first electrical characteristic of time, the method also includes:
Third electrical characteristic is set by the electrical characteristic of the key, the third electrical characteristic is at the key
Electrical characteristic when non-working condition.
5. a kind of moisture-proof recognition by pressing keys device characterized by comprising obtain module, judgment module and processing module;
The acquisition module, for obtaining key in the first electrical characteristic of first time;
The judgment module, for judging whether first electrical characteristic is less than or equal to first threshold;First threshold
Value is the maximum permissible value of the electrical characteristic of the key;
The acquisition module is also used to press described in acquisition when first electrical characteristic is less than or equal to the first threshold
Second electrical characteristic of the key in the second time;The acquisition module is also used to according to first electrical characteristic and described
Two electrical characteristics obtain the data variation amount of the key;The data variation scale levies whether the key is triggered;
The judgment module is also used to judge whether the data variation amount is greater than or equal to second threshold;The second threshold is
The change threshold of the electrical characteristic of the key;
The processing module, for determining the key quilt when the data variation amount is greater than or equal to the second threshold
Triggering.
6. moisture-proof recognition by pressing keys device according to claim 5, which is characterized in that the judgment module is also used to judge institute
State whether the second electrical characteristic is less than or equal to the first threshold;
The processing module is also used to exit recognition by pressing keys when second electrical characteristic is greater than the first threshold.
7. moisture-proof recognition by pressing keys device according to claim 5, which is characterized in that the processing module is also used to when described
When first electrical characteristic is greater than the first threshold, recognition by pressing keys is exited.
8. moisture-proof recognition by pressing keys device according to claim 5, which is characterized in that the processing module is also used to will be described
The electrical characteristic of key is set as third electrical characteristic, and the third electrical characteristic is that the key is in the shape that do not work
Electrical characteristic when state.
9. a kind of electronic equipment characterized by comprising
Memory, for storing one or more programs;
Processor;
When one or more of programs are executed by the processor, realize as of any of claims 1-4 anti-
Damp recognition by pressing keys method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
Such as moisture-proof recognition by pressing keys method of any of claims 1-4 is realized when processor executes.
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 true CN110196387A (en) | 2019-09-03 |
CN110196387B 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)
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 |
-
2019
- 2019-06-04 CN CN201910482832.4A patent/CN110196387B/en active Active
Patent Citations (13)
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 |
---|---|
CN110196387B (en) | 2021-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101256207B (en) | Method and apparatus for overvoltage detection circuit | |
KR100824828B1 (en) | Method for verifying smart battery failures by measuring input charging voltage and associated system | |
CN105048439B (en) | A kind of method for controlling power supply and device | |
JP6945728B2 (en) | Diagnostic device for motors | |
CN108008322A (en) | The detection method and circuit of multiple power supplies | |
CN106095039A (en) | Power consumption control method and device thereof | |
CN104568227A (en) | Circuit, method and device for detecting temperature sensing bulb | |
CN107818728A (en) | Electronic lead sealing | |
CN110196387A (en) | A kind of moisture-proof recognition by pressing keys method, apparatus, electronic equipment and readable storage medium storing program for executing | |
CN206331094U (en) | A kind of battery data detection means and terminal | |
CN105004957A (en) | SD card test method and test device | |
CN108089053A (en) | A kind of excitation self testing circuit | |
CN207541478U (en) | Data Collector Equipment in Substation and system | |
CN110927552A (en) | On-line monitoring VCE_ONFailure prediction method and device for IGBT power module of auxiliary inverter | |
CN108537415A (en) | A kind of distribution method, the apparatus and system of online safety utilization of electric power | |
CN208207878U (en) | The anti-disassembling device and electronic tag of electronic tag | |
CN116566045A (en) | Method and system for collecting multi-service scene of self-adaptive substation | |
CN108123419B (en) | A kind of overcurrent protection method, device, chip and control circuit | |
CN114913600A (en) | Electricity stealing detection method and device for electricity meter, electronic equipment and storage medium | |
CN115561700A (en) | Method and device for analyzing metering standard of direct current electric energy meter | |
CN206517538U (en) | A kind of monitoring camera timely checking circuit | |
CN113189534B (en) | Electric energy meter error detection method, readable storage medium and electronic device | |
CN114217125A (en) | Intelligent ammeter capable of preventing electricity theft, electricity theft prevention system and electricity theft prevention detection method thereof | |
CN108712442A (en) | Power distribution cabinet data collection terminal cut-in method and terminal device | |
CN106776169A (en) | A kind of method and device of the PSU of testing service device |
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 |