Anti-bounce input device, processing method and computer system
By using a combination of key elements and microcontroller in the input device, and using interrupt processing programs and anti-bounce programs, the problem of signal bounce in the e-sports peripheral device is solved, and the accurate transmission and stability of the operation signal is achieved.
Patent Information
- Application Number
- CN202410926029.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-08-02
- Filing Date
- 2024-07-11
- Publication Date
- 2025-02-14
AI Technical Summary
In e-sports, mechanical components of e-sports peripheral devices such as keyboards and mouses are prone to signal bounce when the keys are quickly triggered, resulting in unnecessary commands and operational errors.
An anti-bounce input device is designed, using a combination of key elements and a microcontroller to forward the operation signal through an interrupt handler and an anti-bounce program and prevent the transmission of the bounce signal during the prohibited period.
It effectively suppresses non-essential bounce signals, ensures the accuracy and stability of the operating signals, and avoids operational errors caused by signal bounce.
Smart Images

Figure CN119440889A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an input device, a processing method and an electronic system, and more particularly to an anti-bounce input device, a processing method and a computer system. Background Art
[0002] With the development of e-sports, online live broadcast and related peripheral business opportunities are also brought about. In the field of e-sports, in addition to the requirements for the players' own response speed, the peripheral devices are also required to keep up with the players' speed in order to make real-time responses. This is especially true for e-sports peripheral devices such as keyboards, mice or controllers. Most of the aforementioned e-sports peripheral devices use micro switches or mechanical components as signal triggers.
[0003] When players quickly trigger buttons, the mechanical components of the gaming peripherals may generate signal bounces, causing the gaming peripherals to generate other unnecessary commands, thus causing players to make mistakes. For official competitions, if the peripherals generate erroneous signals, players will lose the chance to win.
[0004] In addition, when pressing a button and moving, the peripheral device may also generate signal bounce due to the influence of the plane it is located on. For example, the user is pressing a button and moving. In a macroscopic environment, the mouse button is in a pressed state. However, in a microscopic environment, the micro switch may not be fully pressed to the bottom, so when the mouse moves, the micro switch may be slightly loosened and a bounce signal may occur. Summary of the invention
[0005] In view of this, in one embodiment, the anti-bounce input device. The anti-bounce input device has a key element and a microcontroller. The key element has a key and a first pin. When the key is operated, the first pin outputs a plurality of trigger signals, and the trigger signal includes an operation signal and at least one bounce signal thereafter; the microcontroller is connected to the first pin. When the microcontroller receives the trigger signal, the microcontroller triggers an interrupt processing program, and when the interrupt processing program is executed, the operation signal is forwarded and then the anti-bounce program is started; wherein, during the forbidden period of the anti-bounce program, the microcontroller does not receive the bounce signal. In addition to ensuring the signal triggered by the user, the anti-bounce input device can also filter out unnecessary bounce signals to avoid the occurrence of erroneous operations.
[0006] In one embodiment, a timer is further included, the microcontroller is connected to the timer, the anti-bounce program drives the timer, the anti-bounce program starts timing the forbidden period after forwarding the operation signal, and after the forbidden period, the microcontroller ends the anti-bounce program.
[0007] In one embodiment, it further includes multiple electronic components, a microcontroller is connected to the electronic components, the microcontroller polls the electronic components, the electronic components output operation responses according to control commands, and when the microcontroller polls the electronic components and receives a trigger signal, an interrupt handler is triggered to interrupt the control command to the electronic components.
[0008] In one embodiment, a communication interface is further included, the communication interface connects the microcontroller and the computer end, and the communication interface receives a control command from the computer end or transmits a trigger signal to the computer end.
[0009] In one embodiment, the anti-bounce process adjusts the length of the blackout period according to the number of bounce signals during the blackout period.
[0010] In one embodiment, the lower edge triggering means that when the key is pressed, the first pin outputs a trigger signal, and the upper edge triggering means that when the key is released, the first pin outputs a trigger signal.
[0011] In some embodiments, the anti-bounce method of the input device includes a microcontroller monitoring a key element being triggered; when the key element is triggered, the key element outputs multiple trigger signals, wherein the trigger signal includes an operation signal and at least one subsequent bounce signal; the microcontroller receives the trigger signal, the microcontroller triggers an interrupt handler and forwards the operation signal; after the microcontroller forwards the operation signal, the microcontroller starts an anti-bounce program; during the prohibited period when the anti-bounce program is running, the microcontroller does not receive a bounce signal.
[0012] In one embodiment, before the step of "microcontroller listening to key element being triggered", the microcontroller determines whether the electronic element is polled; if the electronic element is polled, the microcontroller triggers an interrupt processing program for the electronic element; if the electronic element is not polled, the microcontroller starts an anti-bounce program.
[0013] In one embodiment, the step of “during the forbidden period of the anti-bounce procedure, the microcontroller does not receive the bounce signal” includes the microcontroller terminating the anti-bounce procedure after the forbidden period.
[0014] In some embodiments, a computer system includes a computer terminal and an input device. The computer terminal receives a trigger signal or sends a control command; the input device is connected to the computer terminal; the input device has a key element and a microcontroller unit; the key element has a key and a first pin, when the key is operated, the first pin outputs a plurality of trigger signals, the trigger signal includes an operation signal and at least one bounce signal thereafter; when the microcontroller receives the trigger signal, the microcontroller triggers an interrupt processing program, and when the interrupt processing program is executed, the operation signal is forwarded and then an anti-bounce program is started, and during the forbidden period when the anti-bounce program is operated, the microcontroller does not receive the bounce signal.
[0015] The anti-bounce input device, processing method and computer system provide related processing when the key of the input device is triggered, so that when the user triggers the key, the operation signal can be guaranteed to be sent and other unnecessary bounce signals can be suppressed. The input device will stop forwarding the bounce signal to the computer end during the forbidden period. Moreover, the length of the forbidden period can also be set to be less than the continuous triggering time of the user, so as to avoid the forbidden period affecting the normal operation of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a computer terminal and an input device according to an embodiment;
[0017] Figure 2 is a schematic diagram of the hardware architecture of an input device according to an embodiment;
[0018] Figure 3 A schematic diagram of impedance changes when a key is triggered and released according to an embodiment;
[0019] Figure 4 A schematic flow chart of an anti-bounce method for an input device according to an embodiment;
[0020] Figure 5 A schematic diagram of a key element and a prohibited time period according to an embodiment;
[0021] Figure 6 is a schematic diagram of the hardware architecture of an input device according to another embodiment;
[0022] Wherein, the reference numerals are:
[0023] 001: Computer System
[0024] 100: Computer
[0025] 200: Input device
[0026] 210: Storage unit
[0027] 211:Interrupt handler
[0028] 212: Anti-bounce procedure
[0029] 220: Key element
[0030] 221: Button
[0031] 222: First pin
[0032] 230: Microcontroller
[0033] 240:Electronic components
[0034] 241: Second pin
[0035] 310: Control Command
[0036] 320: Trigger signal
[0037] 321: Operation signal
[0038] 322: Bounce signal
[0039] 330: No collection period
[0040] 250:Timer
[0041] 260: Communication interface
[0042] S410, S420, S430, S440, S450: Steps
[0043] T: Time
[0044] R: Impedance level. DETAILED DESCRIPTION
[0045] Please refer to Figure 1 , Figure 2 and Figure 3 1 and 2 are schematic diagrams of a computer terminal and an input device according to an embodiment, a schematic diagram of the hardware structure of the input device, and a schematic diagram of impedance changes when a key is triggered and released. The computer system 001 as a whole includes a computer terminal 100 and at least one input device 200. The computer terminal 100 is connected to the input device 200 by a signal.
[0046] The signal connection may be a USB (Universal Serial Bus) cable connection or a wireless signal connection. The type of wireless signal may be, for example, Bluetooth wireless communication protocol, 2.4 GHz wireless communication protocol or other frequency wireless communication protocols. The computer end 100 may be connected to the input device 200 via a cable, or may be connected to the input device 200 via a wireless signal. The computer end 100 sends a control command 310 to the input device 200, or receives an operation signal 321 sent by the input device 200. The input device 200 may be, but is not limited to, a mouse, and may also be applied to an input device 200 having a button 221 such as a keyboard, a touchpad or a controller.
[0047] The input device 200 has a storage unit 210, a key element 220 and a microcontroller 230. The microcontroller 230 is electrically connected to the storage unit 210 and the key element 220. The storage unit 210 includes an interrupt processing program 211 and an anti-bounce program 212. The key element 220 has a button 221 and a first pin 222. The button 221 can be but is not limited to a micro switch, or a membrane, capacitor or pressure switch, etc. The microcontroller 230 is connected to the first pin 222. The microcontroller 230 receives a trigger signal 320 or sends a control command 310 to a corresponding element. If the input device 200 is a mouse, the key element 220 can be the left button, right button or middle button of the mouse. When the button 221 is pressed or released, the first pin 222 will output multiple trigger signals 320. Among them, the trigger signal 320 includes an operation signal 321 and a plurality of bounce signals 322, please refer to Figure 3 shown.
[0048] exist Figure 3 The horizontal axis is the time axis (T), and the vertical axis is the impedance level (R) of the key 221. In the circuit, the low impedance of the key element 220 will produce a high potential. Conversely, the high impedance of the key element 220 will produce a low potential. Figure 3 In the figure, the thick black line represents the impedance change at different times. When the user operates the input device 200, the user can press or release the key element 220. When the key 221 is pressed, the impedance will switch from a high level to a low level. When the key 221 is released, the impedance will switch from a low level to a high level. Please refer to the following Table 1, which is a table of the change of the potential and impedance of the key 221.
[0049] Button status Potential change Impedance change Press Low potential → High potential High impedance → low impedance release High potential → low potential Low impedance → High impedance
[0050] Table 1 Changes of key pair potential and impedance
[0051] When the button 221 is pressed or released, according to the changes described in Table 1, the button 221 can be further divided into falling edge-triggered or rising edge-triggered. The signal emitted when the falling edge is triggered or the rising edge is regarded as the operation signal 321, and the subsequent signal generated by the operation signal 321 is collectively referred to as the bounce signal 322. Further, the signal when the impedance of the button 221 switches from a high level to a low level, or from a low level to a high level is the operation signal 321. The signal generated during the period from the generation of the operation signal 321 to the stable low level (or high level) is referred to as the bounce signal 322.
[0052] In some embodiments, the input device 200 further includes an electronic component 240. The electronic component 240 may be, but is not limited to, a light-emitting diode (LED) or a coordinate positioning component. Each electronic component 240 has a second pin 241. The microcontroller 230 is connected to the second pin 241. The microcontroller 230 polls each electronic component 240 and sends a control command 310 to the corresponding electronic component 240.
[0053] When the microcontroller 230 receives the trigger signal 320, the microcontroller 230 performs the following anti-bounce processing, please refer to Figure 4 The anti-bounce method of the input device 200 comprises the following steps:
[0054] Step S410: the microcontroller monitors that the key element is triggered;
[0055] Step S420: When the key element is triggered, the key element outputs a plurality of trigger signals, wherein the trigger signal includes an operation signal and at least one subsequent bounce signal;
[0056] Step S430: the microcontroller receives the trigger signal, triggers the interrupt processing program and forwards the operation signal;
[0057] Step S440: After the microcontroller forwards the operation signal, the microcontroller starts an anti-bounce program; and
[0058] Step S450: During the blackout period of the anti-bounce program, the microcontroller does not receive the bounce signal.
[0059] First, when the input device 200 is in operation, the microcontroller 230 polls each electronic component 240 in a time-sharing manner. The microcontroller 230 sends a control command 310 to the corresponding electronic component 240 according to the polling result. In some embodiments, the electronic component 240 outputs an operation response according to the received control command 310. Taking a mouse as an example, a plurality of different light-emitting diodes (i.e., the aforementioned electronic component 240) can be provided in an e-sports mouse. The microcontroller 230 polls the aforementioned light-emitting diodes. In addition, the microcontroller 230 can receive a control command 310 for controlling brightness or color issued by the computer terminal 100, and send the control command 310 to the electronic component 240 during the polling process.
[0060] During the polling process, the microcontroller 230 monitors whether the key element 220 is triggered (corresponding to step S410). If the microcontroller 230 monitors whether the key element 220 is triggered during the polling process of the electronic element 240, the key element 220 outputs a plurality of trigger signals 320 to the microcontroller 230 (corresponding to step S420). If no electronic element 240 is polled, the microcontroller 230 starts the anti-bounce program 212.
[0061] When the microcontroller 230 receives the trigger signal 320, the microcontroller 230 executes the interrupt processing program 211, so that the electronic component 240 in the polling interrupts the control command 310. At the same time, the microcontroller 230 forwards the operation signal 321 in the trigger signal 320 to the computer end 100 (corresponding to step S430). The microcontroller 230 starts the anti-bounce program 212 (corresponding to step S440), and during the forbidden period 330 operated by the anti-bounce program 212, the microcontroller 230 will not receive the bounce signal 322 (corresponding to step S450). Further, the anti-bounce program 212 prohibits receiving the bounce signal 322, so that the microcontroller 230 will not forward the bounce signal 322 to the computer end 100. The length of the forbidden period 330 can be set to 10 to 20 (milliseconds).
[0062] In some embodiments, the input device 200 further includes a timer 250. Figure 6 The microcontroller 230 is connected to the timer 250. When the microcontroller 230 starts the anti-bounce program 212, the anti-bounce program 212 drives the timer 250 to count the forbidden receiving period 330. The anti-bounce program 212 starts counting the forbidden receiving period 330 after forwarding the operation signal 321, and after the forbidden receiving period 330, the microcontroller 230 ends the anti-bounce program 212. Please refer to Figure 5 .
[0063] In addition, the user can adjust the duration of the blackout period 330 according to his / her personal operation mode. The user sends a control command 310 to change the blackout period 330 to the input device 200 through the computer terminal 100, so that the anti-bounce program 212 modifies the duration of the blackout period 330.
[0064] In some embodiments, the input device 200 further includes a communication interface 260. Figure 6 The communication interface 260 connects the microcontroller 230 and the computer end 100 . The microcontroller 230 receives a control command 310 from the computer end 100 through the communication interface 260 , or transmits a trigger signal 320 to the computer end 100 through the communication interface 260 .
[0065] The anti-bounce input device 200, processing method and computer system 001 provide related processing when the button 221 of the input device 200 is triggered, so that when the user triggers the button 221, the operation signal 321 can be guaranteed to be sent and other unnecessary bounce signals 322 can be suppressed. The input device 200 will stop forwarding the bounce signal 322 to the computer terminal 100 during the forbidden period 330. Moreover, the duration of the forbidden period 330 can be set to be less than the continuous triggering time of the user, so as to avoid the forbidden period 330 affecting the normal triggering of the user.
Claims
1. An anti-bounce input device, characterized in that: include: A key element, comprising a key and a first pin, wherein when the key is operated, the first pin outputs a plurality of trigger signals, wherein the trigger signals include an operation signal and at least one subsequent bounce signal; and a microcontroller connected to the first pin, wherein when the microcontroller receives the trigger signal, the microcontroller triggers an interrupt processing program, and when the interrupt processing program is executed, the microcontroller forwards the operation signal and then starts an anti-bounce program; In a prohibited period of time when the anti-bounce program is running, the microcontroller does not receive the bounce signals.
2. The anti-bounce input device according to claim 1, characterized in that: It further includes a timer, the microcontroller is connected to the timer, the anti-bounce program drives the timer, the anti-bounce program starts timing the forbidden period after forwarding the operation signal, and after the forbidden period, the microcontroller ends the anti-bounce program.
3. The anti-bounce input device according to claim 1, characterized in that: It further includes multiple electronic components, the microcontroller is connected to the electronic components, the microcontroller polls the electronic components, the electronic components output an operation response according to a control command, and the microcontroller polls the electronic components. When the microcontroller receives the trigger signal, the interrupt processing program is triggered to interrupt the control command of the electronic components.
4. The anti-bounce input device according to claim 3, characterized in that: The invention further comprises a communication interface, which is connected to the microcontroller and a computer end, and receives the control command from the computer end or transmits the trigger signal to the computer end.
5. The anti-bounce input device according to claim 1, characterized in that: The anti-bounce program adjusts the duration of the blackout period according to the number of the bounce signals in the blackout period.
6. The anti-bounce input device according to claim 1, characterized in that: The impedance state of the key includes a lower edge trigger or an upper edge trigger, wherein the lower edge trigger means that when the key is pressed, the first pin outputs the trigger signal, and the upper edge trigger means that when the key is released, the first pin outputs the trigger signal.
7. An anti-bounce method for an input device, characterized in that: include: A microcontroller monitors a key element being triggered; When the key element is triggered, the key element outputs a plurality of trigger signals, wherein the trigger signal includes an operation signal and at least one bounce signal thereafter; The microcontroller receives the trigger signal, and the microcontroller triggers an interrupt processing program and forwards the operation signal; After the microcontroller forwards the operation signal, the microcontroller starts an anti-bounce program; and During a blackout period when the anti-bounce procedure is running, the microcontroller does not receive the bounce signals.
8. The anti-bounce method of the input device as claimed in claim 7, characterized in that: The step of monitoring the key element being triggered by the microcontroller includes: The microcontroller determines whether an electronic component is polled; If the electronic component is polled, the microcontroller triggers the interrupt processing program for the electronic component; and If the electronic component is not polled, the microcontroller initiates the anti-bounce procedure.
9. The anti-bounce method of the input device as claimed in claim 7, characterized in that: The step of the microcontroller not receiving the bounce signals during the prohibited period of the anti-bounce program includes: The microcontroller ends the anti-bounce procedure after the forbidden period.
10. A computer system, characterized in that: include: A computer terminal receives a trigger signal or sends a control command; and An input device connected to the computer terminal, the input device having: A key element, comprising a key and a first pin, wherein when the key is operated, the first pin outputs the trigger signal, wherein the trigger signal includes an operation signal and at least one subsequent bounce signal; and A microcontroller, when receiving the trigger signal, triggers an interrupt processing program, and when the interrupt processing program is executed, forwards the operation signal and then starts an anti-bounce program. During a forbidden period of the anti-bounce program, the microcontroller does not receive the bounce signals.
11. The computer system of claim 10, wherein: The impedance state of the key includes a lower edge trigger or an upper edge trigger, wherein the lower edge trigger means that when the key is pressed, the first pin outputs the trigger signal, and the upper edge trigger means that when the key is released, the first pin outputs the trigger signal.