Anti-interference method and system for Ethernet equipment

By configuring an adaptive filter on the medium-related interface of an Ethernet device to detect and respond to the saturation state and signal quality of the interface signal, the problem of Ethernet devices being disconnected when switching frequency points of the interference signal is solved, and stable communication and excellent anti-interference effect are achieved.

CN115987428BActive Publication Date: 2025-05-23MOTORCOMM (SHANGHAI) ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211649239.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-21
Publication Date
2025-05-23
Estimated Expiration
2042-12-21

AI Technical Summary

Technical Problem

In practical applications of Ethernet devices, the interference signal is distributed in the effective bandwidth of the signal, causing the bandpass filter to attenuate the Ethernet signal when attenuating the interference signal, and the signal overshoot during the interference frequency point switching causes the device to be disconnected.

Method used

The adaptive filter is pre-configured on the medium-related interface of the Ethernet device. By detecting the saturation state of the interface signal, it enters a protective state to prevent the device from being disconnected, and updates the filter coefficients of the filter when the signal quality decreases to adapt to the frequency change of the interfering signal.

Benefits of technology

It realizes the avoidance of equipment disconnection when the interference signal switches frequency points, ensures the stability of Ethernet communication, and improves the filtering effect of interfering signals distributed in the bandwidth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115987428B_ABST
    Figure CN115987428B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of Ethernet communication technology, and specifically to an anti-interference method and system for Ethernet equipment, including: obtaining an interface signal of a medium-related interface of an Ethernet equipment, and determining whether the interface signal is saturated; if so, setting a protection state for the Ethernet equipment, and continuously obtaining the interface signal until the medium-related interface exits the overshoot state; determining whether the signal quality on the medium-related interface decreases; if so, updating the filter coefficient of the adaptive filter. The beneficial effect is that by detecting the interface signal during the communication process of the Ethernet equipment, the Ethernet equipment is switched to a protection state when the interface signal overshoots to avoid the equipment from being disconnected, thereby achieving a relatively stable communication effect. Furthermore, by detecting the signal quality after determining that the overshoot state has ended to determine whether the frequency of the interference signal has switched, and updating the filter coefficient of the adaptive filter when the frequency switches, a better anti-interference effect is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Ethernet communication, and in particular to an anti-interference method and system for Ethernet equipment. Background Art

[0002] An adaptive filter is a filter that uses an adaptive algorithm to change the parameters and structure of the filter according to changes in the environment.

[0003] In the prior art, there is a solution for setting an adaptive filter for the interface of an Ethernet device. This type of technical solution usually detects the interface of the Ethernet device and determines the frequency of the interference signal, and then configures the filter to weaken the interference signal.

[0004] However, in the actual implementation process, the inventors found that in the actual application of Ethernet devices, interference signals are distributed in the effective bandwidth of the signal, which causes the common bandpass filter to attenuate the Ethernet signal in the process of attenuating the interference signal. At the same time, in the overall Ethernet communication process, the interference frequency will switch, and when the frequency switches, the signal will overshoot and cause signal saturation, which will cause the Ethernet device to disconnect. Summary of the invention

[0005] In view of the above problems existing in the prior art, an anti-interference method for Ethernet equipment is provided. On the other hand, an anti-interference system for Ethernet equipment applying the anti-interference method is also provided.

[0006] The specific technical solutions are as follows:

[0007] An anti-interference method for an Ethernet device is applicable to a medium-dependent interface of the Ethernet device, wherein an adaptive filter is pre-configured on the medium-dependent interface, and the anti-interference method comprises:

[0008] Step S1: obtaining an interface signal of a medium-related interface of the Ethernet device, and determining whether the interface signal is saturated;

[0009] If yes, go to step S2;

[0010] If not, return to step S1;

[0011] Step S2: setting a protection state for the Ethernet device and continuously acquiring the interface signal until the medium-related interface exits the overshoot state and then turning to step S3;

[0012] Step S3: determining whether the signal quality on the medium-related interface is degraded;

[0013] If yes, go to step S4;

[0014] If not, return to step S1;

[0015] Step S4: Update the filter coefficients of the adaptive filter, and then return to step S1.

[0016] On the other hand, the step S1 comprises:

[0017] Step S11: sampling the interface signal, and determining whether the signal sampling value of the interface signal is greater than a signal threshold value;

[0018] If yes, add one to the signal strength cumulative value, and then go to step S12;

[0019] If not, go to step S12;

[0020] Step S12: Determine whether the single sampling time has been reached;

[0021] If yes, go to step S13;

[0022] If not, return to step S11;

[0023] Step S13: determining whether the signal strength accumulated value is greater than a saturation threshold value;

[0024] If yes, it indicates that the interface signal is saturated, and the process goes to step S2;

[0025] If not, it indicates that the interface signal is not saturated, and the process returns to step S1.

[0026] On the other hand, the step S2 comprises:

[0027] Step S21: setting the filter coefficient to a fixed value so that the Ethernet device enters the protection state;

[0028] Step S22: sampling the interface signal, and determining whether the signal sampling value of the interface signal is less than an overshoot detection threshold;

[0029] If so, it indicates that the medium-related interface has exited the overshoot state, and the process goes to step S3;

[0030] If not, it indicates that the medium-related interface has not exited the overshoot state, and the process returns to step S22.

[0031] On the other hand, when executing step S2, a timing process is also included, and the timing process includes:

[0032] Step A1: When entering step S2, triggering a timer;

[0033] Step A2: after each execution of step S22, determining whether the medium-related interface exits the overshoot state;

[0034] If yes, end the timing process;

[0035] If not, go to step A3;

[0036] Step A3: Determine whether the timing result of the timer reaches a pre-configured offline duration;

[0037] If yes, take the Ethernet device offline and stop executing step S2;

[0038] If not, return to step A2.

[0039] On the other hand, the step S3 comprises:

[0040] Step S31: obtaining the interface signal with a preset length as an intercepted signal, determining whether the intercepted signal can be decoded and outputting a decoding status result;

[0041] Step S32: Return to step S31 to obtain a plurality of decoding status results and form a decoding status result sequence, and determine whether the signal interface cannot decode for multiple consecutive frames according to the decoding status result sequence;

[0042] If yes, it indicates that the signal quality of the interface signal has deteriorated, and the process goes to step S4;

[0043] If not, it indicates that the signal quality of the interface signal has not decreased, and the process returns to step S1.

[0044] On the other hand, the step S4 comprises:

[0045] Step S41: estimating a noise signal contained in the interface signal based on a preconfigured reference signal;

[0046] Step S42: generating tap weights according to the estimation results;

[0047] Step S43: Use the tap weights to update the filter coefficients, and then return to step S1.

[0048] On the other hand, before executing the step S1, a filter coefficient configuration process is also included, and the filter coefficient configuration process includes:

[0049] Step S01: when the Ethernet establishes a communication connection, updating the filter coefficient according to the interface signal;

[0050] Step S02: caching the current filter coefficients, and then returning to step S01 to obtain new filter coefficients, until the iteration condition is met and then turning to step S03;

[0051] Step S03: Generate an average filter coefficient according to the plurality of buffered filter coefficients as the filter coefficient actually outputted.

[0052] An anti-interference system for Ethernet equipment, used to implement the above anti-interference method, comprising:

[0053] an overshoot state detection module, the overshoot state detection module acquiring an interface signal of a medium-related interface of the Ethernet device and determining whether the interface signal is saturated;

[0054] A protection module, the protection module is connected to the overshoot state detection module, the protection module sets a protection state for the Ethernet device, and continuously obtains the interface signal until the medium-related interface exits the overshoot state;

[0055] A signal quality assessment module, the signal quality assessment module is connected to the protection module, and the signal quality assessment module detects the signal quality of the interface signal after the medium-related interface exits the overshoot state;

[0056] An updating module, wherein the updating module is connected to the signal quality evaluation module, and the updating module updates the filter coefficient of the adaptive filter when the signal quality decreases.

[0057] On the other hand, the overshoot state detection module includes:

[0058] A sampling module, wherein the sampling module samples the interface signal in a single sampling time and counts the signal sampling values ​​of the interface signal that are greater than a signal threshold value;

[0059] The first judgment module is connected to the sampling module. After sampling, the first judgment module compares the signal strength accumulated value with the saturation threshold value to determine whether the interface signal is saturated.

[0060] On the other hand, the protection module includes:

[0061] A state setting module, wherein the state setting module sets the filter coefficient to a fixed value so that the Ethernet device enters the protection state;

[0062] An overshoot judgment module is configured to sample the interface signal and judge whether the overshoot state is ended according to a signal sampling value of the interface signal and an overshoot detection threshold.

[0063] On the other hand, the signal quality assessment module includes:

[0064] A decoding module, wherein the decoding module obtains the interface signal with a preset length as an intercepted signal, and decodes the intercepted signal to generate a decoding status result;

[0065] The second judgment module is connected to the decoding module, and the second judgment module assembles the decoding status results into a decoding status result sequence, and judges whether the signal quality of the interface signal is reduced according to the decoding status result sequence.

[0066] The above technical solution has the following advantages or beneficial effects:

[0067] In view of the problem that the Ethernet anti-interference solution in the prior art easily causes the device to be disconnected when the interference signal switches the frequency, in this embodiment, the interface signal is detected during the communication process of the Ethernet device, and when the interface signal overshoots, the Ethernet device is switched to a protection state to avoid the device from being disconnected, thereby achieving a relatively stable communication effect. Furthermore, after judging that the overshoot state ends, the signal quality is detected to determine whether the frequency of the interference signal is switched, and the filter coefficient of the adaptive filter is updated when the frequency is switched, thereby achieving a better anti-interference effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The embodiments of the present invention will be described more fully with reference to the attached drawings, which are provided for illustration and description only and are not intended to limit the scope of the present invention.

[0069] Figure 1 It is an overall schematic diagram of an embodiment of the present invention;

[0070] Figure 2 This is a schematic diagram of sub-steps of step S1 in an embodiment of the present invention;

[0071] Figure 3 This is a schematic diagram of sub-steps of step S2 in an embodiment of the present invention;

[0072] Figure 4 This is a schematic diagram of the timing process in an embodiment of the present invention;

[0073] Figure 5 This is a schematic diagram of sub-steps of step S3 in an embodiment of the present invention;

[0074] Figure 6 This is a schematic diagram of sub-steps of step S4 in an embodiment of the present invention;

[0075] Figure 7 A schematic diagram of a filter coefficient configuration process in an embodiment of the present invention;

[0076] Figure 8Schematic diagram of an anti-interference system in an embodiment of the present invention;

[0077] Fig. 9 Schematic diagram of an overshoot state detection module in an embodiment of the present invention;

[0078] Fig.10 This is a schematic diagram of a protection module in an embodiment of the present invention;

[0079] Fig.11 Schematic diagram of a signal quality assessment module in an embodiment of the present invention. DETAILED DESCRIPTION

[0080] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0081] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0082] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.

[0083] The present invention comprises:

[0084] An anti-interference method for an Ethernet device is applicable to a medium-dependent interface of the Ethernet device, where an adaptive filter is pre-configured on the medium-dependent interface. The anti-interference method includes:

[0085] Step S1: obtaining an interface signal of a medium-related interface of an Ethernet device, and determining whether the interface signal is saturated;

[0086] If yes, go to step S2;

[0087] If not, return to step S1;

[0088] Step S2: Setting the protection state for the Ethernet device and continuously acquiring the interface signal until the medium-related interface exits the overshoot state and then turning to step S3;

[0089] Step S3: determining whether the signal quality on the medium-related interface is degraded;

[0090] If yes, go to step S4;

[0091] If not, return to step S1;

[0092] Step S4: Update the filter coefficients of the adaptive filter, and then return to step S1.

[0093] Specifically, in view of the problem that the Ethernet filtering solution in the prior art is prone to cause the device to be disconnected when the signal overshoot occurs, in this embodiment, the interface signal is obtained on the medium-dependent interface (Medium Dependent Interface, MDI) of the Ethernet device, and based on the interface signal, it is further determined whether the interface signal is in a saturated state; if so, it indicates that the current medium-dependent interface has entered an overshoot state due to the interference signal, thereby triggering a protection state to prevent the Ethernet device from being disconnected. By setting this triggering mode, effective monitoring of the interference signal on the port of the Ethernet device is achieved, thereby avoiding the problem of the Ethernet device being disconnected due to the overshoot signal.

[0094] Furthermore, in order to address the problem that the adaptive filter scheme in the prior art has poor filtering effect on interference signals distributed in the bandwidth, in this embodiment, after the overshoot state ends, the signal quality is further monitored to see whether it decreases; if it decreases, it indicates that the frequency of the interference signal has changed relative to the frequency of the previous interference signal, and the filter coefficient of the adaptive filter is updated to achieve a better filtering effect.

[0095] In one embodiment, Figure 2 As shown, step S1 includes:

[0096] Step S11: sampling the interface signal and determining whether the signal sampling value of the interface signal is greater than the signal threshold value;

[0097] If yes, add 1 to the signal strength cumulative value, and then go to step S12;

[0098] If not, go to step S12;

[0099] Step S12: Determine whether the single sampling time has been reached;

[0100] If yes, go to step S13;

[0101] If not, return to step S11;

[0102] Step S13: Determine whether the accumulated signal strength value is greater than the saturation threshold value;

[0103] If yes, it indicates that the interface signal is saturated, and the process goes to step S2;

[0104] If not, it indicates that the interface signal is not saturated, and the process returns to step S1.

[0105] Specifically, in order to achieve a better judgment effect on the status of the interface signal, in this embodiment, for the interface signal, it is selected to sample the interface signal multiple times in a single sampling time, and judge the sampling value obtained by each sampling, that is, whether the signal amplitude at the time of sampling is greater than the signal threshold value; if the cumulative value of the signal strength in a single sampling time exceeds the saturation threshold value, it indicates that the multiple signal sampling values ​​in the current sampling time are large, and the signal saturation condition is met, which further indicates that the Ethernet device may have entered an overshoot state due to an interference signal, thereby achieving a better judgment effect on the signal status and avoiding the problem of false triggering caused by occasional mutation signals.

[0106] In one embodiment, Figure 3 As shown, step S2 includes:

[0107] Step S21: setting the filter coefficient to a fixed value so that the Ethernet device enters a protection state;

[0108] Step S22: sampling the interface signal, and determining whether the signal sampling value of the interface signal is less than the overshoot detection threshold;

[0109] If yes, it indicates that the medium-related interface has exited the overshoot state, and the process goes to step S3;

[0110] If not, it indicates that the medium-dependent interface has not exited the overshoot state, and the process returns to step S22.

[0111] Specifically, in view of the problem that the Ethernet filtering scheme in the prior art is prone to cause the device to disconnect when a signal overshoot occurs, the inventor retrieved the debugging logs of various Ethernet devices and found that for some Ethernet devices, when a signal overshoot occurs, the adaptive filter will automatically adjust the filter coefficient to try to increase the filter strength to eliminate the interference signal, which results in a strong interference signal, and when it is distributed in multiple frequency points in the bandwidth, it may cause the adaptive filter to filter out the normal Ethernet signal, thereby causing the Ethernet device to disconnect. Based on the above reasons, in this embodiment, when the Ethernet device enters the protection state, the filter coefficient of the adaptive filter is locked to avoid the problem of device disconnection caused by the update mechanism of the adaptive filter, and the interface signal is sampled and judged with the overshoot detection threshold to determine whether the overshoot state is over, so as to achieve a better protection effect on the connection state of the Ethernet device.

[0112] In one embodiment, the execution of step S2 also includes a timing process, such as Figure 4 As shown, the timing process includes:

[0113] Step A1: When entering step S2, trigger the timer;

[0114] Step A2: after each execution of step S22, determining whether the medium-related interface exits the overshoot state;

[0115] If yes, end the timing process;

[0116] If not, go to step A3;

[0117] Step A3: Determine whether the timing result of the timer reaches the pre-configured offline duration;

[0118] If yes, take the Ethernet device offline and stop executing step S2;

[0119] If not, return to step A2.

[0120] Specifically, in order to achieve a better control effect on the Ethernet device, in this embodiment, when executing step S2, the duration of the device entering the overshoot state is further timed. When the device continues to enter the overshoot state, the timing result output by the timer is used to determine whether the offline duration has been reached; if reached, it indicates that the device is in an overshoot state for a long time, and the Ethernet device should be triggered to disconnect.

[0121] In one embodiment, Figure 5 As shown, step S3 includes:

[0122] Step S31: obtaining an interface signal with a preset length as an intercepted signal, determining whether the intercepted signal can be decoded and outputting a decoding status result;

[0123] Step S32: Return to step S31 to obtain a plurality of decoding status results and form a decoding status result sequence, and determine whether a plurality of consecutive frames of interface signals cannot be decoded according to the decoding status result sequence;

[0124] If yes, it indicates that the signal quality of the interface signal has deteriorated, and the process goes to step S4;

[0125] If not, it indicates that the signal quality of the interface signal has not decreased, and the process returns to step S1.

[0126] Specifically, in view of the problem that the signal quality is usually estimated only by the signal-to-noise ratio in the prior art, and it is difficult to accurately measure the signal quality when the Ethernet device introduces a single-frequency interference signal, in this embodiment, an interface signal of a specific length is obtained as an intercepted signal, and it is determined whether the intercepted signal can be decoded to generate a decoding state result, and then a decoding state result sequence is formed. For example, in one embodiment, 0 indicates that it cannot be decoded, and 1 indicates that it can be decoded, then the decoding state result sequence may be "1100001", and the maximum continuous length of the 0 bits in the decoding state sequence is obtained and compared with the pre-configured decoding threshold to determine whether multiple consecutive sections of the interface signal cannot be decoded. When multiple consecutive sections of the interface signal all have decoding errors, it indicates that the signal quality has decreased, thereby achieving a better detection effect on the interference signal.

[0127] In one embodiment, Figure 6 As shown, step S4 includes:

[0128] Step S41: estimating a noise signal contained in the interface signal based on a pre-configured reference signal;

[0129] Step S42: generating tap weights according to the estimation results;

[0130] Step S43: Update the filter coefficients using the tap weights, and then return to step S1.

[0131] In one embodiment, before executing step S1, a filter coefficient configuration process is also included, such as Figure 7 As shown, the filter coefficient configuration process includes:

[0132] Step S01: When the Ethernet device establishes a communication connection, the filter coefficient is updated according to the interface signal;

[0133] Step S02: Cache the current filter coefficients, then return to step S01 to obtain new filter coefficients, and turn to step S03 after the iteration condition is met;

[0134] Step S03: Generate an average filter coefficient according to the plurality of buffered filter coefficients as the filter coefficient actually outputted.

[0135] Specifically, in response to the problem that the adaptive filter in the prior art has poor filtering effect on interference signals at multiple frequency points distributed in the bandwidth, in this embodiment, during the process of initializing the Ethernet device and establishing a communication connection, the filter coefficients are updated and cached in sequence until the iteration conditions are met, and the average filter coefficient is generated according to the cached filter coefficient as the actual output filter coefficient, so as to achieve a better filtering effect.

[0136] In the implementation process, the iteration condition may be that the filter coefficients converge to a certain degree, or a specific number of iterations. The generation of the average filter coefficients may be based on the average generation of all filter coefficients, or may be based on the average generation of multiple recent filter coefficients.

[0137] An anti-interference system for Ethernet equipment is used to implement the above anti-interference method, such as Figure 8 As shown, including:

[0138] An overshoot state detection module 1, the overshoot state detection module 1 obtains an interface signal of a medium-related interface of an Ethernet device and determines whether the interface signal is saturated;

[0139] The protection module 2 is connected to the overshoot state detection module 1, and the protection module 2 sets the protection state for the Ethernet device and continuously obtains the interface signal until the medium-related interface exits the overshoot state;

[0140] A signal quality evaluation module 3, the signal quality evaluation module 3 is connected to the protection module 2, and the signal quality evaluation module 3 detects the signal quality of the interface signal after the medium-related interface exits the overshoot state;

[0141] The updating module 4 is connected to the signal quality evaluation module 3, and the updating module 4 updates the filter coefficient of the adaptive filter when the signal quality decreases.

[0142] Specifically, in view of the problem that the Ethernet filtering solution in the prior art is prone to cause the device to be disconnected when the signal overshoot occurs, in this embodiment, the overshoot state detection module 1 is set to obtain the interface signal on the medium-related interface of the Ethernet device, and further determine whether the interface signal is in a saturated state based on the interface signal; if so, it indicates that the current medium-related interface has entered an overshoot state due to the interference signal, thereby triggering the protection module 2 to enter a protection state to prevent the Ethernet device from being disconnected. By setting this triggering mode, the interference signal on the port of the Ethernet device is effectively monitored, thereby avoiding the problem of the Ethernet device being disconnected due to the overshoot signal.

[0143] Furthermore, in response to the problem that the adaptive filter scheme in the prior art has poor filtering effect on interference signals distributed in the bandwidth, in this embodiment, a signal quality evaluation module 3 is used to further evaluate whether the signal quality has decreased after the overshoot state ends; if it has decreased, it indicates that the frequency of the interference signal has changed relative to the frequency of the previous interference signal, and the filter coefficient of the adaptive filter is updated through the update module 4 to achieve a better filtering effect.

[0144] In one embodiment, Fig. 9 As shown, the overshoot state detection module 1 includes:

[0145] The sampling module 11 samples the interface signal in a single sampling time and counts the signal sampling values ​​of the interface signal that are greater than the signal threshold value;

[0146] The first judgment module 12 is connected to the sampling module. After sampling, the first judgment module 12 compares the signal strength accumulation value with the saturation threshold value to determine whether the interface signal is saturated.

[0147] Specifically, in order to achieve a better judgment effect on the state of the interface signal, in this embodiment, for the interface signal, the sampling module 11 samples the interface signal multiple times in a single sampling time, and the first judgment module 12 is used to judge the sampling value obtained each time, that is, whether the signal amplitude at the time of sampling is greater than the signal threshold value; if the cumulative value of the signal strength in a single sampling time exceeds the saturation threshold value, it indicates that the multiple signal sampling values ​​in the current sampling time are all large, and the signal saturation condition is met, which further indicates that the Ethernet device may have entered an overshoot state due to an interference signal, thereby achieving a better judgment effect on the signal state and avoiding the problem of false triggering caused by occasional mutation signals.

[0148] In one embodiment, Fig.10 As shown, the protection module 2 includes:

[0149] A state setting module 21, the state setting module 21 sets the filter coefficient to a fixed value so that the Ethernet device enters a protection state;

[0150] The overshoot judging module 22 samples the interface signal and judges whether the overshoot state ends according to the signal sampling value of the interface signal and the overshoot detection threshold.

[0151] Specifically, with respect to the Ethernet filtering scheme in the prior art, when a signal overshoot occurs, the device is easily disconnected. In this embodiment, when the Ethernet device enters the protection state, the filter coefficient of the adaptive filter is locked by the state setting module 21 to avoid the device disconnection problem caused by the update mechanism of the adaptive filter. The overshoot judgment module 22 samples the interface signal and judges it with the overshoot detection threshold to determine whether the overshoot state is ended, thereby achieving a better protection effect on the connection state of the Ethernet device.

[0152] In one embodiment, Fig.11 As shown, the signal quality assessment module 3 includes:

[0153] A decoding module 31, the decoding module 31 obtains an interface signal with a preset length as an intercepted signal, and decodes the intercepted signal to generate a decoding status result;

[0154] The second judgment module 32 is connected to the decoding module 31. The second judgment module 32 assembles the decoding status results into a decoding status result sequence, and judges whether the signal quality of the interface signal is reduced according to the decoding status result sequence.

[0155] Specifically, in view of the problem that the signal quality is usually estimated only by the signal-to-noise ratio in the prior art, and it is difficult to accurately measure the signal quality when the Ethernet device introduces a single-frequency interference signal, in this embodiment, the decoding module 31 obtains an interface signal of a specific length as an intercepted signal, and determines whether the intercepted signal can be decoded to generate a decoding state result, and the second judgment module 32 assembles it into a decoding state result sequence to determine whether multiple consecutive intercepted signals cannot be decoded. Subsequently, when multiple consecutive intercepted signals all have decoding errors, it indicates that the signal quality has decreased, thereby achieving a better detection effect on the interference signal.

[0156] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the description and illustrations of the present invention should be included in the protection scope of the present invention.

Claims

1. An anti-interference method for Ethernet equipment, It is characterized in that Applicable to the medium-dependent interface of the Ethernet device, the medium-dependent interface is pre-configured with an adaptive filter, and the anti-interference method includes: Step S1: obtaining an interface signal of a medium-related interface of the Ethernet device, and determining whether the interface signal is saturated; If yes, go to step S2; If not, return to step S1; Step S2: setting a protection state for the Ethernet device and continuously acquiring the interface signal until the medium-related interface exits the overshoot state and then turns to step S3; Step S3: determining whether the signal quality on the medium-related interface is degraded; If yes, go to step S4; If not, return to step S1; Step S4: Update the filter coefficients of the adaptive filter, and then return to step S1.

2. The anti-interference method according to claim 1, It is characterized in that The step S1 comprises: Step S11: sampling the interface signal, and determining whether the signal sampling value of the interface signal is greater than a signal threshold value; If yes, add one to the signal strength cumulative value, and then go to step S12; If not, go to step S12; Step S12: Determine whether the single sampling time has been reached; If yes, go to step S13; If not, return to step S11; Step S13: determining whether the signal strength accumulated value is greater than a saturation threshold value; If yes, it indicates that the interface signal is saturated, and the process goes to step S2; If not, it indicates that the interface signal is not saturated, and the process returns to step S1.

3. The anti-interference method according to claim 1, It is characterized in that The step S2 comprises: Step S21: setting the filter coefficient to a fixed value so that the Ethernet device enters the protection state; Step S22: sampling the interface signal, and determining whether the signal sampling value of the interface signal is less than an overshoot detection threshold; If so, it indicates that the medium-related interface has exited the overshoot state, and the process goes to step S3; If not, it indicates that the medium-related interface has not exited the overshoot state, and the process returns to step S22.

4. The anti-interference method according to claim 3, It is characterized in that When executing step S2, a timing process is also included, and the timing process includes: Step A1: When entering step S2, triggering a timer; Step A2: after each execution of step S22, determining whether the medium-related interface exits the overshoot state; If yes, end the timing process; If not, go to step A3; Step A3: Determine whether the timing result of the timer reaches a pre-configured offline duration; If yes, take the Ethernet device offline and stop executing step S2; If not, return to step A2.

5. The anti-interference method according to claim 1, It is characterized in that The step S3 comprises: Step S31: obtaining the interface signal with a preset length as an intercepted signal, determining whether the intercepted signal can be decoded and outputting a decoding status result; Step S32: Return to step S31 to obtain a plurality of the decoding status results and form a decoding status result sequence, and determine whether the interface signal cannot be decoded for multiple consecutive frames according to the decoding status result sequence; If yes, it indicates that the signal quality of the interface signal has deteriorated, and the process goes to step S4; If not, it indicates that the signal quality of the interface signal has not decreased, and the process returns to step S1.

6. The anti-interference method according to claim 1, It is characterized in that The step S4 comprises: Step S41: estimating a noise signal contained in the interface signal based on a preconfigured reference signal; Step S42: generating tap weights according to the estimation results; Step S43: Use the tap weights to update the filter coefficients, and then return to step S1.

7. The anti-interference method according to claim 1, It is characterized in that Before executing the step S1, a filter coefficient configuration process is also included, and the filter coefficient configuration process includes: Step S01: when the Ethernet device establishes a communication connection, updating the filter coefficient according to the interface signal; Step S02: caching the current filter coefficients, and then returning to step S01 to obtain new filter coefficients, until the iteration condition is met and then turning to step S03; Step S03: Generate an average filter coefficient according to the plurality of buffered filter coefficients as the filter coefficient actually outputted. 8.An anti-interference system for Ethernet equipment, It is characterized in that Used to implement the anti-interference method according to any one of claims 1 to 7, comprising: an overshoot state detection module, the overshoot state detection module acquiring an interface signal of a medium-related interface of the Ethernet device and determining whether the interface signal is saturated; A protection module, the protection module is connected to the overshoot state detection module, the protection module sets a protection state for the Ethernet device, and continuously obtains the interface signal until the medium-related interface exits the overshoot state; A signal quality assessment module, the signal quality assessment module is connected to the protection module, and the signal quality assessment module detects the signal quality of the interface signal after the medium-related interface exits the overshoot state; An updating module, wherein the updating module is connected to the signal quality evaluation module, and the updating module updates the filter coefficient of the adaptive filter when the signal quality decreases.

9. The anti-interference system according to claim 8, It is characterized in that The overshoot state detection module comprises: A sampling module, wherein the sampling module samples the interface signal in a single sampling time and counts the signal sampling values ​​of the interface signal that are greater than a signal threshold value; The first judgment module is connected to the sampling module. After sampling, the first judgment module compares the signal strength accumulation value with the saturation threshold value to determine whether the interface signal is saturated.

10. The anti-interference method according to claim 8, It is characterized in that The protection module comprises: A state setting module, wherein the state setting module sets the filter coefficient to a fixed value so that the Ethernet device enters the protection state; An overshoot judgment module is configured to sample the interface signal and judge whether the overshoot state is ended according to a signal sampling value of the interface signal and an overshoot detection threshold.

Citation Information

Patent Citations

  • Ethernet signal receiving device and control method thereof

    CN105337624A

  • Overcurrent protection method and device for motor controller

    CN112736848A