An adaptive anti-interference circuit and control method for industrial custom keyboards
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-07
- Publication Date
- 2026-08-11
AI Technical Summary
[0002]在工业自动化、医疗设备及工程机械等复杂电磁环境中,传统键盘存在抗干扰能力弱、通信可靠性不足和ESD(静电)防护滞后的问题
[0015] This invention provides an adaptive anti-interference circuit and control method for industrial custom keyboards. It eliminates power noise, surges, and transient drops in industrial environments through a power anti-interference module, achieves multi-protocol compatible communication through a data anti-interference module, forming a double-insurance mechanism for the data path, and establishes a feedback link between a data acquisition module and a regulation and control module to provide real-time data support for dynamic adjustment. Furthermore, it forms a closed-loop control engine through intelligent adaptive control, activates a magnetic bead array to filter high-frequency interference, and switches the USB protocol to ensure communication quality and power-off protection against ESD events. This improves the keyboard's anti-interference capability, communication reliability, and electrostatic discharge protection in industrial scenarios.
Smart Images

Figure CN120630708B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of industrial keyboards. More specifically, this invention discloses an adaptive anti-interference circuit and control method for industrial custom keyboards. Background Technology
[0002] In complex electromagnetic environments such as industrial automation, medical equipment, and construction machinery, traditional keyboards suffer from weak anti-interference capabilities, insufficient communication reliability, and lagging ESD (electrostatic discharge) protection. Traditional keyboards often use fixed-parameter LC filters, which cannot dynamically respond to frequency-varying interference. Sudden, strong electromagnetic noise generated by welding equipment and frequency converters in industrial settings leads to a high rate of false triggering on keyboards, and traditional ferrite bead arrays require manual configuration, resulting in response delays. In traditional keyboards, the USB protocol frequently degrades to a low-speed mode under interference, but switching requires manual reset, leading to long communication interruptions. Furthermore, existing ESD protection relies on passive clamping with TVS diodes, which cannot prevent cumulative damage from pre-discharge.
[0003] Therefore, there is an urgent need for an adaptive anti-interference technology for industrial custom keyboards. Summary of the Invention
[0004] In view of the above problems, the purpose of this invention is to provide an adaptive anti-interference circuit and control method for industrial customized keyboards. This invention eliminates power noise, surges, and transient drops in industrial environments through a power anti-interference module, achieves multi-protocol compatible communication through a data anti-interference module, forming a double-insurance mechanism for the data path, and establishes a feedback link between a data acquisition module and a regulation and control module to provide real-time data support for dynamic adjustment. Furthermore, intelligent adaptive control forms a closed-loop control engine, activates a magnetic bead array to filter high-frequency interference, and switches the USB protocol to ensure communication quality and power-off protection against ESD events. This improves the keyboard's anti-interference capability, communication reliability, and electrostatic discharge protection in industrial scenarios.
[0005] To achieve the above objectives, the first aspect of the present invention provides an adaptive anti-interference circuit for industrial custom keyboards, the circuit being: Power supply anti-interference module, data anti-interference module, data acquisition module, regulation and control module; The power supply anti-interference module includes a high-frequency filtering circuit, a current limiting circuit, and a voltage suppression circuit, which are used to filter, regulate, and protect the input power supply to obtain the output voltage. The data anti-interference module is composed of a CH334R chip and an ESD protection chip connected in series, and is used to convert and stabilize the USB communication data line voltage. The data acquisition module is used to detect the operating status of the power supply anti-interference module and the data anti-interference module; The adjustment and control module is used to adjust the operating parameters of the power supply anti-interference module and the data anti-interference module.
[0006] In this solution, the power supply anti-interference module specifically refers to: The power input terminal is connected to the first terminal of the first inductor and the positive terminal of the first diode; The second terminal of the first inductor is connected to the negative terminal of the first diode, the first terminal of the second inductor, the first terminal of the third inductor, and the first terminal of the first capacitor; The second terminal of the third inductor is connected to the first terminal of the first fuse and the first terminal of the second capacitor. The second end of the first fuse is connected to the first end of the fourth inductor and the first end of the third capacitor; The power output terminal is connected to the second terminal of the second inductor, the positive terminal of the fourth capacitor, the negative terminal of the second diode, the first terminal of the fifth capacitor, the first terminal of the sixth capacitor, and the first terminal of the seventh capacitor. The second terminal of the first capacitor, the second terminal of the second capacitor, the second terminal of the third capacitor, the negative terminal of the fourth capacitor, the positive terminal of the second diode, the second terminal of the fifth capacitor, the second terminal of the sixth capacitor, and the second terminal of the seventh capacitor are grounded.
[0007] In this solution, the data anti-interference module specifically includes: First ESD chip, second ESD chip and first CH334R chip; After passing through the first ESD chip, the USB data input signal is connected to the data input terminal of the first CH334R chip; After the first CH334R chip outputs a USB data output signal, it is connected to the second ESD chip. The positive terminals of the third diode and the fourth diode are connected in parallel to the USB data output signal.
[0008] In this solution, the data acquisition module includes at least: Electromagnetic field strength sensor, used to monitor the magnetic field strength in a preset frequency band; Input power quality sensor, including power voltage detection circuit and power current detection circuit; ESD event counter, used to record the frequency and intensity of electrostatic discharge; A communication quality analyzer used to detect and analyze the quality of USB communication.
[0009] A second aspect of the present invention also provides an adaptive anti-interference control method for industrial custom keyboards, applied in any of the aforementioned adaptive anti-interference circuits for industrial custom keyboards, the method comprising: Based on a preset acquisition cycle, the first electromagnetic intensity information, the first communication quality information, and ESD event records are detected. Based on the preset frequency domain analysis strategy, according to the first electromagnetic intensity information, if the energy intensity of the preset interference frequency band exceeds the preset electromagnetic intensity threshold, the activation of the high-frequency magnetic bead array of the adjustment control module is activated. If the first communication quality information is lower than a preset quality threshold for a consecutive preset number of cycles, then switch the USB communication protocol. Based on the preset ESD prediction model, the first ESD prediction event is obtained according to the ESD event record; If the probability of the first ESD predicted event exceeds a preset risk threshold, then the preset circuit module is disconnected before the ESD event. Record the running status and control information as log information and upload it to the backend; The control parameters of the adjustment and control module are updated based on the log information.
[0010] This plan also includes: The electromagnetic interference intensity of the preset frequency band is scanned in real time by pre-deployed electromagnetic field strength sensors, and a heat map of electromagnetic interference intensity distribution is generated based on the preset frequency domain analysis strategy. By using a pre-set high-precision voltage sampling circuit to capture the ripple characteristics and transient drop waveforms at the power input terminal in real time, abnormal power quality events can be identified. The ESD event record is obtained by recording electrostatic discharge pulses exceeding the preset voltage threshold through a preset multi-level triggered ESD event counter, and by associating and recording the timestamp and spatial location of the pulses. The jitter characteristics and error patterns of the USB data signal are analyzed by a preset communication quality analyzer to generate the first communication quality information.
[0011] In this solution, activating the high-frequency magnetic bead array of the adjustment control module specifically involves: Based on the preset array mapping relationship, the first magnetic bead array and the first clamping voltage are determined according to the energy intensity of the preset interference frequency band; Based on the first magnetic bead array, an enable signal is sent to the control circuit of the high-frequency magnetic bead array; According to the first switch that is turned on, the high-frequency magnetic bead array is connected in parallel to the high-frequency filter circuit; The clamping level of the second diode is adjusted according to the first clamping voltage.
[0012] In this scheme, if the first communication quality information for a consecutive preset number of cycles is lower than a preset quality threshold, then the USB communication protocol is switched, specifically as follows: If all of the first communication quality information is lower than the preset quality threshold, it is determined to be a low quality state; If the communication status is determined to be low quality after a continuous preset number of cycles, a protocol downgrade instruction is written to the configuration register of the CH334R chip. The high-speed data transmission channel is shut down and switched to the basic bandwidth communication mode.
[0013] In this solution, the first ESD prediction event is obtained based on the preset ESD prediction model and the ESD event records, specifically including: By temporally correlating the ESD event records, the electromagnetic interference intensity distribution heatmap, and the power quality anomaly events, a multi-source dataset is obtained. The multi-source dataset is input into a pre-trained ESD prediction model to obtain the probability and timing of ESD occurrence within a preset time window. When the probability exceeds the preset risk threshold, a graded power outage control command is sent according to the predicted time of ESD occurrence.
[0014] This plan also includes: Monitor the first state trigger signal and first duration of the resettable fuse; When the first duration exceeds a preset time threshold, it is determined to be a permanent fault; If the fault is permanent, the control power switching switch will transfer the load to the backup power supply path; It also records the fault path identifier in the log and triggers a hardware replacement alert.
[0015] This invention provides an adaptive anti-interference circuit and control method for industrial custom keyboards. It eliminates power noise, surges, and transient drops in industrial environments through a power anti-interference module, achieves multi-protocol compatible communication through a data anti-interference module, forming a double-insurance mechanism for the data path, and establishes a feedback link between a data acquisition module and a regulation and control module to provide real-time data support for dynamic adjustment. Furthermore, it forms a closed-loop control engine through intelligent adaptive control, activates a magnetic bead array to filter high-frequency interference, and switches the USB protocol to ensure communication quality and power-off protection against ESD events. This improves the keyboard's anti-interference capability, communication reliability, and electrostatic discharge protection in industrial scenarios. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope.
[0017] Figure 1 A connection diagram of an adaptive anti-interference circuit for an industrial custom keyboard is shown. Figure 2The circuit topology diagram of the power supply anti-interference module provided in the embodiment of the present invention is shown; Figure 3 The circuit topology diagram of the data anti-interference module provided in an embodiment of the present invention is shown; Figure 4 The operation of an adaptive anti-interference control method for industrial custom keyboards is shown; Figure 5 A flowchart illustrating an environmental disturbance monitoring process provided by an embodiment of the present invention is shown. Figure 6 The diagram illustrates the activation flowchart of a high-frequency magnetic bead array provided by an embodiment of the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] Unless otherwise defined, all terms (including technical and scientific terms) used in embodiments of this invention shall have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in a common dictionary shall be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and not as being interpreted in an idealized or highly formalized sense, unless expressly defined in this embodiment of the invention.
[0020] The terms "first," "second," and similar words used in the embodiments of this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "an," "a," or "the" do not indicate a quantity limitation, but rather indicate the presence of at least one. Similarly, terms such as "including" or "comprising" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The steps preceding or following the steps in the method of the embodiments of this invention are not necessarily performed precisely in sequence. Instead, various steps can be processed in reverse order or simultaneously. Furthermore, other operations can be added to these processes, or one or more steps can be removed from these processes.
[0021] Please refer to Figure 1 , Figure 1A connection diagram of an adaptive anti-interference circuit for an industrial custom keyboard is shown.
[0022] like Figure 1 As shown, the first aspect of the present invention discloses the adaptive anti-interference circuit for industrial custom keyboards, the circuit comprising: Power supply anti-interference module 101, data anti-interference module 102, data acquisition module 103, adjustment and control module 104; The power supply anti-interference module 101 includes a high-frequency filter circuit, a current limiting circuit, and a voltage suppression circuit, which are used to filter, regulate, and protect the input power supply to obtain the output voltage. The data anti-interference module 102 is composed of a CH334R chip and an ESD protection chip connected in series, and is used to convert and stabilize the USB communication data line voltage. The data acquisition module 103 is used to detect the operating status of the power supply anti-interference module and the data anti-interference module; The adjustment and control module 104 is used to adjust the operating parameters of the power supply anti-interference module and the data anti-interference module.
[0023] It should be noted that in this embodiment, the overall framework of the anti-interference circuit includes a power supply anti-interference module, a data anti-interference module, a data acquisition module, and a regulation and control module. During circuit implementation, these four modules are first integrated onto the main control board of the industrial custom keyboard. The power supply anti-interference module is responsible for processing the input power, including connecting a high-frequency filter circuit to filter out power supply noise, a current limiting circuit to limit current peaks, and a voltage suppression circuit to stabilize the output voltage. The data anti-interference module converts the USB data line voltage by connecting a CH334R chip and an ESD protection chip in series to ensure stable data transmission. The data acquisition module is deployed inside the keyboard to monitor the operating status of the power supply and data modules in real time, for example, by monitoring voltage fluctuations or communication errors through sensors. The regulation and control module dynamically adjusts operating parameters based on the detected status, such as adjusting the filter strength or protocol settings. Throughout the implementation process, the modules are interconnected through wiring on the circuit board, and the regulation and control module executes preset control logic to achieve closed-loop management from power input to data output. This embodiment features multiple protection mechanisms to effectively cope with complex interference sources in industrial environments. The circuit in this embodiment can automatically adapt to different interference conditions, significantly reducing key operation misidentification and data transmission errors.
[0024] Please refer to Figure 2 , Figure 2 The circuit topology diagram of the power supply anti-interference module provided in an embodiment of the present invention is shown.
[0025] According to embodiments of the present invention, such as Figure 2 As shown, the power supply anti-interference module specifically comprises: The power input terminal (VCC_In) is connected to the first terminal of the first inductor (L1) and the positive terminal of the first diode (D1); The second terminal of the first inductor (L1) is connected to the negative terminal of the first diode (D1), the first terminal of the second inductor (L2), the first terminal of the third inductor (L3), and the first terminal of the first capacitor (C1); The second terminal of the third inductor (L3) is connected to the first terminal of the first fuse (F1) and the first terminal of the second capacitor (C2); The second terminal of the first fuse (F1) is connected to the first terminal of the fourth inductor (L4) and the first terminal of the third capacitor (C3); The power output terminal (VCC_Out) is connected to the second terminal of the second inductor (L2), the positive terminal of the fourth capacitor (C4), the negative terminal of the second diode (D2), the first terminal of the fifth capacitor (C5), the first terminal of the sixth capacitor (C6), and the first terminal of the seventh capacitor (C7). The second terminal of the first capacitor (C1), the second terminal of the second capacitor (C2), the second terminal of the third capacitor (C3), the negative terminal of the fourth capacitor (C4), the positive terminal of the second diode (D2), the second terminal of the fifth capacitor (C5), the second terminal of the sixth capacitor (C6), and the second terminal of the seventh capacitor (C7) are grounded.
[0026] It should be noted that, Figure 2 The specific circuit connection method of the power supply anti-interference module is described in detail. In this embodiment, the power supply anti-interference module assembles components onto a circuit board. The power input terminal is connected to a first inductor and a first diode to form a primary filter; the other end of the first inductor is connected to multiple components, including a second inductor, a third inductor, and a first capacitor, to construct a π-type filter structure to filter out high-frequency noise; the third inductor is connected to a fuse and a capacitor to achieve current limiting protection; the power output terminal is connected to a second inductor, multiple capacitors, and a second diode (TVS diode) to provide regulated output. During circuit operation, the capacitors and diodes work together to ground all negative terminals, ensuring that excess current is safely guided. A closed loop is formed by the inductors, capacitors, and diodes to automatically suppress power supply ripple and transient interference. The adjustment and control module monitors the operation of this module and adjusts parameters, including filter frequency and intensity, based on feedback from the data acquisition module. The power supply anti-interference module improves power supply stability and effectively prevents voltage fluctuations in industrial environments from damaging the keyboard. Through the multi-stage combination of inductors, capacitors, and diodes, the circuit can efficiently filter out high-frequency noise and transient drops, ensuring a clean and reliable output voltage. Diodes prevent reverse current, inductors suppress high-frequency interference, and resettable fuses provide overcurrent protection, reducing the probability of failure.
[0027] Please refer to Figure 3 , Figure 3 The circuit topology diagram of the data anti-interference module provided in an embodiment of the present invention is shown.
[0028] According to embodiments of the present invention, such as Figure 3 As shown, the data anti-interference module specifically includes: First ESD chip (U2), second ESD chip (U3), and first CH334R chip (U1); The USB data input signals (USB_IN_D+, USB_IN_D-) pass through the first ESD chip and are then connected to the data input terminal of the first CH334R chip. After the first CH334R chip outputs USB data output signals (USB_OUT_D+, USB_OUT_D-), it is connected to the second ESD chip. The positive terminals of the third diode (D3) and the fourth diode (D4) are connected in parallel to the USB data output signal.
[0029] It should be noted that, in this embodiment, the detailed structure of the data anti-interference module includes a first ESD chip, a second ESD chip, and a first CH334R chip. First, the USB data input signal passes through the first ESD chip. Its internal diodes exhibit high impedance under normal conditions, not affecting the circuit; when electrostatic discharge occurs, the diodes switch to a low-impedance state, clamping the voltage to a safe level. The signal is then connected to the data input terminal of the CH334R chip, which supports multiple USB protocols (including USB 2.0 and USB 3.0) to achieve data conversion and stabilization. The output signal is then protected by the second ESD chip to ensure safe transmission. Furthermore, the third and fourth diodes connected in parallel are TVS diodes to enhance the clamping effect and prevent external static electricity from intruding through the data line. In this embodiment, the dual ESD chips strengthen the anti-interference capability of the data path, ensuring stable USB communication in a strong electrostatic environment. The ESD chips respond quickly to electrostatic events and clamp overvoltages, while the CH334R chip supports protocol adaptation, improving the fault tolerance of data transmission. ESD protection chips prevent static electricity from entering through data or power lines, reducing damage caused by lightning strikes or discharges, improving keyboard reliability, and preventing data loss or key signal errors. They are especially suitable for soldering or high-static-rate areas.
[0030] According to an embodiment of the present invention, the data acquisition module includes at least: Electromagnetic field strength sensor, used to monitor the magnetic field strength in a preset frequency band; Input power quality sensor, including power voltage detection circuit and power current detection circuit; ESD event counter, used to record the frequency and intensity of electrostatic discharge; A communication quality analyzer used to detect and analyze the quality of USB communication.
[0031] It should be noted that, as one implementation method, the data acquisition module includes components such as an electromagnetic field strength sensor, an input power quality sensor, an ESD event counter, and a communication quality analyzer. First, a sensor network is deployed in the industrial keyboard. For example, the electromagnetic field strength sensor is installed around the keyboard to scan the magnetic field strength in a preset frequency band in real time; the input power quality sensor integrates voltage and current detection circuits to capture power ripple and transient drops; the ESD event counter records the frequency and intensity of electrostatic discharge; and the communication quality analyzer embeds a CH334R chip to analyze USB signal jitter and error patterns. The data acquisition module periodically checks the operating status and sends the information to the keyboard control center. This embodiment provides comprehensive environmental monitoring capabilities through multi-source sensors, enhancing the system's real-time response to interference.
[0032] Please refer to Figure 4 , Figure 4 The operation of an adaptive anti-interference control method for industrial custom keyboards is shown.
[0033] like Figure 4 As shown, the second aspect of the present invention discloses the adaptive anti-interference control method for industrial custom keyboards, the method comprising: S402, based on a preset acquisition cycle, detects and obtains the first electromagnetic intensity information, the first communication quality information, and ESD event records; S404, based on a preset frequency domain analysis strategy, according to the first electromagnetic intensity information, if the energy intensity of the preset interference frequency band exceeds the preset electromagnetic intensity threshold, then the activation of the high-frequency magnetic bead array of the adjustment control module is activated. S406, if the first communication quality information for a consecutive preset number of cycles is lower than a preset quality threshold, then switch the USB communication protocol. S408, Based on the preset ESD prediction model, the first ESD prediction event is obtained according to the ESD event record; S410, if the probability of the first ESD predicted event exceeds a preset risk threshold, then the preset circuit module is disconnected before the ESD event. S412 records the operating status and control information as log information and uploads it to the backend; S414, Update the control parameters of the adjustment control module based on the log information.
[0034] It should be noted that, as one implementation method, firstly, with a 10ms acquisition cycle, the data acquisition module acquires first electromagnetic intensity information, first communication quality information, and ESD event records for electromagnetic interference detection, power quality analysis, and USB communication quality assessment. Next, a frequency domain analysis strategy is executed. If the energy intensity of the preset interference frequency band exceeds the limit, the high-frequency ferrite bead array of the adjustment control module is activated; if the communication quality is below the threshold for several consecutive cycles, the USB communication protocol is switched, downgrading from high-speed mode USB 3.0 to basic mode USB 2.0. Simultaneously, the event records are analyzed based on the ESD prediction model to predict the probability of future events; if the probability exceeds the limit, non-core circuits are disconnected before ESD occurs. Finally, logs are recorded and control parameters are updated. The entire process emphasizes timing logic, including periodic detection and real-time response. This implementation achieves intelligent adaptive control, improving the keyboard's resilience in dynamic interference environments. Through periodic monitoring and prediction strategies, the system can proactively activate protective measures such as enhanced filtering by the ferrite bead array or protocol downgrading to ensure accurate key operation. Furthermore, proactive power-off protection combined with the prediction model reduces ESD damage; log updates optimize long-term performance. This reduces human intervention in industrial environments and improves reliability, making it particularly suitable for use near frequency converters or welding equipment.
[0035] Please refer to Figure 5 , Figure 5 A flowchart illustrating an environmental disturbance monitoring process provided by an embodiment of the present invention is shown.
[0036] In embodiments of the present invention, such as Figure 5 As shown, it also includes: S502 uses pre-deployed electromagnetic field strength sensors to scan the electromagnetic interference intensity of a preset frequency band in real time, and generates a heat map of electromagnetic interference intensity distribution based on a preset frequency domain analysis strategy. The S504 uses a preset high-precision voltage sampling circuit to capture the ripple characteristics and transient drop waveforms at the power input terminal in real time, and identifies abnormal power quality events. S506 records electrostatic discharge pulses exceeding a preset voltage threshold using a preset multi-level triggered ESD event counter, and associates and records their occurrence timestamps and spatial locations to obtain ESD event records; S508 analyzes the jitter characteristics and error patterns of USB data signals using a preset communication quality analyzer to generate first communication quality information.
[0037] It should be noted that this embodiment provides a data acquisition method. First, an electromagnetic field strength sensor scans a preset frequency band in real time to generate a heatmap of electromagnetic interference intensity distribution; a high-precision voltage sampling circuit captures power supply ripple characteristics and transient drop waveforms to identify abnormal events; a multi-level triggered ESD event counter records pulses exceeding a preset voltage threshold, associating them with timestamps and locations; and a communication quality analyzer analyzes USB signal jitter and error patterns to generate communication quality information. Sensor data acquisition, heatmap generation, and event recording are stored. This embodiment provides a high-precision data foundation to support adaptive decision-making. The heatmap visualizes interference distribution, voltage sampling captures subtle ripples, the ESD counter records spatiotemporal events, and communication analysis ensures signal quality, enabling accurate identification of interference sources, early triggering of protection, and prevention of accidental keyboard input.
[0038] Please refer to Figure 6 , Figure 6 The diagram illustrates the activation flowchart of a high-frequency magnetic bead array provided by an embodiment of the present invention.
[0039] In embodiments of the present invention, such as Figure 6 As shown, activating the high-frequency magnetic bead array of the adjustment control module specifically involves: S602, based on the preset array mapping relationship, determine the first magnetic bead array and the first clamping voltage according to the energy intensity of the preset interference frequency band; S604, based on the first magnetic bead array, send an enable signal to the control circuit of the high-frequency magnetic bead array; S606, according to the first preset switch being turned on, the high-frequency magnetic bead array is connected in parallel to the high-frequency filter circuit; S608, adjust the clamping level of the second diode according to the first clamping voltage.
[0040] It should be noted that this embodiment provides a control process for activating a high-frequency ferrite bead array. First, based on a preset array mapping relationship, the first ferrite bead array and the first clamping voltage are determined according to the energy intensity of the interference frequency band. Then, an enable signal is sent to the control circuit of the high-frequency ferrite bead array. Next, by turning on a preset first switch, the ferrite bead array is connected in parallel to the high-frequency filter circuit. Finally, the clamping level of the TVS diode is adjusted according to the clamping voltage. In this embodiment, dynamic enhancement of high-frequency noise suppression is employed to ensure power supply stability. The ferrite bead array provides filtering, and the TVS clamping adjustment adapts to different interference intensities, thereby improving the adjustable range of the filter, maintaining keyboard performance in strong interference environments, and reducing key malfunctions caused by voltage fluctuations.
[0041] In this embodiment of the invention, if the first communication quality information for a consecutive preset number of cycles is lower than a preset quality threshold, then the USB communication protocol is switched, specifically as follows: If all of the first communication quality information is lower than the preset quality threshold, it is determined to be a low quality state; If the communication status is determined to be low quality after a continuous preset number of cycles, a protocol downgrade instruction is written to the configuration register of the CH334R chip. The high-speed data transmission channel is shut down and switched to the basic bandwidth communication mode.
[0042] It should be noted that, as one implementation method, the communication quality analyzer analyzes USB eye diagram characteristics in real time, such as rising / falling edge distortion and crossover offset, to generate a QoS score of 0-100. If the QoS score is below 80 for three consecutive cycles, it is determined to be a low-quality state. A protocol downgrade instruction is written to the CH334R chip's 0x34 configuration register via the communication bus, changing the communication protocol from USB 3.0 to USB 2.0. This embodiment trades reduced bandwidth for noise immunity, ensuring the reliability of basic functions. While bandwidth is reduced after downgrading, fault tolerance is improved, maintaining keyboard availability in low-quality environments.
[0043] In this embodiment of the invention, obtaining the first ESD prediction event based on the preset ESD prediction model and the ESD event records specifically includes: By temporally correlating the ESD event records, the electromagnetic interference intensity distribution heatmap, and the power quality anomaly events, a multi-source dataset is obtained. The multi-source dataset is input into a pre-trained ESD prediction model to obtain the probability and timing of ESD occurrence within a preset time window. When the probability exceeds the preset risk threshold, a graded power outage control command is sent according to the predicted time of ESD occurrence.
[0044] It should be noted that this embodiment provides an ESD prediction model, which spatiotemporally aligns the coordinates of high-risk areas in the electromagnetic thermal map, the power supply transient drop waveform, and the spatiotemporal markers of ESD events to construct a three-dimensional interference feature vector. This vector is input into a pre-trained LSTM prediction model to generate an ESD probability curve within a 500ms time window. When the probability of electrostatic discharge (ESD) occurrence is within the range of [70%, 85%], the power supply to the LED backlight circuit is disconnected, while the main control power supply is retained. When the probability of ESD occurrence exceeds 85%, the power supply to all modules except the CH334R and the core MCU is cut off. This achieves predictive protection and reduces ESD damage. By actively predicting ESD and identifying high-risk events, it triggers active power-off, improving the keyboard's reliability in electrostatic environments.
[0045] In this embodiment of the invention, it further includes: Monitor the first state trigger signal and first duration of the resettable fuse; When the first duration exceeds a preset time threshold, it is determined to be a permanent fault; If the fault is permanent, the control power switching switch will transfer the load to the backup power supply path; It also records the fault path identifier in the log and triggers a hardware replacement alert.
[0046] It should be noted that in this embodiment, firstly, the status trigger signal and duration of the resettable fuse are monitored to analyze and determine the overcurrent type. The overcurrent type includes transient overcurrent and permanent overcurrent. If the duration exceeds the limit, a permanent fault is determined. Then, the power switching switch is controlled to transfer the load to the backup power supply path; finally, the fault log is recorded and an alarm is triggered. This embodiment avoids manual shutdown for inspection by automatically detecting and recovering from faults. Furthermore, a backup power supply path ensures continuous keyboard operation.
[0047] It is worth mentioning that it also includes: A correlation analysis was performed between the frequency of protection policy triggers in the logs and the component performance degradation indicators. The weights of the ESD prediction model are updated through a cloud training platform, generating an optimized instruction set for protocol switching thresholds and filter mode switching parameters. The new parameter set is sent to the keyboard main control unit through an encrypted channel.
[0048] It should be noted that this embodiment provides a predictive model parameter optimization strategy based on log analysis. In this embodiment, firstly, the frequency of protection policy triggering and component performance degradation indicators in the logs are correlated and analyzed. As one implementation method, the aging index of core components is calculated; when the aging index exceeds a set threshold, the component is identified as a high-risk component. Then, the ESD predictive model weights are updated through a cloud training platform to generate an optimization instruction set; the optimization instructions include adjusting the QoS threshold for communication protocol switching or enhancing the rules of the magnetic bead array. Finally, new parameters are sent to the keyboard controller through an encrypted channel. The steps include data analysis and parameter iteration.
[0049] It is worth mentioning that it also includes: After sending the protocol downgrade command, the redundant transmission mode is activated; The same USB data signal is divided into two independent data packets, which are transmitted synchronously through different channels of the CH334R chip. Transmission verification is performed on the two transmitted signals at the bit level.
[0050] It should be noted that this embodiment provides a redundant transmission mechanism. Utilizing the multi-channel characteristics of the CH334R chip, after sending a protocol degradation command, a redundant transmission mode, i.e., a multi-channel transmission mode, is activated. As one implementation, channel A sends the original data packet, and channel B sends a verification data packet. The host compares the correctness of the two data packets, thereby enhancing data transmission reliability. This embodiment employs dual-packet verification to ensure signal accuracy and maintain button recognition accuracy in low-quality environments.
[0051] In summary, this invention provides an adaptive anti-interference circuit and control method for industrial custom keyboards. It eliminates power noise, surges, and transient drops in industrial environments through a power anti-interference module, achieves multi-protocol compatible communication through a data anti-interference module, forming a double-insurance mechanism for the data path, and establishes a feedback link between the data acquisition module and the adjustment and control module to provide real-time data support for dynamic adjustment. Furthermore, it forms a closed-loop control engine through intelligent adaptive control, activates a magnetic bead array to filter high-frequency interference, and switches the USB protocol to ensure communication quality and power-off protection against ESD events. This improves the keyboard's anti-interference capability, communication reliability, and electrostatic discharge protection in industrial scenarios.
[0052] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0053] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0054] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. An adaptive anti-interference control method for industrial custom keyboards, applied in an adaptive anti-interference circuit for industrial custom keyboards, the circuit comprising a power supply anti-interference module, a data anti-interference module, a data acquisition module, and an adjustment control module; The power supply anti-interference module includes a high-frequency filtering circuit, a current limiting circuit, and a voltage suppression circuit, which are used to filter, regulate, and protect the input power supply to obtain the output voltage. The data anti-interference module is composed of a CH334R chip and an ESD protection chip connected in series, and is used to convert and stabilize the USB communication data line voltage. The data acquisition module is used to detect the operating status of the power supply anti-interference module and the data anti-interference module; The adjustment and control module is used to adjust the operating parameters of the power supply anti-interference module and the data anti-interference module; Its features are, The method includes: Based on a preset acquisition cycle, the first electromagnetic intensity information, the first communication quality information, and ESD event records are detected. Based on the preset frequency domain analysis strategy, according to the first electromagnetic intensity information, if the energy intensity of the preset interference frequency band exceeds the preset electromagnetic intensity threshold, the activation of the high-frequency magnetic bead array of the adjustment control module is activated. If the first communication quality information is lower than a preset quality threshold for a consecutive preset number of cycles, then switch the USB communication protocol. Based on the preset ESD prediction model, the first ESD prediction event is obtained according to the ESD event record; If the probability of the first ESD predicted event exceeds a preset risk threshold, then the preset circuit module is disconnected before the ESD event. Record the running status and control information as log information and upload it to the backend; The control parameters of the adjustment and control module are updated based on the log information.
2. The adaptive anti-interference control method for industrial custom keyboards according to claim 1, characterized in that, Also includes: The electromagnetic interference intensity of the preset frequency band is scanned in real time by pre-deployed electromagnetic field strength sensors, and a heat map of electromagnetic interference intensity distribution is generated based on the preset frequency domain analysis strategy. By using a pre-set high-precision voltage sampling circuit to capture the ripple characteristics and transient drop waveforms at the power input terminal in real time, abnormal power quality events can be identified. The ESD event record is obtained by recording electrostatic discharge pulses exceeding the preset voltage threshold through a preset multi-level triggered ESD event counter, and by associating and recording the timestamp and spatial location of the pulses. The jitter characteristics and error patterns of the USB data signal are analyzed by a preset communication quality analyzer to generate the first communication quality information.
3. The adaptive anti-interference control method for industrial custom keyboards according to claim 1, characterized in that, The activation of the high-frequency magnetic bead array of the adjustment control module is specifically as follows: Based on the preset array mapping relationship, the first magnetic bead array and the first clamping voltage are determined according to the energy intensity of the preset interference frequency band; Based on the first magnetic bead array, an enable signal is sent to the control circuit of the high-frequency magnetic bead array; According to the first switch that is turned on, the high-frequency magnetic bead array is connected in parallel to the high-frequency filter circuit; The clamping level of the second diode is adjusted according to the first clamping voltage.
4. The adaptive anti-interference control method for industrial custom keyboards according to claim 1, characterized in that, If the first communication quality information for a consecutive preset number of cycles is lower than a preset quality threshold, then the USB communication protocol is switched, specifically as follows: If all of the first communication quality information is lower than the preset quality threshold, it is determined to be a low quality state; If the communication status is determined to be low quality after a continuous preset number of cycles, a protocol downgrade instruction is written to the configuration register of the CH334R chip. The high-speed data transmission channel is shut down and switched to the basic bandwidth communication mode.
5. The adaptive anti-interference control method for industrial custom keyboards according to claim 2, characterized in that, The preset ESD prediction model, based on the ESD event records, obtains the first ESD prediction event, specifically including: By temporally correlating the ESD event records, the electromagnetic interference intensity distribution heatmap, and the power quality anomaly events, a multi-source dataset is obtained. The multi-source dataset is input into a pre-trained ESD prediction model to obtain the probability and timing of ESD occurrence within a preset time window. When the probability exceeds the preset risk threshold, a graded power outage control command is sent according to the predicted time of ESD occurrence.
6. The adaptive anti-interference control method for industrial custom keyboards according to claim 1, characterized in that, Also includes: Monitor the first state trigger signal and first duration of the resettable fuse; When the first duration exceeds a preset time threshold, it is determined to be a permanent fault; If the fault is permanent, the control power switching switch will transfer the load to the backup power supply path; It also records the fault path identifier in the log and triggers a hardware replacement alert.
Citation Information
Patent Citations
USB (Universal Serial Bus) interface circuit
CN104135148A
Intelligent electromagnetic interference protection system for power supply module
CN119966224A
Full-speed USB (universal serial bus) 3.0 interface isolation protection device
CN204166525U