CN110764650A - Key trigger detection method and electronic equipment - Google Patents

Key trigger detection method and electronic equipment Download PDF

Info

Publication number
CN110764650A
CN110764650A CN201911007727.1A CN201911007727A CN110764650A CN 110764650 A CN110764650 A CN 110764650A CN 201911007727 A CN201911007727 A CN 201911007727A CN 110764650 A CN110764650 A CN 110764650A
Authority
CN
China
Prior art keywords
key
preset
infrared
infrared ray
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911007727.1A
Other languages
Chinese (zh)
Inventor
崔浩巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911007727.1A priority Critical patent/CN110764650A/en
Publication of CN110764650A publication Critical patent/CN110764650A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

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)
  • Telephone Function (AREA)

Abstract

The invention provides a key trigger detection method and electronic equipment, and relates to the technical field of electronic equipment. The key comprises a capacitance sensing module and an infrared sensing module, and the method comprises the following steps: acquiring a capacitance change value of a key and a first infrared intensity on the key; and determining that the key is triggered under the condition that the capacitance change value is greater than a preset capacitance change threshold value and the first infrared ray intensity is greater than a preset infrared ray intensity threshold value. The key of the invention does not need to adopt a solid key, so that the electronic equipment has delicate appearance, good waterproof performance and long service life, and the key is determined to be triggered when the key is pressed and the key is pressed by a body, thereby effectively reducing the occurrence of the condition that the key is mistakenly triggered by liquid or other electric conductors and improving the experience of a user in using the key.

Description

Key trigger detection method and electronic equipment
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a key trigger detection method and an electronic device.
Background
The traditional mobile phone keys usually adopt solid keys, the solid keys have short service life, and the appearance and the waterproof performance of the mobile phone are poor due to the solid keys. With the increasing requirements of users on the performance and the appearance of the mobile phone, the traditional mobile phone keys cannot meet the requirements of users on the higher performance and the higher appearance.
In the prior art, the touch key is adopted to replace a solid key, the service life of the touch key is long, and the appearance and the waterproof performance of the mobile phone can be improved. However, the touch key in the prior art has the following defects: as long as the conductive body (for example, other parts of the body except for the finger or liquid) approaches the touch key, the touch key is triggered by mistake, so that the touch key is easy to detect by mistake.
Disclosure of Invention
The embodiment of the invention provides a key triggering detection method and electronic equipment, and aims to solve the problem that a touch key in the prior art is prone to false triggering.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a key trigger detection method, where the key includes a capacitance sensing module and an infrared sensing module, and the method includes: acquiring a capacitance change value of the key and a first infrared ray intensity on the key; and determining that the key is triggered under the condition that the capacitance change value is greater than a preset capacitance change threshold value and the first infrared ray intensity is greater than a preset infrared ray intensity threshold value.
In a second aspect, an embodiment of the present invention further provides an electronic device, where a key in the electronic device includes a capacitance sensing module and an infrared sensing module, and the electronic device further includes: the data acquisition module is used for acquiring a capacitance change value of the key and a first infrared ray intensity on the key; and the key pressing determining module is used for determining that the key is triggered under the condition that the capacitance change value is greater than a preset capacitance change threshold value and the first infrared ray intensity is greater than a preset infrared ray intensity threshold value.
In a third aspect, an embodiment of the present invention additionally provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the key trigger detection method as described above.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the key trigger detection method as described above.
In the embodiment of the invention, the key is set to comprise the capacitance sensing module and the infrared sensing module, and the key is determined to be triggered by acquiring the capacitance change value of the key and the first infrared intensity on the key, and further under the condition that the capacitance change value is greater than the preset capacitance change threshold value and the first infrared intensity is greater than the preset infrared intensity threshold value, namely under the condition that the key is pressed and a body presses the key. In the embodiment of the invention, the keys adopt the capacitance sensing module and the infrared sensing module, and the keys do not need to adopt solid keys, so that the electronic equipment has delicate appearance, good waterproof performance and long service life, and the keys are determined to be triggered only when the keys are pressed and are pressed by a body, thereby effectively reducing the occurrence of the condition that the keys are mistakenly triggered by liquid or other electric conductors, and improving the experience of users in using the keys.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a flowchart illustrating a key detection procedure according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a key detection procedure according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in a fourth embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device in a fifth embodiment of the present 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 some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The embodiment of the invention provides a key triggering detection method. The button includes electric capacity response module and infrared induction module, and wherein, electric capacity response module adopts capacitanc touch screen detection technique, and infrared induction module adopts infrared detection technique.
Referring to fig. 1, a flowchart illustrating steps of a key trigger detection method according to a first embodiment of the present invention is shown.
And step 110, acquiring a capacitance change value of the key and a first infrared intensity on the key.
Specifically, step 110 obtains a capacitance variation value of the key output by the capacitance sensing module. Specifically, step 110 obtains a first infrared intensity of the key outputted by the infrared sensing module.
And step 120, determining that the key is triggered under the condition that the capacitance change value is greater than a preset capacitance change threshold value and the first infrared ray intensity is greater than a preset infrared ray intensity threshold value.
The key is pressed under the condition that the capacitance change value is larger than a preset capacitance change threshold value, and the key is pressed by a body under the condition that the first infrared ray intensity is larger than a preset infrared ray intensity threshold value.
Specifically, the step 110 of obtaining the capacitance variation value of the key and obtaining the first infrared intensity on the key may be performed simultaneously, or the step 110 of obtaining the capacitance variation value of the key first and then obtaining the first infrared intensity on the key.
When the capacitance change value of the key is firstly obtained in the step 110 and then the first infrared ray intensity on the key is obtained, after the capacitance change value of the key is firstly obtained in the step 110, if the capacitance change value is greater than the preset capacitance change threshold value, the step 110 obtains the first infrared ray intensity on the key again, and if the first infrared ray intensity is greater than the preset infrared ray intensity threshold value, the step 120 determines that the key is triggered, so that the infrared sensing module does not need to be in a working state all the time, and the power consumption of the infrared sensing module can be reduced.
In the first embodiment of the present invention, the key is set to include a capacitance sensing module and an infrared sensing module, and the key is determined to be triggered by acquiring a capacitance change value of the key and a first infrared intensity on the key, where the capacitance change value is greater than a preset capacitance change threshold and the first infrared intensity is greater than a preset infrared intensity threshold, that is, when the key is pressed and a body presses the key. In the embodiment of the invention, the keys adopt the capacitance sensing module and the infrared sensing module, and the keys do not need to adopt solid keys, so that the electronic equipment has delicate appearance, good waterproof performance and long service life, and the keys are determined to be pressed only when being pressed and pressed by a body, so that the condition that the keys are mistakenly triggered by liquid or other electric conductors can be effectively reduced, and the experience of users in using the keys is improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a key trigger detection method according to a second embodiment of the present invention is shown. The key comprises a capacitance sensing module and an infrared sensing module, wherein the capacitance sensing module adopts a capacitive touch screen detection technology, and the infrared sensing module adopts an infrared detection technology.
Referring to fig. 2, the key trigger detection method includes the following steps:
step 210, acquiring a capacitance variation value of the key and a first infrared intensity on the key.
Specifically, the step 210 of acquiring the capacitance variation value of the key and acquiring the first infrared ray intensity on the key may be performed simultaneously.
Specifically, step 210 obtains a capacitance variation value of the key output by the capacitance sensing module. Specifically, step 210 obtains a first infrared intensity of the key output by the infrared sensing module.
Specifically, the infrared sensing module collects infrared rays on the key and determines first infrared ray intensity on the key according to the collected infrared rays.
Specifically, the capacitance sensing module detects a first capacitance value of the key before the key is pressed, detects a second capacitance value of the key when the key is pressed, and uses a difference value between the second capacitance value and the first capacitance value as a capacitance change value of the key.
Step 220, determining that the key is triggered when the capacitance change value is greater than the preset capacitance change threshold and the first infrared intensity is greater than the preset infrared intensity threshold.
The key is pressed under the condition that the capacitance change value is larger than a preset capacitance change threshold value, and the key is pressed by a body under the condition that the first infrared ray intensity is larger than a preset infrared ray intensity threshold value.
Optionally, the sensitivity of the key may be improved by decreasing the preset capacitance change threshold and/or the preset infrared intensity threshold, or may be decreased by increasing the preset capacitance change threshold and/or the preset infrared intensity threshold.
Optionally, in an embodiment of the present invention, in a case that the capacitance variation value is greater than a preset capacitance variation threshold and the first infrared intensity is greater than a preset infrared intensity threshold, the determining 220 that the key is triggered may include:
step 221, obtaining the pressing speed of the key.
Step 221 may be performed simultaneously with step 210.
In step 222, it is determined that the key is triggered when the pressing speed is less than the preset speed threshold.
In general, when a certain part of the body contacts with the key at a higher speed, the key is touched by mistake, therefore, the pressing speed of the key is obtained in step 221, and when the pressing speed is smaller than a preset speed threshold, it indicates that the body contacts with the key at a low speed and is not in quick contact, and at this time, step 222 determines that the key is triggered by the finger, so that the occurrence of the situation that the body triggers the key by mistake can be effectively reduced, and the accuracy of detecting that the key is triggered is further improved.
Alternatively, the sensitivity of the key may be increased by increasing the preset speed threshold, or may be decreased by decreasing the preset speed threshold.
Optionally, in an embodiment of the present invention, the step 221 of obtaining the pressing speed of the key may include:
step 223, determining a first time when the infrared intensity at the preset distance on the key changes.
Specifically, step 223 may detect the infrared intensity at the preset distance on the key through the infrared sensing module, and when the infrared sensing module detects that the infrared intensity at the preset distance on the key is not equal to zero, step 223 determines that the infrared intensity at the preset distance on the key changes.
Specifically, the preset distance may be determined according to parameters such as a detection distance of the infrared sensing module and a trigger sensitivity of the key.
Step 224 determines a second time to acquire the first infrared intensity.
And step 225, determining the pressing speed of the key according to the first time, the second time and the preset distance.
Specifically, step 225 may calculate the pressing speed of the key according to the following calculation formula:
v=△d/(t2-t1)
△ d is a predetermined distance, t2 is a second time, and t1 is a first time.
In the second embodiment of the present invention, the key is set to include a capacitance sensing module and an infrared sensing module, and the key is determined to be triggered by obtaining the capacitance change value of the key, the first infrared intensity on the key, and the pressing speed of the key, when the capacitance change value is greater than the preset capacitance change threshold, the first infrared intensity is greater than the preset infrared intensity threshold, and the pressing speed is less than the preset speed threshold, that is, when the key is pressed and a finger presses the key. In the embodiment of the invention, the keys adopt the capacitance sensing module and the infrared sensing module, and the keys do not need to adopt solid keys, so that the electronic equipment has delicate appearance, good waterproof performance and long service life, and the keys are determined to be triggered only when the keys are pressed and pressed by fingers, so that the condition that the keys are mistakenly triggered by liquid or other parts of a body except the fingers or other electric conductors can be effectively reduced, the sensitivity of the keys is convenient to improve (for example, the preset capacitance change threshold value and the preset infrared intensity threshold value are reduced, and the preset speed threshold value is increased), and the experience of users in using the keys is improved.
EXAMPLE III
An electronic device provided by the third embodiment of the invention is described in detail.
Referring to fig. 3, a schematic structural diagram of an electronic device in a third embodiment of the present invention is shown. The key in the electronic equipment of the embodiment of the invention comprises a capacitance sensing module and an infrared sensing module, and the electronic equipment further comprises:
the data obtaining module 310 is configured to obtain a capacitance variation value of the key and a first infrared intensity on the key.
The key triggering determination module 320 is configured to determine that the key is triggered when the capacitance change value is greater than the preset capacitance change threshold and the first infrared intensity is greater than the preset infrared intensity threshold.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
In the third embodiment of the present invention, the key is set to include a capacitance sensing module and an infrared sensing module, and the key is determined to be triggered by acquiring the capacitance change value of the key and the first infrared intensity on the key, and further under the condition that the capacitance change value is greater than the preset capacitance change threshold and the first infrared intensity is greater than the preset infrared intensity threshold, that is, under the condition that the key is pressed and a body presses the key. In the embodiment of the invention, the keys adopt the capacitance sensing module and the infrared sensing module, and the keys do not need to adopt solid keys, so that the electronic equipment has delicate appearance, good waterproof performance and long service life, and the keys are determined to be pressed only when being pressed and pressed by a body, so that the condition that the keys are mistakenly triggered by liquid or other electric conductors can be effectively reduced, and the experience of users in using the keys is improved.
Example four
An electronic device provided by the fourth embodiment of the present invention is described in detail.
Referring to fig. 4, a schematic structural diagram of an electronic device in a fourth embodiment of the present invention is shown. The key in the electronic equipment of the embodiment of the invention comprises a capacitance sensing module and an infrared sensing module, and the electronic equipment further comprises:
the data acquisition module 410 is used for acquiring a capacitance change value of the key and a first infrared ray intensity on the key;
the key triggering determination module 420 is configured to determine that the key is triggered when the capacitance change value is greater than the preset capacitance change threshold and the first infrared intensity is greater than the preset infrared intensity threshold.
Optionally, in an embodiment of the present invention, in a case that the capacitance variation value is greater than a preset capacitance variation threshold and the first infrared ray intensity is greater than a preset infrared ray intensity threshold, the key triggering determination module 420 may include:
the speed obtaining submodule 421 is configured to obtain a pressing speed of the key.
And the key triggering determination submodule 422 is used for determining that the key is triggered under the condition that the pressing speed is less than the preset speed threshold.
Optionally, in an embodiment of the present invention, the speed obtaining sub-module 421 includes:
the first time determining unit 423 is configured to determine a first time when the infrared intensity at the preset distance on the key changes.
A second time determination unit 424 for determining a second time for acquiring the first infrared ray intensity.
And a speed determining unit 425 for determining a pressing speed of the key according to the first time, the second time and the preset distance.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 2, and is not described here again to avoid repetition.
In the fourth embodiment of the present invention, the key is set to include a capacitance sensing module and an infrared sensing module, and the key is determined to be triggered by acquiring the capacitance change value of the key, the first infrared intensity on the key, and the pressing speed of the key, where the capacitance change value is greater than the preset capacitance change threshold, the first infrared intensity is greater than the preset infrared intensity threshold, and the pressing speed is less than the preset speed threshold, that is, the key is pressed and a finger presses the key. In the embodiment of the invention, the keys adopt the capacitance sensing module and the infrared sensing module, and the keys do not need to adopt solid keys, so that the electronic equipment has delicate appearance, good waterproof performance and long service life, and the keys are determined to be triggered only when the keys are pressed and pressed by fingers, so that the condition that the keys are mistakenly triggered by liquid or other parts of a body except the fingers or other electric conductors can be effectively reduced, the sensitivity of the keys is convenient to improve (for example, the preset capacitance change threshold value and the preset infrared intensity threshold value are reduced, and the preset speed threshold value is increased), and the experience of users in using the keys is improved.
EXAMPLE five
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 510, configured to obtain a capacitance change value of the key and a first infrared intensity on the key; and determining that the key is triggered under the condition that the capacitance change value is greater than a preset capacitance change threshold value and the first infrared ray intensity is greater than a preset infrared ray intensity threshold value.
In the embodiment of the invention, the key is set to comprise the capacitance sensing module and the infrared sensing module, and the key is determined to be triggered by acquiring the capacitance change value of the key and the first infrared intensity on the key, and further under the condition that the capacitance change value is greater than the preset capacitance change threshold value and the first infrared intensity is greater than the preset infrared intensity threshold value, namely under the condition that the key is pressed and a body presses the key. In the embodiment of the invention, the keys adopt the capacitance sensing module and the infrared sensing module, and the keys do not need to adopt solid keys, so that the electronic equipment has delicate appearance, good waterproof performance and long service life, and the keys are determined to be pressed only when being pressed and pressed by a body, so that the condition that the keys are mistakenly triggered by liquid or other electric conductors can be effectively reduced, and the experience of users in using the keys is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, including: the processor 510, the memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program, when executed by the processor 510, implements each process of the above-described embodiment of the key trigger detection method, and can achieve the same technical effect, and are not described herein again to avoid repetition.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program realizes the processes of the embodiment of the key trigger detection method, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units 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 may 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 personal computer, a server, or a network device) 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: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
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. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A key triggering detection method is characterized in that the key comprises a capacitance sensing module and an infrared sensing module, and the method comprises the following steps:
acquiring a capacitance change value of the key and a first infrared ray intensity on the key;
and determining that the key is triggered under the condition that the capacitance change value is greater than a preset capacitance change threshold value and the first infrared ray intensity is greater than a preset infrared ray intensity threshold value.
2. The method of claim 1, wherein the determining that the key is triggered if the capacitance change value is greater than a preset capacitance change threshold and the first infrared intensity is greater than a preset infrared intensity threshold comprises:
acquiring the pressing speed of the key;
and determining that the key is triggered under the condition that the pressing speed is less than a preset speed threshold value.
3. The method of claim 2, wherein the obtaining the pressing speed of the key comprises:
determining the first time when the infrared ray intensity at the preset distance on the key changes;
determining a second time for acquiring the first infrared ray intensity;
and determining the pressing speed of the key according to the first time, the second time and the preset distance.
4. The electronic equipment is characterized in that the keys in the electronic equipment comprise a capacitance sensing module and an infrared sensing module, and the electronic equipment further comprises:
the data acquisition module is used for acquiring a capacitance change value of the key and a first infrared ray intensity on the key;
and the key triggering determination module is used for determining that the key is triggered under the condition that the capacitance change value is greater than a preset capacitance change threshold value and the first infrared ray intensity is greater than a preset infrared ray intensity threshold value.
5. The electronic device according to claim 4, wherein in a case that the capacitance variation value is greater than a preset capacitance variation threshold and the first infrared ray intensity is greater than a preset infrared ray intensity threshold, the key triggering determination module includes:
the speed acquisition submodule is used for acquiring the pressing speed of the key;
and the key triggering determination submodule is used for determining that the key is triggered under the condition that the pressing speed is less than a preset speed threshold.
6. The electronic device of claim 5, wherein the speed acquisition sub-module comprises:
the first time determining unit is used for determining the first time when the infrared ray intensity at the preset distance on the key changes;
a second time determination unit for determining a second time for acquiring the first infrared ray intensity;
and the speed determining unit is used for determining the pressing speed of the key according to the first time, the second time and the preset distance.
7. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the key trigger detection method according to any of claims 1 to 3.
8. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the key trigger detection method according to any one of claims 1 to 3.
CN201911007727.1A 2019-10-22 2019-10-22 Key trigger detection method and electronic equipment Pending CN110764650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911007727.1A CN110764650A (en) 2019-10-22 2019-10-22 Key trigger detection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911007727.1A CN110764650A (en) 2019-10-22 2019-10-22 Key trigger detection method and electronic equipment

Publications (1)

Publication Number Publication Date
CN110764650A true CN110764650A (en) 2020-02-07

Family

ID=69332845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911007727.1A Pending CN110764650A (en) 2019-10-22 2019-10-22 Key trigger detection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110764650A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111337984A (en) * 2020-04-23 2020-06-26 维沃移动通信有限公司 Electronic device
CN112260676A (en) * 2020-10-20 2021-01-22 海信(山东)冰箱有限公司 Capacitive key and touch response method of capacitive key

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423661A (en) * 2013-08-29 2015-03-18 上海斐讯数据通信技术有限公司 Mobile terminal and method for preventing wrong touch on touch screen
CN105824479A (en) * 2015-08-28 2016-08-03 维沃移动通信有限公司 Terminal touch button implementation method and terminal
CN106452413A (en) * 2016-09-30 2017-02-22 广东美的制冷设备有限公司 Method and device of preventing key from being triggered mistakenly
CN106775322A (en) * 2016-12-23 2017-05-31 维沃移动通信有限公司 A kind of method and mobile terminal for preventing virtual key false triggering
US20170185231A1 (en) * 2015-12-28 2017-06-29 Ronald Paul Russ System and method of determining a touch input for selecting a feature on a touch display

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423661A (en) * 2013-08-29 2015-03-18 上海斐讯数据通信技术有限公司 Mobile terminal and method for preventing wrong touch on touch screen
CN105824479A (en) * 2015-08-28 2016-08-03 维沃移动通信有限公司 Terminal touch button implementation method and terminal
US20170185231A1 (en) * 2015-12-28 2017-06-29 Ronald Paul Russ System and method of determining a touch input for selecting a feature on a touch display
CN106452413A (en) * 2016-09-30 2017-02-22 广东美的制冷设备有限公司 Method and device of preventing key from being triggered mistakenly
CN106775322A (en) * 2016-12-23 2017-05-31 维沃移动通信有限公司 A kind of method and mobile terminal for preventing virtual key false triggering

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111337984A (en) * 2020-04-23 2020-06-26 维沃移动通信有限公司 Electronic device
CN112260676A (en) * 2020-10-20 2021-01-22 海信(山东)冰箱有限公司 Capacitive key and touch response method of capacitive key

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN108279948B (en) Application program starting method and mobile terminal
CN108008859B (en) Screen control method and mobile terminal
CN110531915B (en) Screen operation method and terminal equipment
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN107728923B (en) Operation processing method and mobile terminal
CN111049510B (en) Touch key, control method and electronic equipment
CN108958593B (en) Method for determining communication object and mobile terminal
CN110442261B (en) Electronic equipment and touch operation detection method thereof
CN107895143A (en) A kind of finger print information processing method, mobile terminal and computer-readable recording medium
CN109814799A (en) Screen response control mehtod and terminal device
CN111443815A (en) Vibration reminding method and electronic equipment
CN111246061B (en) Mobile terminal, method for detecting shooting mode and storage medium
CN107066090B (en) Method for controlling fingerprint identification module and mobile terminal
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN108388459B (en) Message display processing method and mobile terminal
CN111142618A (en) Method for detecting folding angle and electronic equipment
CN108170310B (en) Touch screen control method and mobile terminal
CN110764650A (en) Key trigger detection method and electronic equipment
CN109327605B (en) Display control method and device and mobile terminal
CN109240531B (en) Touch data sampling compensation method and device, mobile terminal and storage medium
CN108958603B (en) Operation mode control method and mobile terminal
CN108897467B (en) Display control method and terminal 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207