CN111309188A - Touch key shielding method and device and capacitive touch equipment - Google Patents
Touch key shielding method and device and capacitive touch equipment Download PDFInfo
- Publication number
- CN111309188A CN111309188A CN202010256673.9A CN202010256673A CN111309188A CN 111309188 A CN111309188 A CN 111309188A CN 202010256673 A CN202010256673 A CN 202010256673A CN 111309188 A CN111309188 A CN 111309188A
- Authority
- CN
- China
- Prior art keywords
- capacitive touch
- shielding
- touch key
- equipment
- capacitance 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000006870 function Effects 0.000 claims description 52
- 238000001514 detection method Methods 0.000 claims description 28
- 238000004590 computer program Methods 0.000 claims description 14
- 230000006698 induction Effects 0.000 claims description 9
- 238000013459 approach Methods 0.000 claims description 7
- 230000003993 interaction Effects 0.000 abstract description 5
- 230000005540 biological transmission Effects 0.000 abstract description 4
- 230000004044 response Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 230000009471 action Effects 0.000 description 5
- 238000001179 sorption measurement Methods 0.000 description 4
- 230000035945 sensitivity Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000001914 filtration Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Switches That Are Operated By Magnetic Or Electric Fields (AREA)
Abstract
The embodiment of the invention discloses a shielding method and a shielding device for a touch key and a capacitive touch device, which are applied to the capacitive touch device connected with an external device through a magnetic contact; the method comprises the following steps: detecting whether a capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value or not, and if not, shielding the touch key function of the capacitive touch equipment; if yes, detecting whether the touch key is connected with the external equipment or not through a magnetic attraction contact of the capacitive touch equipment, and if yes, shielding the touch key function. The invention can meet the operation and use requirements of the capacitive touch equipment for connecting the external equipment through the magnetic attraction contact, so that the capacitive touch equipment and the external equipment can realize stable information interaction transmission with strong anti-interference capability after being connected through the magnetic attraction contact.
Description
Technical Field
The invention relates to the technical field of electronics, in particular to a method and a device for shielding a touch key and a capacitive touch device.
Background
The capacitive touch key is widely applied to various terminals, but the capacitive touch key has a certain response after being close to an external object, so that the device inevitably causes unintended misoperation when being contacted by other external devices. Especially, when the capacitive touch device is connected with other external devices such as an intelligent terminal capable of controlling the touch key device, the capacitive touch device is easily interfered by the intelligent terminal, and the problem that the normal use is influenced due to the false triggering is caused.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method and an apparatus for shielding a touch key, and a capacitive touch device.
In one embodiment, the invention provides a shielding method of a touch key, which is applied to a capacitive touch device connected with an external device through a magnetic attraction contact; the method comprises the following steps:
detecting whether a capacitance value corresponding to a capacitive touch key is increased to a preset capacitance value, and if not, shielding the touch key function of the capacitive touch equipment;
if yes, detecting whether the capacitive touch equipment is connected with the external equipment or not through a magnetic attraction contact of the capacitive touch equipment, and if yes, shielding the touch key function.
In one embodiment, shielding the touch key function of the capacitive touch device, then comprises:
and receiving a user key instruction acquired by the external equipment connected through the magnetic attraction contact.
In one embodiment, after detecting whether the capacitance value corresponding to the capacitive touch key is increased to the preset capacitance value, the method further includes:
if the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value, detecting whether the capacitance values corresponding to a plurality of capacitive touch keys are increased at the same time, and if so, shielding the touch key function;
if not, executing the step of detecting whether the external equipment is connected or not.
In one embodiment, the step of detecting whether capacitance values corresponding to a plurality of capacitive touch keys increase simultaneously further includes:
if the capacitance values corresponding to the plurality of capacitive touch keys are not detected to be increased at the same time, detecting whether the capacitance values corresponding to the capacitive touch keys are kept unchanged within a preset time, and if so, shielding the touch key function;
if not, executing the step of detecting whether the external equipment is connected or not.
In one embodiment, an infrared sensor is arranged in the capacitive touch device, and the infrared sensor is located beside the magnetic attraction contact and is separated from a capacitive touch key area by a preset distance;
the method further comprises the following steps:
when the fact that the infrared induction intensity sensed by the infrared inductor is larger than or equal to a preset intensity threshold value is detected within a preset detection distance, it is determined that the external equipment approaches and the touch key function is shielded; otherwise, executing the step of detecting the capacitance value corresponding to the capacitive touch key.
In one embodiment, the invention also provides a shielding device of the touch key, which is applied to the touch equipment connected with the external equipment through the magnetic attraction contact;
the device comprises:
the first key detection module is used for detecting whether the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value or not;
the shielding module is used for shielding the touch key function of the capacitive touch equipment if the capacitance value corresponding to the capacitive touch key is not increased to a preset capacitance value;
the first connection detection module is used for detecting whether the capacitive touch key is connected with the external equipment or not through a magnetic contact of the capacitive touch equipment if the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value;
the shielding module is further used for shielding the touch key function if the magnetic attraction contact of the capacitive touch equipment detects that the capacitive touch equipment is connected with the external equipment.
In one embodiment, the invention further provides a capacitive touch device, which is used for being connected with an external device through a magnetic attraction contact;
the capacitive touch device further comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the shielding method of the touch key when executing the computer program.
In one embodiment, the method further includes an infrared sensor disposed beside the magnetic attraction contact and spaced from the capacitive touch key region by a preset distance, and the processor implements the step of implementing the method for shielding the touch key when executing the computer program.
In one embodiment, the capacitive touch device is a sound box, a desk lamp or a light-controlled switch.
In one embodiment, the present invention also provides a computer readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method for shielding touch keys.
The shielding method and device for the touch key and the capacitive touch equipment provided by the invention have the following technical effects:
the shielding method and device for the touch keys and the capacitive touch equipment are applied to the capacitive touch equipment connected with external equipment through the magnetic attraction contact points, detect whether the capacitance value corresponding to the capacitive touch keys is increased to a preset capacitance value or not in the process of adsorption connection with the external equipment, and shield the key functions of the capacitive touch equipment if the capacitance value is not increased to the preset capacitance value. If yes, detecting whether the touch key is connected with the external equipment or not through a magnetic attraction contact of the capacitive touch equipment, and if yes, shielding the touch key function. The embodiments of the invention can combine various judgment factors to prevent misjudgment, thereby filtering out misoperation caused by external equipment and other objects when the capacitive touch equipment is in contact connection with the external equipment through the magnetic attraction contact, and simultaneously ensuring that the capacitive touch equipment cannot be influenced by normal use of the equipment due to false triggering of the touch key caused by adsorption and attachment of the external equipment after connection. The invention can meet the operation and use requirements of the capacitive touch equipment for connecting the external equipment through the magnetic attraction contact, so that the capacitive touch equipment and the external equipment can realize stable information interaction transmission with strong anti-interference capability after being connected through the magnetic attraction contact.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
FIG. 1 is a flow chart illustrating a method for masking a touch key according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a shielding method for a touch key according to an embodiment of the invention;
fig. 3 is a schematic diagram illustrating a connection between an external device and a capacitive touch device in a method for shielding a touch key according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a shielding apparatus for a touch key according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a capacitive touch device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Referring to fig. 3, the present invention is suitable for a capacitive touch device 10 having a magnetic attraction function and a capacitive touch key 320 disposed on a surface of the device where the magnetic attraction contact 310 is located. When the capacitive touch device 10 is not attracted to the external device 20, the capacitive touch device 10 itself implements function control, and after the capacitive touch device is connected to the external device 20 through the magnetic attraction contact 310, the external device 20 undertakes a function control task of the attracted capacitive touch device 10, that is, the function control task is executed by the external device.
Referring to fig. 1, in one embodiment, the present invention provides a shielding method for a touch key, which is applied to a capacitive touch device connected to an external device through a magnetic contact; the method comprises the following steps:
step S110: and detecting whether the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value, and if not, shielding the touch key function of the capacitive touch equipment.
In the process that the external equipment and the capacitive touch equipment are attracted through the magnetic attraction contact, the touch key of the capacitive touch equipment is touched by non-finger foreign objects such as the plane of the external equipment, and the quantity of electric charge transferred is different from that caused by two actions of being touched by a finger, so that the capacitance value variation corresponding to the touch key is different. When a non-finger foreign object such as a plane of the external device touches the touch key, the corresponding capacitance increment is smaller than that when a finger touches the touch key. Therefore, a trigger response threshold value, namely a preset capacitance value, can be set, the non-directional operation can be filtered by detecting the capacitance value variation corresponding to the touch key, if the capacitance value corresponding to the touch key is increased to the preset capacitance value, the touch can be responded by the finger of the user, and if the corresponding capacitance value does not reach the preset capacitance value, the touch can be shielded by the touch of the non-user fingers such as the plane of the external equipment. Therefore, the influence of false response on the normal work of the equipment can be prevented when the external equipment is sucked and connected.
The embodiment of the invention has higher identification sensitivity, can effectively and quickly filter the misoperation of the capacitive touch key, and ensures that the instruction of the touch key is responded by mistake in the suction connection process of the capacitive touch equipment and the external equipment.
Step S120: and if so, detecting whether the connection with the external equipment exists or not through a magnetic attraction contact of the capacitive touch equipment, and if so, shielding the touch key function of the capacitive touch equipment.
In order to prevent misjudgment, after the capacitance value corresponding to the capacitive touch key is increased to the preset capacitance value, whether the capacitive touch key is connected with the external equipment or not can be detected through the magnetic attraction contact of the capacitive touch equipment, so that even if the capacitive touch key and the external equipment are not completely attached to each other, the adsorbed capacitive touch equipment can be detected to be connected with the external equipment through the magnetic attraction contact, the touch key function can be shielded in time, the condition of mistouch is effectively isolated, and if the capacitive touch key is not detected to be connected with the external equipment, the key instruction corresponding to the capacitive touch key is responded. Whether a mode of being connected with external equipment exists is detected through the magnetic attraction contact of the capacitive touch equipment, if yes, whether the voltage of an IO control port connected with the corresponding magnetic attraction contact changes can be detected, namely whether a preset voltage value is reached, if yes, connection of the external equipment is indicated, or whether a handshake instruction sent by the external equipment is received by the IO control port connected with the corresponding magnetic attraction contact is detected, and if yes, connection of the external equipment is indicated.
The shielding method of the touch key is applied to the capacitive touch equipment connected with the external equipment through the magnetic attraction contact, detects whether the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value or not in the process of the adsorption connection with the external equipment, and shields the key function of the capacitive touch equipment if the capacitance value is not increased to the preset capacitance value. If yes, detecting whether the touch key is connected with the external equipment or not through a magnetic attraction contact of the capacitive touch equipment, and if yes, shielding the touch key function. The embodiment of the invention can combine various judgment factors to prevent misjudgment, thereby filtering the misoperation caused by external equipment and other external objects when the capacitive touch equipment is in contact connection with the external equipment through the magnetic attraction contact, and simultaneously ensuring that the capacitive touch equipment cannot be influenced by the normal use of the equipment due to the fact that the touch key is triggered by mistake caused by the adsorption and adhesion of the external equipment after connection. The invention can meet the operation and use requirements of the capacitive touch equipment for connecting the external equipment through the magnetic attraction contact, so that the capacitive touch equipment and the external equipment can realize stable information interaction transmission with strong anti-interference capability after being connected through the magnetic attraction contact.
In a specific embodiment, shielding the touch key function of the capacitive touch device, then comprises:
and receiving a user key instruction acquired by the external equipment connected with the magnetic contact.
According to the shielding method of the touch key provided by the embodiment of the invention, after the touch key function of the adsorbed capacitive touch equipment is shielded, the external equipment sends a user key instruction to the capacitive touch equipment, namely, the function of interaction with a user is transferred to the external equipment. The invention is convenient for the external equipment to adsorb the capacitive touch equipment through the magnetic attraction contact, thereby improving the stability and effectiveness of the external equipment and the capacitive touch equipment during communication connection, preventing the signal interference of the touch keys and ensuring the normal operation of the equipment.
In a specific embodiment, after detecting whether the capacitance value corresponding to the capacitive touch key is increased to the preset capacitance value, the method further includes:
if the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value, detecting whether the capacitance values corresponding to the capacitive touch keys are increased at the same time, and if so, shielding the touch key function.
If not, executing the step of detecting whether the external equipment is connected or not.
In the process that the external device and the capacitive touch device are attracted through the magnetic attraction contact, namely when the external device is pressed on the capacitive touch device, the situation that the capacitance values corresponding to the plurality of capacitive touch keys are increased at the same time exists, namely the plurality of touch keys are touched at the same time. And in normal operation, the action that a plurality of keys are pressed simultaneously does not exist, therefore, even if the capacitance value corresponding to the capacitive touch key is detected to be increased to the preset capacitance value, in order to eliminate external interference factors to prevent misjudgment, whether the capacitance values corresponding to the capacitive touch keys are increased simultaneously can be detected through detecting, if yes, no response is made to shield the touch key function, if not, whether the capacitive touch key is connected with external equipment can be detected through the magnetic attraction contact of the capacitive touch equipment, if yes, the touch key function is shielded, otherwise, the key instruction corresponding to the capacitive touch key can be responded.
The embodiment of the invention can further reduce the false triggering condition of the touch key on the absorbed capacitive touch equipment caused by the pressing action of the external equipment when the external equipment is connected with the capacitive touch equipment through the magnetic attraction contact, and can improve the detection precision.
In a specific embodiment, "detecting whether capacitance values corresponding to a plurality of capacitive touch keys increase at the same time" further includes:
if the capacitance values corresponding to the plurality of capacitive touch keys are not detected to be increased at the same time, whether the capacitance values corresponding to the capacitive touch keys are kept unchanged or not is detected within a preset time, and if yes, the touch key function is shielded.
If not, executing the step of detecting whether the external equipment is connected or not.
The embodiment of the invention only responds to the releasing transient state in the action of pressing and releasing the capacitive touch key, and shows that the capacitance value corresponding to the capacitive touch key is increased and then is restored to the original value in a short time. And the external equipment is not loosened by pressing after adsorbing the capacitive touch equipment through the magnetic attraction contact, and the capacitance value corresponding to the capacitive touch key is kept unchanged. Therefore, in the embodiment of the present invention, if it is not detected that the capacitance values corresponding to the plurality of touch keys are increased at the same time, in order to further exclude external interference factors and prevent erroneous determination, it may be detected whether the capacitance values corresponding to the capacitive touch keys remain unchanged within a preset time, and if so, no response is made to shield the touch key function. If not, detecting whether the capacitive touch device is connected with the external device or not through the magnetic contact of the capacitive touch device, if so, shielding the touch key function, and if not, responding to the key instruction of the corresponding capacitive touch key. Wherein the preset time is preferably 4s-6 s.
The embodiment of the invention can further reduce the false triggering condition of the touch key on the absorbed capacitive touch equipment caused by the overlapping action of the external equipment when the external equipment is connected with the capacitive touch equipment through the magnetic attraction contact, and can improve the detection precision and have stronger anti-interference capability.
Referring to fig. 3, in a specific embodiment, an infrared sensor 330 is disposed in the capacitive touch device 10, and the infrared sensor 330 is located beside the magnetic attraction contact 310 and is separated from the capacitive touch key area 340 by a preset distance;
the method further comprises the following steps:
when the fact that the infrared induction intensity sensed by the infrared sensor is larger than or equal to a preset intensity threshold value is detected within a preset detection distance, the fact that an external device approaches and a touch key function is shielded is determined; otherwise, executing the step of detecting the capacitance value corresponding to the capacitive touch key.
The number of the infrared sensors 330 is at least one. The infrared sensor 330 is disposed in the capacitive touch device 10, and when there is an object on the surface of the capacitive touch device and the object is closer to the surface, the sensed infrared sensing intensity is stronger, so that the threshold value is reasonably set, and the capacitive touch device 10 is triggered to shield the touch key function when the external object is close to the preset detection distance. Wherein the preset detection distance is preferably 4cm-6 cm. When the capacitive touch device 10 is attracted to the external device through the magnetic attraction contact 310, the attracted capacitive touch device 10 gradually approaches the external device 20 and detects that the infrared induction intensity is greater than or equal to the preset intensity threshold within the preset detection distance, it is determined that the external device 20 approaches and shields the touch key function. For example, when the infrared induction intensity is greater than or equal to the preset threshold, the flag position 1 indicates that the external device 20 is determined to approach to shield the touch key function, a subsequent detection step of a capacitance value corresponding to the capacitive touch key is not required, otherwise, a subsequent related detection step is performed, so that misjudgment caused by external factors is prevented. The infrared sensor 330 is located beside the magnetic attraction contact 310 and separated from the capacitive touch key area 340 by a preset distance to avoid the normal operation range of the human hand, or the infrared induction intensity caused by the operation of the human hand on the touch key area 340 is not enough to reach a preset intensity threshold, so as to realize effective distinction.
The detection method of the embodiment of the invention is simple and easy to realize, can reduce program redundancy, and can effectively and quickly judge whether the external equipment 20 is to be adsorbed by the magnetic attraction contact of the capacitive touch equipment 10, thereby shielding the touch key function in time, saving an additional detection process and improving the detection sensitivity. Meanwhile, when the external device 20 is connected with the absorbed capacitive touch device 10 through a contact, false triggering response is prevented.
To further explain the shielding method of the touch key according to the embodiment of the present invention, as shown in fig. 2, when the capacitive touch key is connected to the external device through the magnetic attraction contact, in order to prevent the capacitive touch key on the capacitive touch device from being pressed by the external device and causing an incorrect response to affect the normal use, the method may be performed according to the following steps:
step S2: and detecting whether the infrared induction intensity sensed by the infrared inductor is greater than or equal to a preset intensity threshold value within a preset detection distance, if not, entering step S4, and if so, entering step S14.
Step S4: detecting whether the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value, if not, entering step S14, and if so, entering step S6.
Step S6: whether the capacitance values corresponding to the plurality of capacitive touch keys are increased at the same time is detected, if so, the step S14 is executed, and if not, the step S8 is executed.
Step S8: and detecting whether the capacitance value corresponding to the capacitive touch key is kept unchanged within a preset time, if so, entering step S14, and otherwise, entering step S10.
Step S10: whether the capacitive touch device is connected with an external device or not is detected through the magnetic contact of the capacitive touch device, if so, the step S14 is executed, and if not, the step S12 is executed.
Step S12: and executing the key instruction.
Step S14: and shielding the touch key function.
The shielding method of the touch key provided by the embodiment of the invention can be combined with various judgment factors to prevent misjudgment, so that when the capacitive touch equipment is in contact connection with the external equipment through the magnetic attraction contact, misoperations caused by external equipment and other objects are filtered, and meanwhile, the condition that the normal use of the equipment is influenced due to the fact that the capacitive touch equipment is mistakenly triggered because of being adsorbed and attached by the external equipment can be avoided. The invention can meet the operation and use requirements of the capacitive touch equipment for connecting the external equipment through the magnetic attraction contact, so that the capacitive touch equipment and the external equipment can realize stable information interaction transmission with strong anti-interference capability after being connected through the magnetic attraction contact.
Referring to fig. 4, in an embodiment, the present invention further provides a shielding apparatus for a touch key, which is applied to a touch device connected to an external device through a magnetic contact;
the device comprises:
the first key detection module 410 is configured to detect whether a capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value.
The shielding module 420 is configured to shield the touch key function of the capacitive touch device if the capacitance value corresponding to the capacitive touch key is not increased to a preset capacitance value.
The first connection detection module 430 is configured to detect whether a connection with an external device exists through a magnetic attraction contact of the capacitive touch device if a capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value.
The shielding module 420 is further configured to shield the touch key function if the magnetic attraction contact of the capacitive touch device detects that the capacitive touch device is connected to an external device.
In a specific embodiment, the method further comprises the following steps:
and the receiving module is used for receiving a user key instruction acquired by the external equipment connected with the magnetic attraction contact.
In a specific embodiment, the method further comprises the following steps:
the second key detection module is used for detecting whether the capacitance values corresponding to the plurality of capacitive touch keys are increased at the same time or not if the capacitance values corresponding to the capacitive touch keys are increased to the preset capacitance values.
And the shielding module is also used for shielding the touch key function if the capacitance values corresponding to the plurality of capacitive touch keys are detected to be increased at the same time.
And the second connection detection module is used for detecting whether the capacitive touch device is connected with the external device or not through the magnetic attraction contact of the capacitive touch device if the capacitance values corresponding to the plurality of capacitive touch keys are not increased at the same time.
In a specific embodiment, the method further comprises the following steps:
the third key detection module is configured to detect whether capacitance values corresponding to the plurality of capacitive touch keys are increased at the same time if the capacitance values corresponding to the capacitive touch keys are increased to a preset capacitance value.
And the shielding module is further used for shielding the touch key function if the capacitance values corresponding to the plurality of capacitive touch keys are not detected to be increased at the same time.
And the third connection detection module is used for detecting whether the connection with the external equipment exists or not through the magnetic attraction contact of the capacitive touch equipment if the capacitance values corresponding to the plurality of capacitive touch keys are increased at the same time.
In a specific embodiment, an infrared sensor is disposed in the capacitive touch device, and the infrared sensor is located beside the magnetic attraction contact and separated from the capacitive touch key area by a preset distance.
Further comprising: the infrared induction detection module is used for determining that the external equipment approaches and shields the touch key function when detecting that the infrared induction intensity induced by the infrared inductor is greater than or equal to a preset intensity threshold value within a preset detection distance; otherwise, executing the step of detecting the capacitance value corresponding to the capacitive touch key.
For specific definition of the shielding device for the touch key, reference may be made to the above definition of the shielding method for the touch key, and details are not described here. All or part of each module in the shielding device of the touch key can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Referring to fig. 5, in one embodiment, the present invention further provides a capacitive touch device for connecting with an external device through a magnetic attraction contact 510.
The capacitive touch device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the shielding method of the touch keys when executing the computer program.
It should be noted that, for specific limitations of the shielding method for the touch key in the embodiments of the present invention, reference may be made to limitations of the shielding method for the touch key in the foregoing embodiments, and details are not described herein again.
Referring to fig. 5, in an embodiment, the method further includes an infrared sensor 530 disposed beside the magnetic attraction contact 510 and spaced apart from the capacitive touch key region 520 by a predetermined distance, and the processor implements the step of the touch key shielding method when executing the computer program.
It should be noted that, for specific limitations of the infrared sensor 530 in the embodiment of the present invention, reference may be made to the specific limitations of the infrared sensor in the capacitive touch device in the above embodiments, and details are not repeated herein.
The capacitive touch device provided by the embodiment of the invention has a simple structure, is easy to realize, and can effectively and quickly judge whether the external device is to be adsorbed by the magnetic attraction contact of the capacitive touch device through the infrared sensor 530, so that the touch key function is shielded in time, an additional detection process is omitted, and the detection sensitivity is improved. Meanwhile, when the external equipment and the adsorbed capacitive touch equipment are propped through the contact to be attracted, false triggering response is prevented.
In a specific embodiment, the capacitive touch device is a sound box, a desk lamp, a lamp control switch, or the like.
In one embodiment, the present invention also provides a computer readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method for shielding touch keys.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention 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.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.
Claims (10)
1. A shielding method of a touch key is characterized in that the shielding method is applied to capacitive touch equipment which is connected with external equipment through a magnetic contact; the method comprises the following steps:
detecting whether a capacitance value corresponding to a capacitive touch key is increased to a preset capacitance value, and if not, shielding the touch key function of the capacitive touch equipment;
if yes, detecting whether the capacitive touch equipment is connected with the external equipment or not through a magnetic attraction contact of the capacitive touch equipment, and if yes, shielding the touch key function.
2. The method for shielding touch keys according to claim 1, wherein shielding the touch key functions of the capacitive touch device comprises:
and receiving a user key instruction acquired by the external equipment connected through the magnetic attraction contact.
3. The method for shielding touch keys according to claim 1, wherein the step of detecting whether the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value further comprises:
if the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value, detecting whether the capacitance values corresponding to a plurality of capacitive touch keys are increased at the same time, and if so, shielding the touch key function;
if not, executing the step of detecting whether the external equipment is connected or not.
4. The method for shielding touch keys according to claim 3, wherein the step of detecting whether capacitance values corresponding to a plurality of capacitive touch keys are increased at the same time further comprises:
if the capacitance values corresponding to the plurality of capacitive touch keys are not detected to be increased at the same time, detecting whether the capacitance values corresponding to the capacitive touch keys are kept unchanged within a preset time, and if so, shielding the touch key function;
if not, executing the step of detecting whether the external equipment is connected or not.
5. The method for shielding the touch key according to any one of claims 1 to 4, wherein an infrared sensor is disposed in the capacitive touch device, and the infrared sensor is located beside the magnetic attraction contact and is separated from the capacitive touch key region by a preset distance;
the method further comprises the following steps:
when the fact that the infrared induction intensity sensed by the infrared inductor is larger than or equal to a preset intensity threshold value is detected within a preset detection distance, it is determined that the external equipment approaches and the touch key function is shielded; otherwise, executing the step of detecting the capacitance value corresponding to the capacitive touch key.
6. A shielding device of a touch key is characterized in that the shielding device is applied to a capacitive touch device connected with an external device through a magnetic contact;
the device comprises:
the first key detection module is used for detecting whether the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value or not;
the shielding module is used for shielding the touch key function of the capacitive touch equipment if the capacitance value corresponding to the capacitive touch key is not increased to a preset capacitance value;
the first connection detection module is used for detecting whether the capacitive touch key is connected with the external equipment or not through a magnetic contact of the capacitive touch equipment if the capacitance value corresponding to the capacitive touch key is increased to a preset capacitance value;
the shielding module is further used for shielding the touch key function if the magnetic attraction contact of the capacitive touch equipment detects that the capacitive touch equipment is connected with the external equipment.
7. A capacitive touch device is characterized in that the capacitive touch device is used for being connected with an external device through a magnetic contact;
the capacitive touch device comprises a memory storing a computer program and a processor implementing the steps of the method according to any one of claims 1 to 4 when the processor executes the computer program.
8. The capacitive touch device of claim 7, further comprising an infrared sensor disposed beside the magnetic attraction point and spaced apart from the capacitive touch key region by a predetermined distance, wherein the processor implements the steps of the method of claim 5 when executing the computer program.
9. The capacitive touch device of claim 7, wherein the capacitive touch device is a sound box, a desk lamp, or a light-operated switch.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010256673.9A CN111309188B (en) | 2020-04-02 | 2020-04-02 | Touch key shielding method and device and capacitive touch equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010256673.9A CN111309188B (en) | 2020-04-02 | 2020-04-02 | Touch key shielding method and device and capacitive touch equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111309188A true CN111309188A (en) | 2020-06-19 |
CN111309188B CN111309188B (en) | 2023-11-17 |
Family
ID=71146151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010256673.9A Active CN111309188B (en) | 2020-04-02 | 2020-04-02 | Touch key shielding method and device and capacitive touch equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111309188B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778368A (en) * | 2021-08-31 | 2021-12-10 | 维沃移动通信有限公司 | Base equipment, control method and device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1797305A (en) * | 2004-11-23 | 2006-07-05 | 微软公司 | Reducing accidental touch-sensitive device activation |
US20140368455A1 (en) * | 2011-03-15 | 2014-12-18 | Logitech Europe Sa | Control method for a function of a touchpad |
CN104364745A (en) * | 2012-06-15 | 2015-02-18 | 三星电子株式会社 | Apparatus and method for proximity touch sensing |
CN104363012A (en) * | 2014-10-16 | 2015-02-18 | 北京集创北方科技有限公司 | Portable terminal and implementing method for pressing key of side of capacitor type touch screen by touching |
CN105045422A (en) * | 2015-06-29 | 2015-11-11 | 魅族科技(中国)有限公司 | Control method of button device, button device and terminal |
CN105320386A (en) * | 2014-07-31 | 2016-02-10 | 惠普发展公司,有限责任合伙企业 | Controlling forms of input of a computing device |
US20160202840A1 (en) * | 2015-01-09 | 2016-07-14 | Canon Kabushiki Kaisha | Electronic device, control method for the same, and non-transitory computer-readable storage medium |
CN106095282A (en) * | 2016-05-31 | 2016-11-09 | 珠海市魅族科技有限公司 | The touch operation method of key device, key device and terminal |
CN108540670A (en) * | 2018-04-22 | 2018-09-14 | 孝感峰创智能科技有限公司 | A kind of electronic equipment control method, electronic equipment and computer readable storage medium |
CN110703947A (en) * | 2019-09-30 | 2020-01-17 | Oppo(重庆)智能科技有限公司 | Touch screen correction method and device, electronic equipment and storage medium |
-
2020
- 2020-04-02 CN CN202010256673.9A patent/CN111309188B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1797305A (en) * | 2004-11-23 | 2006-07-05 | 微软公司 | Reducing accidental touch-sensitive device activation |
US20140368455A1 (en) * | 2011-03-15 | 2014-12-18 | Logitech Europe Sa | Control method for a function of a touchpad |
CN104364745A (en) * | 2012-06-15 | 2015-02-18 | 三星电子株式会社 | Apparatus and method for proximity touch sensing |
CN105320386A (en) * | 2014-07-31 | 2016-02-10 | 惠普发展公司,有限责任合伙企业 | Controlling forms of input of a computing device |
CN104363012A (en) * | 2014-10-16 | 2015-02-18 | 北京集创北方科技有限公司 | Portable terminal and implementing method for pressing key of side of capacitor type touch screen by touching |
US20160202840A1 (en) * | 2015-01-09 | 2016-07-14 | Canon Kabushiki Kaisha | Electronic device, control method for the same, and non-transitory computer-readable storage medium |
CN105045422A (en) * | 2015-06-29 | 2015-11-11 | 魅族科技(中国)有限公司 | Control method of button device, button device and terminal |
CN106095282A (en) * | 2016-05-31 | 2016-11-09 | 珠海市魅族科技有限公司 | The touch operation method of key device, key device and terminal |
CN108540670A (en) * | 2018-04-22 | 2018-09-14 | 孝感峰创智能科技有限公司 | A kind of electronic equipment control method, electronic equipment and computer readable storage medium |
CN110703947A (en) * | 2019-09-30 | 2020-01-17 | Oppo(重庆)智能科技有限公司 | Touch screen correction method and device, electronic equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778368A (en) * | 2021-08-31 | 2021-12-10 | 维沃移动通信有限公司 | Base equipment, control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111309188B (en) | 2023-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9116571B2 (en) | Method and system of data input for an electronic device equipped with a touch screen | |
US9274652B2 (en) | Apparatus, method, and medium for sensing movement of fingers using multi-touch sensor array | |
WO2018107849A1 (en) | Method for controlling touch operation on mobile terminal, and related product | |
EP1828877B1 (en) | Methods and systems for detecting noise in a position sensor using minor shifts in sensing frequency | |
WO2018107903A1 (en) | Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium | |
EP3552075A1 (en) | Apparatus and method of adjusting power mode of a display of a device | |
CN103324373A (en) | Method for preventing conductive liquid from causing misoperation of touch screen | |
CN105487809A (en) | Terminal control method and device | |
CN111488076A (en) | False touch prevention method, device, equipment and storage medium | |
US8294601B2 (en) | Detection of intended key activation on a mobile device | |
CN105245650A (en) | Portable electronic device and method for preventing mistakenly touching touch screen edge | |
CN106411310B (en) | Touch key, response method and system | |
CN106502470A (en) | Prevent method, device and the terminal of touch key-press false triggering | |
CN106681636A (en) | Method and device capable of preventing wrong touch, and mobile terminal | |
CN110794976A (en) | Touch device and method | |
CN111309188B (en) | Touch key shielding method and device and capacitive touch equipment | |
KR20170013388A (en) | Terminal, protective case and induction method | |
CN106468973B (en) | Touch event processing method and device | |
KR101952342B1 (en) | Off-center sensor target region | |
KR102213714B1 (en) | Touch sensing system to prevent malfunctions | |
CN106775406A (en) | A kind of false-touch prevention control method of mobile terminal touch screen, device and mobile terminal | |
CN103218083A (en) | Touch screen false point and false identification prevention method | |
CN105487697B (en) | Method and device for preventing touch screen key failure | |
US20160364066A1 (en) | Information Processing Method and Electronic Device | |
CN106126099B (en) | Information processing method and electronic equipment |
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 |