Methods, systems, media and equipment for dynamic impedance compensation protection against network communication failures

By dynamically adjusting the terminating resistor to match the nominal impedance of the transmission line, the problem of dynamic impedance mismatch in highly dynamic Ethernet scenarios is solved, thereby improving the reliability and stability of communication.

CN122316264APending Publication Date: 2026-06-30DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
DONGFENG MOTOR GRP
Filing Date
2026-03-11
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

Existing technologies cannot effectively address the dynamic impedance mismatch problem in highly dynamic Ethernet scenarios, leading to increased signal reflection and bit error rate, especially communication failure under complex operating conditions such as temperature and vibration.

Method used

By obtaining the transmission line impedance, calculating the deviation, and using a PID algorithm to dynamically calculate the compensation resistor value, the terminating resistor is adjusted to match the nominal impedance of the transmission line, thereby suppressing signal reflection.

Benefits of technology

It significantly improves the reliability of high-speed communication, can adapt to complex working conditions such as temperature changes and mechanical vibration, suppresses signal reflection, and improves communication stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122316264A_ABST
    Figure CN122316264A_ABST
Patent Text Reader

Abstract

This invention provides a method, system, medium, and device for dynamic impedance compensation protection against network communication failures, belonging to the field of vehicle network communication and safety management technology. The method includes: S100, acquiring the collected transmission line impedance; S200, calculating the deviation between the transmission line impedance and the nominal impedance of the transmission line; if the deviation is greater than a deviation threshold, proceeding to step S300; S300, calculating the compensation resistor value using a PID algorithm based on the deviation, and adjusting the terminal resistor value to the sum of the compensation resistor value and the nominal impedance of the transmission line; S400, evaluating the compensation effect; if it does not meet the standard, correcting the coefficients of the PID algorithm, and returning to step S300 based on the real-time deviation between the transmission line impedance and the nominal impedance of the transmission line, performing cyclic adjustment of the terminal resistor until the compensation effect evaluation meets the standard. The above method can adapt to complex working conditions such as temperature changes and mechanical vibrations, significantly improving the reliability of high-speed communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle network communication and safety management technology, and in particular to a method, system, medium and device for dynamic impedance compensation protection against network communication failures. Background Technology

[0002] Existing methods for preventing high-speed communication failures in vehicle networks manage Ethernet communication through static impedance matching (such as fixed terminating resistors) and predefined priority queues, calibrates protocol layer timing using hardware timestamps, and addresses occasional frame loss through retransmission mechanisms. The core of these methods is to suppress electromagnetic interference through frequency domain S-parameter analysis and shielding layer design. However, these methods cannot address the dynamic impedance mismatch engineering problems in highly dynamic Ethernet scenarios: temperature and vibration cause transmission line impedance drift, leading to signal reflection and increased bit error rate. Summary of the Invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art, and proposes a method, system, medium and device for dynamic impedance compensation protection against network communication failures.

[0004] In a first aspect, embodiments of the present invention provide a method for dynamic impedance compensation and protection against network communication failures, comprising the following steps:

[0005] S100, Obtain the acquired transmission line impedance;

[0006] S200: Calculate the deviation between the transmission line impedance and the nominal impedance of the transmission line. If the deviation is greater than the deviation threshold, proceed to step S300; otherwise, return to step S100 for continuous monitoring.

[0007] S300. Calculate the compensation resistor value using a PID algorithm based on the deviation, and adjust the terminal resistor value to be the sum of the compensation resistor value and the nominal impedance of the transmission line.

[0008] S400: Evaluate the compensation effect. If it does not meet the standard, correct the coefficients of the PID algorithm. Based on the real-time deviation between the transmission line impedance and the nominal impedance of the transmission line, return to step S300 to perform cyclic adjustment of the terminating resistor until the compensation effect evaluation meets the standard. If it meets the standard, return to step S100 for continuous monitoring.

[0009] Furthermore, in step S100, impedance measuring devices are deployed at both ends of the transmission line to collect the impedance of the transmission line at preset time intervals.

[0010] Furthermore, in step S200, the deviation threshold is the smaller of the allowable impedance tolerance of the high-speed communication medium and the deviation value determined according to the reflection noise requirements.

[0011] Furthermore, the relationship between reflected noise and deviation value is as follows:

[0012]

[0013] Where Γ is the reflected noise, ΔZ' is the deviation value, and Z0 is the nominal impedance of the transmission line.

[0014] Furthermore, in step S300, the formula for calculating the compensation resistor value using the PID algorithm based on the deviation is as follows:

[0015]

[0016] Among them, R comp To compensate for the resistance value, K p K is the proportionality coefficient, ΔZ is the deviation, and K is the proportionality coefficient. i K is the integral coefficient. d These are the differential coefficients. This represents the rate of change of the deviation relative to time t.

[0017] Furthermore, the proportionality coefficient K p Take a value of 0.8 to 1.2; integral coefficient K i Take a value of 0.05 to 0.2; differential coefficient K d Take a value of 0.1 to 0.3.

[0018] Furthermore, in step S300, the terminating resistor is dynamically adjusted using a digital potentiometer or a MOSFET resistor array so that its resistance is the sum of the compensation resistor value and the nominal impedance of the transmission line.

[0019] Furthermore, the evaluation of the compensation effect is specifically as follows: after the terminal resistor is adjusted, it is determined whether the real-time deviation between the transmission line impedance and the nominal impedance of the transmission line is greater than the deviation threshold. If it is greater, the compensation effect is not up to standard; otherwise, the compensation effect is up to standard.

[0020] Secondly, embodiments of the present invention provide a dynamic impedance compensation protection system for network communication failures, comprising:

[0021] The acquisition module is used to acquire the transmission line impedance.

[0022] The calculation and analysis module is used to calculate the deviation between the transmission line impedance and the nominal impedance of the transmission line, and to determine the relationship between the deviation and the deviation threshold.

[0023] The compensation module is used to calculate the compensation resistor value based on the deviation using a PID algorithm, and adjust the resistance value of the terminating resistor to the sum of the compensation resistor value and the nominal impedance of the transmission line.

[0024] The evaluation module is used to assess the effectiveness of the compensation.

[0025] Thirdly, embodiments of the present invention provide an electronic device, including:

[0026] One or more processors;

[0027] Memory, used to store one or more programs;

[0028] When the one or more programs are executed by the one or more processors, the one or more processors perform the method as described above.

[0029] Fourthly, embodiments of the present invention provide a computer-readable medium storing a computer program, which, when executed by a processor, implements the steps of the method described above.

[0030] The present invention provides a method, system, medium, and device for dynamic impedance compensation protection against network communication failures. By periodically measuring impedance values ​​using sensors, when a deviation exceeds a set threshold, a PID algorithm dynamically calculates the compensation resistance value and adjusts the terminal resistance to suppress signal reflection. This method overcomes the limitations of traditional static impedance matching, adapts to complex operating conditions such as temperature changes and mechanical vibrations, and significantly improves the reliability of high-speed communication. Attached Figure Description

[0031] Figure 1 A flowchart illustrating a dynamic impedance compensation protection method for network communication failures provided in an embodiment of the present invention;

[0032] Figure 2 This is an overall flowchart of a dynamic impedance compensation and protection method for network communication failures provided in an embodiment of the present invention;

[0033] Figure 3 This invention provides an architecture diagram of a dynamic impedance compensation and protection system for network communication failures, as provided in an embodiment of the invention.

[0034] Figure 4 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0035] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0036] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.

[0037] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0038] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0039] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.

[0040] This invention provides a method for dynamic impedance compensation and protection against network communication failures, see reference. Figure 1 , 2 As shown, the method includes the following steps:

[0041] S100: Obtain the acquired transmission line impedance.

[0042] In one embodiment, impedance measurement devices are deployed at both ends of the transmission line to collect the impedance of the transmission line at preset time intervals.

[0043] Specifically, the preset time interval is determined as follows: it is set according to different temperature ranges. The high temperature range has a greater impact on resistance, so the time interval between acquisition and calculation is smaller; at the same time, it meets the time requirements of software and hardware processing.

[0044] S200: Calculate the deviation between the transmission line impedance and the nominal impedance of the transmission line. If the deviation is greater than the deviation threshold, proceed to step S300; otherwise, return to step S100 for continuous monitoring.

[0045] For example, if the measured transmission line impedance Zactual is 106Ω and the nominal transmission line impedance Z0 is 100Ω, then the deviation ΔZ = Zactual - Z0 = 106Ω - 100Ω = 6Ω.

[0046] In one embodiment, the deviation threshold is the smaller of the allowable impedance tolerance of the high-speed communication medium and the deviation value determined according to the reflection noise requirements.

[0047] Specifically, the relationship between reflected noise and deviation value is as follows:

[0048]

[0049] Where Γ is the reflected noise, ΔZ' is the deviation value, and Z0 is the nominal impedance of the transmission line.

[0050] For example, the allowable impedance tolerance ±Z1 is ±10Ω when the nominal impedance of the transmission line is 100Ω, and the reflection noise Γ is required to be <2.5%, using the formula for Γ as follows: The nominal impedance of the transmission line is 100Ω. The calculated deviation value is ΔZ=5Ω. At this time, the deviation threshold can be selected as min(10,5)=5Ω.

[0051] S300. Calculate the compensation resistor value using a PID algorithm based on the deviation, and adjust the terminal resistor value to be the sum of the compensation resistor value and the nominal impedance of the transmission line.

[0052] In one embodiment, the formula for calculating the compensation resistor value using a PID algorithm based on the deviation is as follows:

[0053]

[0054] Among them, R comp To compensate for the resistance value, K p K is the proportionality coefficient, ΔZ is the deviation, and K is the proportionality coefficient. i K is the integral coefficient. d These are the differential coefficients. This represents the rate of change of the deviation relative to time t.

[0055] Specifically, the proportionality coefficient K p Used for rapid response to current deviation, it directly generates the adjustment amount of the compensation resistor based on the instantaneous value of the current impedance deviation (ΔZ). The larger the deviation, the stronger the compensation action. For example, if ΔZ = 5Ω is detected, Kp*ΔZ will immediately output a compensation value proportional to the deviation, quickly suppressing signal reflection. Integral coefficient K i Used to eliminate accumulated errors, accumulating historical impedance deviations (∑ΔZ) and eliminating long-term steady-state errors. For persistent small deviations (such as slow impedance changes caused by slow temperature drift), it is progressively corrected through the integral term to avoid residual errors. Differential coefficient K d Used to suppress sudden interference, based on the rate of change of impedance deviation ( This predicts future trends and compensates in advance. If the impedance deviation increases rapidly (e.g., due to vibration causing a sudden change in ΔZ), the differential term will increase the compensation force in advance to suppress further deterioration of signal reflection.

[0056] In one embodiment, the scaling factor K p Take a value of 0.8 to 1.2; integral coefficient K i Take a value of 0.05 to 0.2; differential coefficient K d Take a value of 0.1 to 0.3.

[0057] In one embodiment, the terminating resistor is dynamically adjusted using a digital potentiometer or a MOSFET resistor array so that its resistance is the sum of the compensation resistor value and the nominal impedance of the transmission line.

[0058] S400: Evaluate the compensation effect. If it does not meet the standard, correct the coefficients of the PID algorithm. Based on the real-time deviation between the transmission line impedance and the nominal impedance of the transmission line, return to step S300 to perform cyclic adjustment of the terminating resistor until the compensation effect evaluation meets the standard. If it meets the standard, return to step S100 for continuous monitoring.

[0059] In one embodiment, the evaluation of the compensation effect is specifically as follows: after the terminal resistor is adjusted, it is determined whether the real-time deviation between the transmission line impedance and the nominal impedance of the transmission line is greater than the deviation threshold. If it is greater, the compensation effect is not up to standard; otherwise, the compensation effect is up to standard.

[0060] It should be understood that after the terminating resistor is adjusted, the real-time deviation between the transmission line impedance and the nominal impedance of the transmission line is obtained by acquiring the adjusted transmission line impedance and then calculating the deviation between the adjusted transmission line impedance and the nominal impedance of the transmission line.

[0061] This invention utilizes a sensor to periodically measure impedance values. When a deviation exceeds a set threshold, a PID algorithm dynamically calculates a compensation resistor value and adjusts the terminating resistor to suppress signal reflection. This method overcomes the limitations of traditional static impedance matching, adapting to complex conditions such as temperature changes and mechanical vibrations, significantly improving the reliability of high-speed communication.

[0062] This invention also provides a dynamic impedance compensation and protection system for network communication failures, see reference. Figure 3 As shown, the system includes:

[0063] Acquisition module 11 is used to acquire the transmission line impedance.

[0064] The calculation and analysis module 12 is used to calculate the deviation between the transmission line impedance and the nominal impedance of the transmission line, and to determine the relationship between the deviation and the deviation threshold.

[0065] The compensation module 13 is used to calculate the compensation resistor value based on the deviation using a PID algorithm, and adjust the resistance value of the terminal resistor to the sum of the compensation resistor value and the nominal impedance of the transmission line.

[0066] Evaluation module 14 is used to evaluate the compensation effect.

[0067] This invention also provides an electronic device, see below. Figure 4 As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement any of the network communication failure dynamic impedance compensation protection methods described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.

[0068] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).

[0069] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.

[0070] In some embodiments, the one or more processors 101 include a field-programmable gate array.

[0071] This invention also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps of any of the network communication failure dynamic impedance compensation protection methods described in the above embodiments. The computer-readable storage medium can be volatile or non-volatile.

[0072] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0073] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0074] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0075] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.

[0076] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0077] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0078] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0079] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0080] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0081] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.

Claims

1. A method for dynamic impedance compensation and protection against network communication failures, characterized in that, Includes the following steps: S100, Obtain the acquired transmission line impedance; S200: Calculate the deviation between the transmission line impedance and the nominal impedance of the transmission line. If the deviation is greater than the deviation threshold, proceed to step S300. Otherwise, return to step S100 for continuous monitoring; S300. Calculate the compensation resistor value using a PID algorithm based on the deviation, and adjust the terminal resistor value to be the sum of the compensation resistor value and the nominal impedance of the transmission line. S400: Evaluate the compensation effect. If it does not meet the standard, correct the coefficients of the PID algorithm. Based on the real-time deviation between the transmission line impedance and the nominal impedance of the transmission line, return to step S300 to perform cyclic adjustment of the terminating resistor until the compensation effect evaluation meets the standard. If it meets the standard, return to step S100 for continuous monitoring.

2. The method according to claim 1, characterized in that, In step S100, impedance measurement devices are deployed at both ends of the transmission line to collect the impedance of the transmission line at preset time intervals.

3. The method according to claim 1, characterized in that, In step S200, the deviation threshold is the smaller of the allowable impedance tolerance of the high-speed communication medium and the deviation value determined according to the reflection noise requirements.

4. The method according to claim 3, characterized in that, The relationship between reflected noise and deviation value is as follows: Where Γ is the reflected noise, ΔZ' is the deviation value, and Z0 is the nominal impedance of the transmission line.

5. The method according to claim 1, characterized in that, In step S300, the formula for calculating the compensation resistor value using the PID algorithm based on the deviation is as follows: Among them, R comp To compensate for the resistance value, K p K is the proportionality coefficient, ΔZ is the deviation, and K is the proportionality coefficient. i K is the integral coefficient. d These are the differential coefficients. This represents the rate of change of the deviation relative to time t.

6. The method according to claim 5, characterized in that, proportionality coefficient K p Take a value of 0.8 to 1.2; integral coefficient K i Take a value of 0.05 to 0.2; differential coefficient K d Take a value of 0.1 to 0.

3.

7. The method according to claim 1, characterized in that, In step S300, the terminating resistor is dynamically adjusted using a digital potentiometer or MOSFET resistor array so that its resistance is the sum of the compensation resistor value and the nominal impedance of the transmission line.

8. The method according to claim 1, characterized in that, The specific evaluation of the compensation effect is as follows: after the terminal resistor is adjusted, it is determined whether the real-time deviation between the transmission line impedance and the nominal impedance of the transmission line is greater than the deviation threshold. If it is greater, the compensation effect is not up to standard; otherwise, the compensation effect is up to standard.

9. A dynamic impedance compensation and protection system for network communication failures, characterized in that, include: The acquisition module is used to acquire the transmission line impedance. The calculation and analysis module is used to calculate the deviation between the transmission line impedance and the nominal impedance of the transmission line, and to determine the relationship between the deviation and the deviation threshold. The compensation module is used to calculate the compensation resistor value based on the deviation using a PID algorithm, and adjust the resistance value of the terminating resistor to the sum of the compensation resistor value and the nominal impedance of the transmission line. The evaluation module is used to assess the effectiveness of the compensation.

10. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 8.

11. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 8.