CN112379797A - Key touch method and device, touch equipment and readable storage medium - Google Patents

Key touch method and device, touch equipment and readable storage medium Download PDF

Info

Publication number
CN112379797A
CN112379797A CN202011391532.4A CN202011391532A CN112379797A CN 112379797 A CN112379797 A CN 112379797A CN 202011391532 A CN202011391532 A CN 202011391532A CN 112379797 A CN112379797 A CN 112379797A
Authority
CN
China
Prior art keywords
touch
key
light wave
pulse signal
touch key
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
CN202011391532.4A
Other languages
Chinese (zh)
Inventor
曾鑫
赵飞
陆小松
蒲天发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Thredim Photoelectric Co ltd
Original Assignee
Jiangsu Thredim Photoelectric 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 Jiangsu Thredim Photoelectric Co ltd filed Critical Jiangsu Thredim Photoelectric Co ltd
Priority to CN202011391532.4A priority Critical patent/CN112379797A/en
Publication of CN112379797A publication Critical patent/CN112379797A/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/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The application provides a key touch method and device, touch equipment and a readable storage medium. The key touch method is applied to a control system of a touch key, the touch key is arranged below an opening arranged on a metal cover plate, and the touch key comprises: a lightwave receiving unit and a lightwave transmitting unit, the method comprising: controlling the light wave emission unit to emit light waves; when the light wave received by the light wave receiving unit is obtained, judging whether touch operation of a touch key exists at present; and when the current touch operation of the touch key is determined, executing the operation corresponding to the function of the touch key. The method aims at the touch equipment comprising the metal cover plate, and touch effectiveness of the touch key is guaranteed.

Description

Key touch method and device, touch equipment and readable storage medium
Technical Field
The application relates to the technical field of key control, in particular to a key touch method and device, touch equipment and a readable storage medium.
Background
The key interaction is one of the commonly used man-machine interaction modes, and a user can select and set the functions of the equipment through keys, wherein the keys comprise mechanical keys, touch keys and the like. The touch key includes a capacitive touch manner.
For the product with the metal key cover plate, the metal cover plate has a shielding effect, so that when the capacitive touch key is attached to the front cover plate, the touch signal is shielded, and the capacitive touch key is not effective. If the capacitive touch is required to be touched, the metal cover plate needs to be hollowed out, so that the capacitive touch keys are completely exposed, and the whole appearance of the product is affected by the large-area hollowing.
In addition, since capacitive touch detects touch by detecting a change in current, when a user's hand is dry, a phenomenon of touch invalidation occurs.
Disclosure of Invention
An object of the embodiments of the present application is to provide a key touch method and apparatus, a touch device, and a readable storage medium, which ensure the touch effectiveness of a touch key for a touch device including a metal cover plate.
In a first aspect, an embodiment of the present application provides a key touch method, which is applied to a control system of a touch key, where the touch key is disposed below an opening disposed on a metal cover plate, and the touch key includes: a lightwave receiving unit and a lightwave transmitting unit, the method comprising: controlling the light wave emission unit to emit light waves; when the light wave received by the light wave receiving unit is obtained, judging whether touch operation of a touch key exists at present; and when the current touch operation of the touch key is determined, executing the operation corresponding to the function of the touch key.
In the embodiment of the application, compared with the prior art, the touch key is arranged below the opening formed in the metal cover plate, so that the appearance of the metal cover plate is not affected. The touch key comprises a light wave receiving unit and a light wave transmitting unit, the light wave transmitting unit is controlled to transmit light waves through the light wave receiving unit and the light wave transmitting unit, when the light waves received by the light wave receiving unit are obtained, the transmitted light waves are reflected due to the shielding effect brought by the touch operation of a user, and at the moment, whether the touch operation exists at present can be judged according to the reflected light waves. Compared with capacitive touch, the scheme provided by the application avoids the problem of touch failure caused by the fact that the fingers of the user are dry, and therefore the effectiveness of touch operation of the user is improved.
As a possible implementation manner, the number of the touch keys is multiple, and the controlling the light wave emitting unit to emit the light wave includes: generating a first pulse signal corresponding to each touch key according to a preset code; the preset codes corresponding to different touch keys are different; and converting the first pulse signal into light waves, and transmitting the light waves through the light wave transmitting units of the touch keys.
In the embodiment of the application, when the number of the touch keys is multiple, the pulse signals are generated through different codes, and then the pulse signals are converted into light waves, so that the light waves of the touch keys are emitted.
As a possible implementation manner, the determining whether a touch operation of a touch key exists currently when the light wave received by the light wave receiving unit is acquired includes: when light waves received by a light wave receiving unit of any touch key are acquired, the received light waves are converted into second pulse signals; and judging whether touch operation of the corresponding touch key exists at present according to the first pulse signal and/or the second pulse signal corresponding to any touch key.
In the embodiment of the application, when the light wave received by the light wave receiving unit of any touch key is obtained, the light wave is converted into the second pulse signal, and then accurate judgment of touch operation is performed according to the first pulse signal and/or the second pulse signal.
As a possible implementation manner, the determining whether there is a touch operation of a corresponding touch key according to the first pulse signal and/or the second pulse signal corresponding to any touch key includes: judging whether the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key and the receiving time of the received light wave is within a preset time range or not; and if the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key and the receiving time of the received light wave is within a preset time range, determining that the touch operation of the corresponding touch key is performed currently.
In the embodiment of the present application, when the touch operation is determined according to the first pulse signal corresponding to the transmitting light wave and the second pulse signal corresponding to the receiving light wave, the interference event is eliminated through the determination of the time interval (for example, if the interval time is too long, the time for the reflected light wave to reach the light wave receiving unit is longer, the distance between the finger of the user and the metal cover plate is longer, and when the distance is too far, the interference event generated by the non-touch operation can be determined), so that the accuracy of the touch operation determination is improved.
As a possible implementation manner, the determining whether there is a touch operation of a corresponding touch key according to the first pulse signal and/or the second pulse signal corresponding to any touch key includes: analyzing the second pulse signal to obtain a code corresponding to the second pulse signal; judging whether a code corresponding to the second pulse signal is consistent with a code preset by any touch key; and if the code corresponding to the second pulse signal is consistent with the preset code of any touch key, determining that the touch operation of the corresponding touch key exists currently.
In the embodiment of the application, when the touch operation is determined according to the second pulse signal corresponding to the received light wave, through comparison of the codes, if the code of the pulse signal corresponding to the received light wave is inconsistent with the preset code, the light wave may be a light wave (such as a remote controller, a laser pen, and the like) emitted by other equipment, but not a light wave reflected by a user during the touch operation, so that elimination of an interference event is realized, and accuracy of touch operation determination is improved.
As a possible implementation manner, the determining whether there is a touch operation of a corresponding touch key according to the first pulse signal and/or the second pulse signal corresponding to any touch key includes: judging whether the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key and the receiving time of the received light wave is within a preset time range or not; if the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key and the receiving time of the received light wave is within a preset time range, analyzing the second pulse signal to obtain a code corresponding to the second pulse signal; judging whether a code corresponding to the second pulse signal is consistent with a code preset by any touch key; and if the code corresponding to the second pulse signal is consistent with the preset code, determining that the touch operation of the corresponding touch key exists currently.
In the embodiment of the application, when the first pulse signal and the second pulse signal are combined for determination, it is determined whether the interference event corresponds to the light wave sent by the other device or not by the second pulse signal, and then it is determined whether the interference event is generated by the misoperation or not by combining the first pulse signal and the second pulse signal, so that determination of various interference events is achieved, and more accurate touch operation determination is realized.
As a possible implementation manner, the number of the touch keys is multiple, and when it is determined that there is a touch operation of a touch key at present, executing an operation corresponding to a function of the touch key includes: when the touch operation of a plurality of touch keys is determined, corresponding operation is executed according to the preset function of simultaneous touch of the plurality of touch keys.
In the embodiment of the application, when the plurality of touch keys are simultaneously touched, corresponding functions are set, so that the flexibility and convenience of touch key operation are realized.
In a second aspect, an embodiment of the present application provides a key touch device, where the touch key is disposed below an opening hole formed in a metal cover plate, and the touch key includes: the key touch device comprises a light wave receiving unit and a light wave transmitting unit, and each functional module is used for realizing the key touch method in the first aspect and any one of the possible implementation manners of the first aspect.
In a third aspect, an embodiment of the present application provides a touch device, including: the touch control system comprises a metal cover plate, a touch control key and a control system of the touch control key; wherein, touch key sets up the trompil below that sets up on the metal covering plate, touch key includes: a light wave receiving unit and a light wave transmitting unit; the control system of the touch key is configured to execute the key touch method in any one of the first aspect and any one of the possible implementation manners of the first aspect, so as to control the touch key.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a computer, the key touch method is performed as described in the first aspect and any one of the possible implementation manners of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic external structural diagram of a touch device according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an internal structure of a touch device according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a key touch method according to an embodiment of the present disclosure;
fig. 4 is a functional block diagram of a key touch device according to an embodiment of the present disclosure.
Icon: 10-a touch device; 11-the equipment body; 12-a metal cover plate; 120-opening a hole; 13-touch key; 130-a lightwave receiving unit; 132-a lightwave emission unit; 14-a control system; 300-key touch device; 301-a control module; 302-a judgment module; 303-execution module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1 and fig. 2 in combination, an internal structure and an external structure of a touch device 10 provided in the embodiments of the present application are schematically illustrated, where the touch device 10 includes a device body 11, a metal cover 12, a touch key 13, and a control system 14 (of the touch key).
The metal cover 12 has an opening 120 (shown by a dotted line), the touch key 13 is disposed below the opening, and the touch key 13 includes a light wave receiving unit 130 and a light wave emitting unit 132.
As an alternative embodiment, the size of the opening 120 matches the overall size of the touch key 13. Correspondingly, the position of the light wave receiving unit 130 is a position capable of receiving the light wave incident from the opening 120; the position of the light wave emitting unit 132 is a position where light waves can be emitted from the opening 120.
The position of the opening 120 on the metal cover 12 may be a position of a mark (such as a mark at a dashed line position in fig. 1) provided on the metal cover 12 for indicating the touch key 13. Such as: assuming that the touch key 13 functions as a device switch, a pattern (or other implementable marks) representing the device switch may be provided on the metal cover 12, and then the opening 120 is provided at the pattern, so that the design of the opening 120 is integrated with the design of the whole metal cover 12, and the appearance of the touch device 10 is not affected.
In addition, the number of the touch keys 13 may be one or more. If the number of the touch keys 13 is one, the openings 120 are correspondingly arranged one. If the number of the touch keys 13 is plural, the openings 120 are correspondingly plural, and one opening 120 corresponds to one touch key 13, for example: assuming that the touch device 10 includes two volume control keys (volume up key and volume down key), the volume up key corresponds to the first opening, the volume down key corresponds to the second opening, and the first opening and the second opening are disposed at different positions on the metal cover 12, such as: the first opening is arranged at the identification pattern with the volume increased, and the second opening is arranged at the identification pattern with the volume decreased.
As an alternative embodiment, the lightwave receiving unit 130 and the lightwave transmitting unit 132 can be independent components, such as: a transmitting tube and a receiving tube. Or may be two parts that form a single element, such as a single element that includes both the emitter tube and the receiver tube.
As an alternative embodiment, the control system 14 includes a host or a motherboard, a main control chip, a signal processing circuit, and a peripheral circuit. The host or the motherboard can be understood as an operating system of the touch device 10, and is configured to implement a function corresponding to the touch key according to the touch operation detected by the main control chip. The main control chip is used for realizing the detection of the touch operation, and the signal processing circuit and the peripheral circuit are circuits required by the main control chip for realizing the detection of the touch operation. The roles of the various modules in the control system 14 are described in connection with the method in the following embodiments.
The operating system may be a Windows or android system, and has an interface (including a hardware interface and a software interface) for receiving the touch operation detection information, and can perform corresponding operations or reactions in combination with the current state and the touch operation detection information.
The main control chip may be an MCU (micro controller Unit) (e.g., STM32F103 series chip). It may include: memory, processor, peripheral interface and serial port. The various elements are electrically connected, directly or indirectly, to enable transmission or interaction of data. For example, electrical connections between these components may be made through one or more communication or signal buses.
For the main control chip, simultaneous processing of multiple signals can be realized through multiple GPIOs (General-purpose input/output interfaces).
The memory may store various software programs and modules, and the processor executes various functional applications and data processing by operating the software programs and modules stored in the memory.
The Memory may include, but is not limited to, RAM (Random Access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (electrically Erasable Programmable Read-Only Memory), and the like.
The processor may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor including a CPU (Central Processing Unit), an NP (Network Processor), and the like; but may also be a digital signal processor, an application specific integrated circuit, an off-the-shelf programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Based on the above description of the hardware structure, referring to fig. 3, a flowchart of a key touch method applied to the control system 14 according to an embodiment of the present application is provided, where the method includes:
step 201: the light wave emission unit 132 is controlled to emit light waves.
Step 202: when the light waves received by the light wave receiving unit 130 are acquired, it is determined whether a touch operation of the touch key 13 is currently performed.
Step 203: when it is determined that the touch operation of the touch key 13 is currently performed, the operation corresponding to the function of the touch key 13 is executed.
Compared with the prior art, the touch key 13 is arranged below the opening formed in the metal cover plate 12, and the appearance of the metal cover plate 12 is not affected. The touch key 13 includes a light wave receiving unit 130 and a light wave transmitting unit 132, and the light wave receiving unit 130 and the light wave transmitting unit 132 control the light wave transmitting unit 132 to transmit light waves first, when the light waves received by the light wave receiving unit 130 are obtained, the light waves represent that the transmitted light waves are reflected due to a shielding effect caused by a touch operation of a user, and at this time, whether the touch operation is performed currently can be determined. Compared with capacitive touch, the scheme provided by the application avoids the problem of touch failure caused by the fact that the fingers of the user are dry, and therefore the effectiveness of touch operation of the user is improved.
The embodiments of steps 201-203 are described next in connection with an embodiment of control system 14.
As an alternative implementation manner of step 201, after the touch device 10 is powered on, the main control chip generates a pulse signal corresponding to the touch key 13, and then the signal processing circuit converts the pulse signal into a light wave, and then the light wave is emitted by the light wave emitting unit 132. That is, the main control chip is used for generating the pulse signal, the signal processing circuit is used for converting the pulse signal, and the lightwave emitting unit 132 is used for emitting lightwaves.
If the touch device 10 only includes one touch key 13, the main control chip may generate a pulse signal of the one touch key 13 according to a preset code corresponding to the touch key 13, and send the pulse signal to the signal processing circuit, and the signal processing circuit converts the pulse signal and sends out a light wave by the light wave emitting unit 132. The main control chip can circularly generate the pulse signal according to a preset period, wherein the preset period is a time period below millisecond.
In this embodiment, the preset code may be a code for representing the function of the one touch key 13, the preset code may be a code for representing the name of the one touch key 13, or the preset code may be another executable code. The preset coding forms include but are not limited to: numbers, letters, combinations of numbers and letters, and the like.
Assuming that the touch device 10 includes a plurality of touch keys 13, step 201 may include: the main control chip generates first pulse signals corresponding to the touch keys 13 according to preset codes respectively, and the preset codes corresponding to different touch keys 13 are different; the signal processing circuit converts the first pulse signal into a light wave, and the light wave is emitted by the light wave emitting unit 132 of each touch key 13. The main control chip can cyclically generate a plurality of first pulse signals according to a preset period, and the preset period is also a time period below millisecond level.
In this embodiment, the preset code may be a code for representing functions of different touch keys 13, a code for representing names of different touch keys 13, or other implementable codes. The preset coding forms include but are not limited to: numbers, letters, combinations of numbers and letters, and the like. Such as: the codes of the plus key and the minus key of the volume control key are respectively as follows: v0001 and v 00002.
Further, when the main control chip generates the pulse signal, a corresponding binary pulse wave may be generated according to the code, the binary pulse wave is the generated pulse signal, and the binary pulse wave may be 8 bits.
After the binary pulse wave is acquired by the signal processing circuit, the binary pulse wave is converted into a light wave, which can be understood as invisible light with smaller power, and when the invisible light encounters an obstacle, the light wave is reflected, that is, when a finger of a user touches the opening 120 corresponding to the touch key 13, the light wave emitted by the light wave emitting unit 132 is reflected.
When the number of the touch keys 13 is large, in order to ensure the light wave emitting efficiency of the light wave emitting unit 132 of each touch key 13, a plurality of signal processing circuits may be provided, and then the light wave emitting unit 132 is reasonably divided, for example: assuming that there are 10 touch keys 13, the light wave emission of 5 touch keys 13 is controlled by the first signal processing circuit, and the light wave emission of the other 5 touch keys 13 is controlled by the second signal processing circuit.
In addition, the embodiment in which the signal processing circuit converts the pulse wave into the light wave belongs to the technology known to those skilled in the art, and is not described in the embodiment of the present application.
Further, after each light wave emitting unit 132 emits a light wave, if the user has a touch operation of the touch key 13, each light wave receiving unit 130 correspondingly receives the reflected light wave, but because each light wave receiving unit 130 has an interference event, for example: since the light waves are received by the light wave receiving unit 130 due to an incorrect operation, light waves transmitted by other devices, and the like, step 202 is executed after step 201, and when the light waves received by the light wave receiving unit 130 are acquired, it is determined whether there is a touch operation of the touch button 13 currently.
As an optional implementation manner, for the case of multiple touch keys 13, step 202 includes: when light waves received by the light wave receiving unit of any touch key 13 are acquired, the received light waves are converted into second pulse signals; and judging whether the touch operation of the corresponding touch key 13 exists at present according to the first pulse signal and/or the second pulse signal corresponding to any touch key 13.
For the case of one touch key 13, step 202 includes: when light waves received by the light wave receiving unit of the touch key 13 are acquired, the received light waves are converted into second pulse signals; and judging whether the touch operation of the touch key 13 exists currently according to the first pulse signal and/or the second pulse signal corresponding to the touch key 13.
It can be seen that the control system 14 processes the light waves received by each touch key 13 in the same way regardless of the touch key 13 or the touch keys 13.
In the control system 14, the signal processing circuit converts the light wave received by the light wave receiving unit 130 into a second pulse signal, and then sends the second pulse signal to the main control chip, and the main control chip determines whether the touch operation of the touch key 13 is currently performed according to the first pulse signal and/or the second pulse signal.
When the main control chip determines the touch operation, there are three embodiments, which are described below.
In the first embodiment, it is determined whether a time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key 13 and the receiving time of the received light wave is within a preset time range; if the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key 13 and the receiving time of the received light wave is within the preset time range, it is determined that the touch operation of the corresponding touch key is currently performed.
In the first embodiment, the preset time range may be determined according to the speed of light propagation and the maximum distance and the minimum distance between the finger and the touch key 13 when performing the touch operation. It will be appreciated that the interference events excluded in this embodiment are: the interference time due to the non-touch operation of the finger, such as: the finger is currently just stroked over the touch key 13, but no touch is made.
For example, if the speed of light propagation is c, when the finger performs the touch operation, the maximum distance between the finger and the touch key 13 is d1, and the minimum distance between the finger and the touch key 13 is d2, the upper time limit is d1/c, and the lower time limit is d 2/c. The maximum distance and the minimum distance between the finger and the touch key 13 during the touch operation depend on the first relative distance between the metal cover 12 and the touch key 13 and the second relative distance between the finger and the metal cover 12 during the touch operation. The first relative distance is a fixed value, the second relative distance can determine a maximum value and a minimum value according to the actual operation condition, and the maximum distance is the fixed value plus the maximum value; the minimum distance is a fixed value plus a minimum value.
For the time interval, when the main control chip sends out the first pulse signal, it can start timing, assumed as T0, and then when the second pulse signal is received, assumed as T1, the time interval is: T1-T0. It should be noted that the time for the signal processing circuit to convert the signal is almost negligible, and thus, the time for sending out the first pulse signal may represent the transmission time, and the time for receiving the second pulse signal may represent the reception time.
Of course, if the performance of the signal processing circuit is poor, a processing time may be added to the time of sending the first pulse signal and the time of receiving the second pulse signal, and the two times after the addition of the processing time may be used as the sending time and the receiving time.
In the first embodiment, the preset time range may be replaced, for example: the preset condition is not a time range but a distance range, after the time interval is obtained, a distance value corresponding to the time interval is determined based on the time interval and the speed of light propagation, then whether the distance value is within the distance range is judged, if yes, touch operation is determined, and if not, non-touch operation is determined.
In the embodiment of the application, when the touch operation is judged according to the first pulse signal corresponding to the transmitting light wave and the second pulse signal corresponding to the receiving light wave, the interference event is eliminated through the judgment of the time interval, and the accuracy of the touch operation judgment is improved.
In the second embodiment, the second pulse signal is analyzed to obtain a code corresponding to the second pulse signal; judging whether the code corresponding to the second pulse signal is consistent with the code preset by any touch key 13; if the code corresponding to the second pulse signal is consistent with the code preset by any touch key 13, it is determined that the touch operation of the corresponding touch key 13 is currently performed.
In a second embodiment, if the code of the second pulse signal is not consistent with the preset code, the light wave may be light wave emitted by other devices, such as infrared light emitted by a remote controller and a laser pen, and not light wave reflected by the user when performing a touch operation.
When the second pulse signal is analyzed, the principle is similar to that when the first pulse signal is generated according to the preset code, and when the first pulse signal is generated, the preset code is converted into the pulse signal according to the format of the pulse signal (the 8-bit binary pulse in the foregoing embodiment is exemplified), and correspondingly, when the second pulse signal is analyzed, the pulse signal is restored into the code according to the format of the pulse signal.
Because the received light wave and the emitted light wave are processed in the same way, if the converted code is different from the preset code, the received light wave and the emitted light wave are not the same, and can be judged as an interference event.
In the third embodiment, it is determined whether a time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key 13 and the receiving time of the received light wave is within a preset time range; if the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key 13 and the receiving time of the received light wave is within a preset time range, analyzing the second pulse signal to obtain a code corresponding to the second pulse signal; judging whether the code corresponding to the second pulse signal is consistent with the code preset by any touch key 13; if the code corresponding to the second pulse signal is consistent with the preset code, it is determined that the touch operation of the corresponding touch key 13 is currently performed.
In a third embodiment, the first embodiment is combined with the second embodiment, the first embodiment is used to determine the first interference event, if the first interference event does not belong to the first interference event, the second embodiment is used to determine the second interference event, and if the second interference event does not belong to the second interference event, the final determination result is that the interference event is not the first interference event, and the current touch operation of the touch key 13 is determined. Of course, in the determination process, if the first interference event belongs to, the interference event is directly determined, and it is determined that there is no touch operation of the touch key 13 currently. If the second type of interference event belongs to, the interference event is directly determined, and it is determined that there is no touch operation of the touch key 13 currently.
The detailed embodiments of the first embodiment and the second embodiment are the same as those described in the previous embodiment, and the description is not repeated here.
In the third embodiment, the determination orders of the first interference event and the second interference event may be exchanged, that is, the second interference event may be determined first, and then the first interference event may be determined, which is not limited in the embodiment of the present application.
For the three embodiments, in practical application, different application scenarios of the touch device 10 and the setting condition of the touch key 13 can be reasonably selected. If there are more touch keys 13 arranged on the touch device 10 and there are more other light waves in the application scene, at this time, there is a probability that both of the two kinds of interference events occur, and the third embodiment can be adopted. The first embodiment may be adopted if the touch device 10 has fewer touch keys 13 and there is substantially no other light wave in the application scene. If the touch device 10 has fewer touch keys 13 and there are more light waves in the application scene, the second embodiment may be adopted.
After the touch operation is determined in step 202, there are two results, the first result is: determining that there is no touch operation of the touch key 13, at this time, continuing to perform step 201, or continuing to perform step 202 without performing the subsequent step 203. The second result is: it is determined that the touch operation of the touch key 13 is currently performed, and step 203 is executed to execute the function of the touch key 13.
In step 203, the main control chip sends the determination result of the touch operation to the host or the motherboard, and the host or the motherboard executes a corresponding operation. Such as: the judgment result of the main control chip is as follows: if the current operation is a volume up touch operation, the host or the motherboard will execute the volume up operation on the touch device 10.
As an optional implementation manner, when the number of the touch keys 13 is multiple, step 203 includes: when it is determined that there are currently touch operations of the plurality of touch keys 13, corresponding operations are executed according to a preset function corresponding to simultaneous touch operations of the plurality of touch keys 13.
In this embodiment, the touch device 10 supports simultaneous touch of a plurality of touch keys 13, and is also configured with corresponding functions. Such as: when the volume plus key and the on-off key are simultaneously touched, the corresponding function is screen capture. Therefore, for the operating system, the touch device 10 may be controlled to perform a corresponding operation or reaction according to a preset corresponding function and currently received touch operation information.
In the embodiment of the present application, when the plurality of touch keys 13 are touched simultaneously, corresponding functions are provided, so that flexibility and convenience in operation of the touch keys 13 are achieved.
Based on the same inventive concept, referring to fig. 4, an embodiment of the present application further provides a key touch device 300, corresponding to the key touch method shown in fig. 3, applied to a control system 14, including: a control module 301, a determination module 302, and an execution module 303. A control module 301, configured to control the lightwave emitting unit to emit lightwaves; a determining module 302, configured to determine whether a touch operation of the touch key 13 is performed currently when the light wave received by the light wave receiving unit is acquired; the executing module 303 is configured to, when it is determined that there is a touch operation of the touch key 13 currently, execute an operation corresponding to a function of the touch key 13.
Optionally, the control module 301 is specifically configured to: generating a first pulse signal corresponding to each touch key 13 according to a preset code; the preset codes corresponding to different touch keys 13 are different; and converting the first pulse signal into a light wave, and transmitting the light wave through the light wave transmitting unit of each touch key 13.
Optionally, the determining module 302 is specifically configured to: when light waves received by the light wave receiving unit of any touch key 13 are acquired, the received light waves are converted into second pulse signals; and judging whether the touch operation of the corresponding touch key 13 exists at present according to the first pulse signal and/or the second pulse signal corresponding to any touch key 13.
Optionally, the determining module 302 is further specifically configured to: judging whether the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any one touch key 13 and the receiving time of the received light wave is within a preset time range; if the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key 13 and the receiving time of the received light wave is within the preset time range, it is determined that the touch operation of the corresponding touch key 13 is currently performed.
Optionally, the determining module 302 is further specifically configured to: analyzing the second pulse signal to obtain a code corresponding to the second pulse signal; judging whether the code corresponding to the second pulse signal is consistent with the code preset by any touch key 13; and if the code corresponding to the second pulse signal is consistent with the code preset by any touch key 13, determining that the touch operation of the corresponding touch key 13 exists currently.
Optionally, the determining module 302 is further specifically configured to: judging whether the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any one touch key 13 and the receiving time of the received light wave is within a preset time range; if the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key 13 and the receiving time of the received light wave is within a preset time range, analyzing the second pulse signal to obtain a code corresponding to the second pulse signal; judging whether the code corresponding to the second pulse signal is consistent with the code preset by any touch key 13; and if the code corresponding to the second pulse signal is consistent with the preset code, determining that the touch operation of the corresponding touch key 13 exists currently.
Optionally, the executing module 303 is specifically configured to: when it is determined that there are currently touch operations of the plurality of touch keys 13, corresponding operations are executed according to a preset function corresponding to simultaneous touch operations of the plurality of touch keys 13.
The embodiments and specific examples of the key touch method in the foregoing embodiments are also applicable to the apparatus in fig. 4, and those skilled in the art can clearly know the implementation method of the key touch apparatus 300 in fig. 4 through the foregoing detailed description of the key touch method, so that the detailed description is omitted here for the sake of brevity.
Based on the same inventive concept, an embodiment of the present application further provides a readable storage medium, where a computer program is stored on the readable storage medium, and the computer program is executed by a computer to perform the key touch method according to any of the above embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and 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 of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, 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.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A key touch method is characterized in that the key touch method is applied to a control system of a touch key, the touch key is arranged below an opening arranged on a metal cover plate, and the touch key comprises: a lightwave receiving unit and a lightwave transmitting unit, the method comprising:
controlling the light wave emission unit to emit light waves;
when the light wave received by the light wave receiving unit is obtained, judging whether touch operation of a touch key exists at present;
and when the current touch operation of the touch key is determined, executing the operation corresponding to the function of the touch key.
2. The key touch method according to claim 1, wherein the number of the touch keys is plural, and the controlling the light wave emitting unit to emit the light wave includes:
generating a first pulse signal corresponding to each touch key according to a preset code; the preset codes corresponding to different touch keys are different;
and converting the first pulse signal into light waves, and transmitting the light waves through the light wave transmitting units of the touch keys.
3. The key touch method according to claim 2, wherein the determining whether there is a touch operation of the touch key currently when the light wave received by the light wave receiving unit is acquired includes:
when light waves received by a light wave receiving unit of any touch key are acquired, the received light waves are converted into second pulse signals;
and judging whether touch operation of the corresponding touch key exists at present according to the first pulse signal and/or the second pulse signal corresponding to any touch key.
4. The key touch method according to claim 3, wherein the determining whether there is a touch operation of a corresponding touch key according to the first pulse signal and/or the second pulse signal corresponding to the any touch key includes:
judging whether the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key and the receiving time of the received light wave is within a preset time range or not;
and if the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key and the receiving time of the received light wave is within a preset time range, determining that the touch operation of the corresponding touch key is performed currently.
5. The key touch method according to claim 3, wherein the determining whether there is a touch operation of a corresponding touch key according to the first pulse signal and/or the second pulse signal corresponding to the any touch key includes:
analyzing the second pulse signal to obtain a code corresponding to the second pulse signal;
judging whether a code corresponding to the second pulse signal is consistent with a code preset by any touch key;
and if the code corresponding to the second pulse signal is consistent with the preset code of any touch key, determining that the touch operation of the corresponding touch key exists currently.
6. The key touch method according to claim 3, wherein the determining whether there is a touch operation of a corresponding touch key according to the first pulse signal and/or the second pulse signal corresponding to the any touch key includes:
judging whether the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key and the receiving time of the received light wave is within a preset time range or not;
if the time interval between the emission time of the light wave converted by the first pulse signal corresponding to any touch key and the receiving time of the received light wave is within a preset time range, analyzing the second pulse signal to obtain a code corresponding to the second pulse signal;
judging whether a code corresponding to the second pulse signal is consistent with a code preset by any touch key;
and if the code corresponding to the second pulse signal is consistent with the preset code, determining that the touch operation of the corresponding touch key exists currently.
7. The key touch method according to claim 1, wherein the number of the touch keys is plural, and the executing of the operation corresponding to the function of the touch key when determining that the touch operation of the touch key is currently performed includes:
when the touch operation of a plurality of touch keys is determined, corresponding operation is executed according to the preset function of simultaneous touch of the plurality of touch keys.
8. The utility model provides a button touch device which characterized in that is applied to the control system of touch button, the touch button sets up the trompil below that sets up on the metal covering plate, the touch button includes: light wave receiving unit and light wave emission unit, button touch device includes:
the control module is used for controlling the light wave emission unit to emit light waves;
the judging module is used for judging whether touch operation of a touch key exists at present when the light waves received by the light wave receiving unit are acquired;
and the execution module is used for executing the operation corresponding to the function of the touch key when the touch operation of the touch key is determined to exist currently.
9. A touch device, comprising:
the touch control system comprises a metal cover plate, a touch control key and a control system of the touch control key;
wherein, touch key sets up the trompil below that sets up on the metal covering plate, touch key includes: a light wave receiving unit and a light wave transmitting unit;
the control system of the touch key is used for executing the key touch method according to any one of claims 1 to 7 to control the touch key.
10. A readable storage medium, wherein a computer program is stored thereon, and when executed by a computer, the computer program performs the key touch method according to any one of claims 1 to 7.
CN202011391532.4A 2020-12-01 2020-12-01 Key touch method and device, touch equipment and readable storage medium Pending CN112379797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011391532.4A CN112379797A (en) 2020-12-01 2020-12-01 Key touch method and device, touch equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011391532.4A CN112379797A (en) 2020-12-01 2020-12-01 Key touch method and device, touch equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112379797A true CN112379797A (en) 2021-02-19

Family

ID=74589658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011391532.4A Pending CN112379797A (en) 2020-12-01 2020-12-01 Key touch method and device, touch equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112379797A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022260631A1 (en) * 2021-06-08 2022-12-15 Kuecuekdumlu Alper Touch command control card system operating behind a metal surface

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106774927A (en) * 2016-12-30 2017-05-31 珠海市魅族科技有限公司 Electronic equipment and its control method
CN108039881A (en) * 2017-12-22 2018-05-15 北京顺源开华科技有限公司 A kind of electronic equipment control method, device and electronic equipment
CN109474267A (en) * 2018-10-30 2019-03-15 深圳市科羽科技发展有限公司 A kind of metal touch control keyboard and preparation method thereof
CN109873631A (en) * 2019-03-28 2019-06-11 深圳创维-Rgb电子有限公司 A kind of luminous touch key and key light efficiency exchange method
CN209001925U (en) * 2018-10-30 2019-06-18 深圳市科羽科技发展有限公司 A kind of metal touch control keyboard
CN109933192A (en) * 2019-02-25 2019-06-25 努比亚技术有限公司 A kind of implementation method, terminal and the computer readable storage medium of gesture high up in the air

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106774927A (en) * 2016-12-30 2017-05-31 珠海市魅族科技有限公司 Electronic equipment and its control method
CN108039881A (en) * 2017-12-22 2018-05-15 北京顺源开华科技有限公司 A kind of electronic equipment control method, device and electronic equipment
CN109474267A (en) * 2018-10-30 2019-03-15 深圳市科羽科技发展有限公司 A kind of metal touch control keyboard and preparation method thereof
CN209001925U (en) * 2018-10-30 2019-06-18 深圳市科羽科技发展有限公司 A kind of metal touch control keyboard
CN109933192A (en) * 2019-02-25 2019-06-25 努比亚技术有限公司 A kind of implementation method, terminal and the computer readable storage medium of gesture high up in the air
CN109873631A (en) * 2019-03-28 2019-06-11 深圳创维-Rgb电子有限公司 A kind of luminous touch key and key light efficiency exchange method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022260631A1 (en) * 2021-06-08 2022-12-15 Kuecuekdumlu Alper Touch command control card system operating behind a metal surface

Similar Documents

Publication Publication Date Title
US6529189B1 (en) Touch screen stylus with IR-coupled selection buttons
US4587630A (en) Intelligent programmable touchscreen system
EP3336679B1 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
US20090189860A1 (en) Method for reducing power consumption of wireless mouse
JP2000259331A (en) Radio input device
CN106681636B (en) Method and device for preventing false touch and mobile terminal
KR101984737B1 (en) Touch system comprising optical touch panel and touch pen, and method of controlling interference optical signal in touch system
CN100378698C (en) Information processing system and method of controlling the same
CN107884764B (en) Proximity state detection method and device, storage medium and electronic device
CN107172267A (en) Method for controlling fingerprint identification and Related product
JP2019537109A (en) Fingerprint collection method and terminal
CN112379797A (en) Key touch method and device, touch equipment and readable storage medium
CN104345996A (en) Radar eye identification interactive device
CN111225258A (en) Display apparatus and control method thereof
JP2013246587A (en) Input system, indication tool, computer program and recording medium
US20210200345A1 (en) Transmitter, touch sensitive processing apparatus and processing method thereof and electronic system
KR20070035236A (en) Apparatus and method for positional recognition in 3-dimension
US5897257A (en) Keyboard with expandable function keys
CN109107148A (en) control method, device, storage medium and mobile terminal
CN113961070A (en) Electronic equipment control method and device
TWI723708B (en) Stylus, method and system for updating stylus setting
CN110297569B (en) Detection method and device
US6836807B2 (en) Wireless receiving device and method jointly used by computer peripherals
US6930670B2 (en) Computer peripheral input system with two input types and method of data communication for the same
CN112083839A (en) Terminal operation method, terminal and device with storage function

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: 20210219

RJ01 Rejection of invention patent application after publication