Power communication pulse interference suppression method and device
Kalman filtering obtains the pulse amplitude average of the power communication signal in real time, and dynamically adjusts the judgment threshold value, real-time detection and suppression of pulse interference in power communication, solving the problems of complex and delay in existing methods, reducing power consumption and processing delay.
Patent Information
- Application Number
- CN202211358357.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-01
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-11-01
AI Technical Summary
The existing power line pulse noise detection and elimination methods are complex in processing and have a large delay, which is not conducive to real-time processing. It also requires the design of circuits that store sampled data, resulting in large power consumption and processing delays.
The average pulse amplitude of the sampled data is obtained in real time by using Kalman filtering, and the judgment threshold value is calculated through this average, the amplitude of the sampled data is compared with the threshold value, and whether it is an interference pulse, and it is replaced with the current pulse amplitude average to suppress interference.
The use of memory is reduced, the power consumption and processing delay caused by the memory circuit are avoided, and its suppression is achieved when an interference pulse is detected, the stable signal power obtained by the subsequent AGC circuit is maintained, and the probability of misalignment caused by pulse interference is reduced.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power communication technology, and in particular to a power communication pulse interference suppression method and a power communication pulse interference suppression device. Background Art
[0002] In power communication technology, power line carrier communication is a power system communication that uses transmission lines as the transmission medium of carrier signals. It has been widely used in smart homes, power consumption information collection, and electrical equipment monitoring due to its advantages of low construction cost and wide coverage. In order to achieve high-speed data transmission on power transmission lines, the current mainstream power line carrier communication protocols all use orthogonal frequency division multiplexing OFDM (Orthogonal Frequency Division Multiplexing) technology. The OFDM communication system can effectively combat signal distortion caused by factors such as multipath fading, narrowband interference, background noise, and impulse noise through technologies such as cyclic prefix, channel interleaving, diversity copy, and channel coding.
[0003] Due to the diversity of power system loads and the randomness of load on and off, various impulse noises randomly appear on power transmission lines. Their noise characteristics are very different from wireless communications, including periodic impulse noise synchronized with the power frequency and single pulse noise unrelated to the system frequency. These two types of noise are time-varying noises at the microsecond and millisecond levels. When a pulse occurs, the noise will spread to all subcarriers in the frequency domain and the power spectrum is very high, which can easily cause the saturation of the OFDM receiver's time-frequency transform FFT, resulting in burst errors in data transmission and reducing system performance. Therefore, effective measures need to be taken to detect and suppress impulse noise.
[0004] Existing methods for detecting and eliminating power line impulse noise include frequency domain processing, time-frequency transform processing, compressed sensing, time domain processing, etc. Frequency domain processing is based on channel state information (CSI) or channel frequency domain response (CFR) to suppress impulse noise. This method cannot overcome the FFT saturation caused by limited word length under strong impulse noise. Time-frequency transform processing is to obtain noise in the frequency domain first, then transform it to the time domain to retain only the impulse noise, and then subtract it in the time domain. This method is cumbersome, has large delay and high complexity. The compressed sensing method uses the sparse characteristics of impulse noise in the time domain and the virtual subcarriers in the frequency domain to reconstruct the impulse noise more accurately, but this method reduces the spectrum utilization and is also very complex. Therefore, the three methods of frequency domain processing, time-frequency transform processing, and compressed sensing are all complex to process and have large delays, which are not conducive to real-time processing.
[0005] The time domain processing method is to directly determine the width and amplitude of the pulse in the time domain, and detect and suppress the pulse noise according to the corresponding threshold, which is relatively simple. The existing time domain processing method needs to sample the received signal and store a certain amount of sampled data, calculate the average power or mean of the stored sampled data, and perform pulse detection and elimination on the current sampled data based on the average power or mean combined with the received signal power. This method requires the design of a circuit to store the sampled data, which has a large circuit area and power consumption, and will cause a large processing delay. Summary of the invention
[0006] In order to solve the above technical defects, a method and device for suppressing power communication pulse interference are provided in an embodiment of the present application.
[0007] According to a first aspect of an embodiment of the present application, a method for suppressing power communication pulse interference is provided, comprising:
[0008] Perform analog-to-digital conversion on the power communication signal and output sampling data;
[0009] The pulse amplitude mean of the sampled data is obtained in real time by using the Kalman filter method;
[0010] The decision threshold value is obtained according to the average value of the pulse amplitude of the sampled data;
[0011] The amplitude of the sampled data is compared with the decision threshold value, and whether the sampled data is an interference pulse is determined according to the comparison result. The sampled data determined to be an interference pulse is replaced with the pulse amplitude mean value of the current sampled data and then output to suppress the interference pulse.
[0012] In the embodiment of the present application, the pulse amplitude mean of the sampled data is obtained in real time by means of Kalman filtering, including:
[0013] Using real-time sampling data as the input value of the filter of Kalman filtering method;
[0014] The filter performs subtraction, shifting and accumulation averaging calculations on the sampled data to obtain the pulse amplitude mean of the sampled data.
[0015] In the embodiment of the present application, the filter performs subtraction, shifting, and accumulation and averaging calculations on the sampled data to obtain the pulse amplitude mean of the sampled data, including:
[0016] Delay the sampled data by two clock cycles and then take the absolute value;
[0017] Shifting the difference between the output value of the accumulator and the absolute value by N bits to obtain a shift value;
[0018] Using the difference between the output value of the accumulator and the shift value as the new input value of the accumulator;
[0019] In the current clock cycle, the new input value is updated to the accumulator, and in the next clock cycle, the output value of the accumulator is calculated according to the new input value, and the output value of the accumulator is used as the output value of the filter, and the output value of the filter is used as the pulse amplitude mean of the sampling data.
[0020] In the embodiment of the present application, the shift coefficient N of the filter changes dynamically based on the change of the output value of the filter.
[0021] In the embodiment of the present application, the shift coefficient N is generated by dynamic programming according to the change of the output value of the filter.
[0022] In an embodiment of the present application, the method further includes: when the sampling data determined to be an interference pulse is replaced with the current pulse amplitude mean, outputting a selection signal to the filter; the filter selects the output value of the accumulator as the input value of the filter in the current clock cycle.
[0023] In the embodiment of the present application, the decision threshold is dynamically adjusted based on the change of the pulse amplitude mean of the real-time sampling data.
[0024] In the embodiment of the present application, the decision threshold value is the product of the pulse amplitude mean of the sampling data and the comparison coefficient K; the comparison coefficient K is generated by dynamic programming according to the change of the pulse amplitude mean of the sampling data.
[0025] In an embodiment of the present application, the amplitude of the sampled data is compared with the decision threshold value, and whether the sampled data is an interference pulse is determined according to the comparison result, and the sampled data determined to be an interference pulse is replaced with the pulse amplitude mean of the current sampled data and then output, including:
[0026] Compare the amplitude of the sampled data with the decision threshold value, and determine that the at least three consecutive sampled data are interference pulses under the condition that the amplitudes of at least three consecutive sampled data exceed the decision threshold value; replace the sampled data determined to be the interference pulse with the pulse amplitude mean of the current sampled data and output it to the subsequent signal processing module
[0027] According to a second aspect of an embodiment of the present application, there is provided a power communication pulse interference suppression device, comprising:
[0028] An analog-to-digital converter, used for performing analog-to-digital conversion on a power communication signal and outputting sampling data;
[0029] A filter, used for calculating the pulse amplitude mean of the sampling data output by the analog-to-digital converter in real time by means of Kalman filtering;
[0030] The interference pulse suppression module is used to calculate the decision threshold value according to the pulse amplitude mean of the sampled data, compare the amplitude of the sampled data with the decision threshold value, determine whether the sampled data is an interference pulse according to the comparison result, replace the sampled data determined to be an interference pulse with the pulse amplitude mean of the current sampled data and then output it to suppress the interference pulse.
[0031] In the embodiment of the present application, the input value of the filter is the sampled data output by the analog-to-digital converter, and the output value of the filter is the pulse amplitude mean of the sampled data;
[0032] The filter comprises an absolute value circuit, a first subtractor, a second subtractor, a dynamic shifter and an accumulator; the absolute value circuit takes the absolute value of the sampled data delayed by two clock cycles and outputs it to the first subtractor; the first subtractor outputs the difference between the output value of the accumulator and the absolute value output by the absolute value circuit to the dynamic shifter; the dynamic shifter right-shifts the difference output by the first subtractor by N bits to obtain a shift value and outputs it to the second subtractor; the second subtractor takes the difference between the output value of the accumulator and the shift value output by the dynamic shifter as a new input value of the accumulator, and updates the new input value to the accumulator in the current clock cycle; the output value of the accumulator serves as the output value of the filter.
[0033] In an embodiment of the present application, the filter further includes a selector, which is used to select an output value of the accumulator to be input into the absolute value circuit according to a selection signal fed back by the interference pulse suppression module.
[0034] In an embodiment of the present application, the interference pulse suppression module includes a multiplier, a comparator and a selector; the multiplier calculates the product of the output value of the filter and the comparison coefficient K and outputs it to the comparator, and the product is used as the decision threshold value of the comparator; the comparator compares the amplitude of the input sampling data with the decision threshold value to obtain a comparison result; the selector selects one of the input sampling data delayed by two clock cycles and the output value of the filter according to the comparison result of the comparator and outputs it.
[0035] In an embodiment of the present application, the interference pulse suppression module has multiple groups of comparators, and the multiple groups of comparators correspond to multiple continuous sampling data for comparison; the comparison results of the multiple groups of comparators are logically ANDed with the output signals of the detectors with the same sign, and then output to the logic OR gate, and then output to the selector through the logic OR gate.
[0036] In the embodiment of the present application, the device further includes:
[0037] The coefficient generation module is used to dynamically generate the shift coefficient N of the filter and the comparison coefficient K of the interference pulse suppression module according to the change of the output value of the filter.
[0038] In the embodiment of the present application, the coefficient generation module includes:
[0039] A register group storing a step comparison threshold;
[0040] A comparator group, used for comparing the output value of the filter with the step comparison threshold stored in the register group;
[0041] The register group is used to determine the output values of the shift coefficient N and the comparison coefficient K according to the comparison result of the comparator group.
[0042] The power communication pulse interference suppression method provided in the embodiment of the present application adopts a time domain processing method. It does not obtain the amplitude average value of the sampled data by storing the sampled data, but obtains the amplitude average value of the sampled data in real time through the Kalman filtering method as the amplitude average value, thereby obtaining the decision threshold required for interference pulse detection. This method reduces the use of memory and avoids the power consumption and processing delay caused by the memory circuit; when an interference pulse is detected, the interference pulse is replaced with the pulse amplitude average value of the current sampled data, and the interference pulse is suppressed while the pulse is detected, which can ensure that the subsequent automatic gain control (AGC) circuit can obtain a relatively stable signal power, reduce the probability of misadjustment caused by pulse interference, and keep the AGC gain stable.
[0043] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0045] Figure 1 A flowchart of a pulse interference suppression method for OFDM power communication provided in an embodiment of the present application;
[0046] Figure 2 It is a structural block diagram of a pulse interference suppression device for OFDM power communication provided in an embodiment of the present application;
[0047] Figure 3 is a schematic diagram of a logic circuit of a filter provided in an embodiment of the present application;
[0048] Figure 4 is a schematic diagram of a logic circuit of an interference pulse suppression module provided in an embodiment of the present application;
[0049] Figure 5 It is a structural block diagram of the coefficient generation module provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0051] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0052] As introduced in the background technology, the existing time domain processing method needs to sample the received signal and store a certain amount of sampled data, calculate the average power or mean of the stored sampled data, and perform pulse detection and elimination on the current sampled data based on the average power or mean and combined with the received signal power. This type of method requires the design of a circuit to store the sampled data, which has a large circuit area and power consumption, and will result in a large processing delay.
[0053] In order to improve the above problems, an embodiment of the present application provides a method for suppressing power communication pulse interference, which performs analog-to-digital conversion on the power communication signal and outputs sampled data; obtains the pulse amplitude mean of the sampled data in real time through Kalman filtering; obtains the decision threshold value according to the pulse amplitude mean of the sampled data; compares the amplitude of the sampled data with the decision threshold value, determines whether the sampled data is an interference pulse according to the comparison result, replaces the sampled data determined to be an interference pulse with the pulse amplitude mean of the current sampled data and outputs it to suppress the interference pulse. The present application adopts a time domain processing method, but does not obtain the amplitude mean of the sampled data by storing the sampled data, but obtains the pulse amplitude mean of the sampled data in real time as the amplitude mean through Kalman filtering, thereby obtaining the decision threshold required for interference pulse detection, which reduces the use of memory and avoids power consumption and processing delays caused by memory circuits. When an interference pulse is detected, the present application replaces the interference pulse with the pulse amplitude mean of the current sampling data, and simultaneously realizes the suppression of the interference pulse during pulse detection, so that the subsequent automatic gain control (AGC) circuit can obtain a relatively stable signal power, reduce the probability of misadjustment due to pulse interference, and keep the AGC gain stable.
[0054] Figure 1 This is a flow chart of a pulse interference suppression method for OFDM power communication provided in an embodiment of the present application. Figure 1As shown, the embodiment of the present application provides a pulse interference suppression method for OFDM power communication. Taking the OFDM technology mainly used in power line carrier communication as an example, the pulse interference suppression method for OFDM communication includes the following steps:
[0055] Step 102, performing analog-to-digital conversion on the OFDM signal to output sampled data;
[0056] Step 104, obtaining the pulse amplitude mean of the sampled data in real time by means of Kalman filtering;
[0057] Step 106, obtaining a decision threshold value according to the average value of the pulse amplitude of the sampled data;
[0058] Step 108, compare the pulse amplitude value of the sampled data with the decision threshold value, determine whether the sampled data is an interference pulse based on the comparison result, replace the sampled data determined to be an interference pulse with the pulse amplitude mean value of the current sampled data and then output it to suppress the interference pulse.
[0059] Kalman filtering is an algorithm that uses the linear system state equation to optimally estimate the system state through the system input and output observation data. Kalman filtering can estimate the state of a dynamic system from a series of data with measurement noise, is easy to implement in computer programming, and can update and process the data collected on site in real time.
[0060] In one embodiment, in the above step 104, the real-time sampled data is used as the input value of the filter of the Kalman filter mode, and the filter performs subtraction, shifting and accumulation and averaging calculation on the sampled data to obtain the pulse amplitude mean of the sampled data. Specifically, the absolute value of the sampled data is taken after delaying two clock cycles, and the difference between the output value of the accumulator and the absolute value is shifted by N bits to obtain the shift value, and the difference between the output value of the accumulator and the shift value is used as the new input value of the accumulator. The new input value is updated to the accumulator in the current clock cycle, and the output value of the accumulator is calculated according to the new input value in the next clock cycle. The output value of the accumulator is used as the output value of the filter, and the output value of the filter is used as the pulse amplitude mean of the sampled data.
[0061] In one embodiment, the shift coefficient N of the filter is dynamically changed according to the size change of the output value of the filter. Specifically, the shift coefficient N can be generated by dynamic programming according to the change of the pulse amplitude mean value of the sampled data, and input into the shifter of the filter to realize the dynamic adjustment of the shift coefficient. When the output value of the filter (as the pulse amplitude mean value of the sampled data) is small, the shift coefficient N is small, and the pulse amplitude mean value of the sampled data changes rapidly, so that the output value of the filter can quickly track the amplitude change of the sampled data; when the output value of the filter gradually increases, the pulse amplitude mean value of the sampled data gradually slows down, and the shift coefficient N is also increased accordingly to reduce the speed of tracking the amplitude change of the sampled data; when the output value of the filter becomes larger, the pulse amplitude mean value of the sampled data changes more slowly, and the shift coefficient N is adjusted to a larger value, further reducing the tracking speed of the output value of the filter for the amplitude change of the sampled data, and keeping the shift coefficient N no longer changing, so that the output value of the filter can be guaranteed to be stable, that is, the pulse amplitude mean value of the sampled data is guaranteed to be stable.
[0062] In one embodiment, in the above step 108, when the sampled data determined to be the interference pulse is replaced with the current pulse amplitude mean, a selection signal is output to the filter. The filter selects the output value of the accumulator as the input value of the filter in the current clock cycle, which can prevent the interference pulse from affecting the output value of the accumulator (i.e., the output value of the filter), thereby preventing the interference pulse from affecting the pulse amplitude mean of the sampled data.
[0063] In one embodiment, in the above step 106, the decision threshold is the product of the pulse amplitude mean of the sampled data and the comparison coefficient K, and the comparison coefficient K is dynamically changed according to the change of the pulse amplitude mean of the sampled data (i.e., the output value of the filter). Specifically, the comparison coefficient K can be generated by dynamic programming. Power communication is a fast burst transmission. In the presence of a signal, no signal, or in the process of automatic gain control (AGC) adjustment, the average power or mean value will change significantly. If a fixed decision threshold value is used, it is easy to cause misjudgment. The present application dynamically adjusts the comparison coefficient K according to the pulse amplitude mean of the sampled data, thereby dynamically adjusting the decision threshold value of the pulse interference, which can reduce misjudgment and better detect and suppress the pulse interference of the signal. For example, since the ADC (analog-to-digital converter) gain of the receiver is small when it first receives the signal, the amplitude of the data sampling value is also small, and the OFDM signal sampling usually has a large peak-to-average ratio (the ratio of the instantaneous peak value to the average value), so the filter output value that generates the real-time mean of the time domain sampling signal is also small at this time, and the comparison coefficient K can be set slightly higher to reduce the misjudgment of the input signal as an interference pulse.
[0064] In one embodiment, in the above step 108, the pulse amplitude value of the sampled data is compared with the decision threshold value, and under the condition that the pulse amplitude values of at least three consecutive sampled data all exceed the decision threshold value, at least three consecutive sampled data are determined to be interference pulses, and the sampled data determined to be interference pulses are replaced with the current pulse amplitude mean value and output to the subsequent signal processing module (such as automatic gain control (AGC) circuit) to ensure that the subsequent AGC circuit can obtain a relatively stable signal power and reduce the probability of misadjustment caused by pulse interference, so that the AGC gain remains stable. The pulse interference suppression method of the present application is a preliminary processing of the sampled data, and the pulse amplitude values of at least three consecutive sampled data are judged as interference pulses only when they all exceed the decision threshold value. The problem of misjudging a small number (one or two) of abnormal pulses as interference pulses can be avoided, because the sampled data will be further processed in the subsequent automatic gain control, which also includes pulse interference suppression processing, so the conditions for judging interference pulses in the preliminary processing are stricter to avoid misjudgment.
[0065] Figure 2 : is a structural block diagram of a pulse interference suppression device for OFDM power communication provided in an embodiment of the present application. Figure 2 As shown, an embodiment of the present application provides a pulse interference suppression device for OFDM power communication, including: an analog-to-digital converter, a filter, and an interference pulse suppression module. The analog-to-digital converter is used to perform analog-to-digital conversion on the OFDM signal and output sampled data. The filter is used to calculate the pulse amplitude mean of the sampled data output by the analog-to-digital converter in real time by means of Kalman filtering. The interference pulse suppression module is used to calculate the decision threshold value according to the pulse amplitude mean of the sampled data, compare the amplitude of the sampled data with the decision threshold value, determine whether the sampled data is an interference pulse according to the comparison result, replace the sampled data determined to be an interference pulse with the pulse amplitude mean of the current sampled data and output it to suppress the interference pulse.
[0066] like Figure 3As shown, in this embodiment, a coefficient programmable α filter is used, the input value of the filter is the sampled data output by the analog-to-digital converter, and the output value of the filter is used as the pulse amplitude mean of the sampled data. The coefficient programmable α filter includes: an absolute value circuit, a first subtractor, a second subtractor, a dynamic shifter and an accumulator. The input sampling data di is delayed by two clock cycles through the delay circuits dly1 and dly2, and the absolute value circuit takes the absolute value di_abs of the sampling data di2 delayed by two clock cycles and outputs it to the first subtractor; the first subtractor outputs the difference e obtained by subtracting the output value avg of the accumulator from the absolute value di_abs output by the absolute value circuit to the dynamic shifter; the dynamic shifter right-shifts the difference e output by the first subtractor by N bits (N is a positive integer) to obtain the shift value e2 and outputs it to the second subtractor; the second subtractor uses the difference avg-e2 obtained by subtracting the output value avg of the accumulator from the shift value e2 output by the dynamic shifter as the new input value of the accumulator, updates the new input value to the accumulator in the current clock cycle, and then performs the next round of similar operations with the next sampling data di2. The output value avg of the accumulator is used as the output value of the α filter and is passed to the subsequent comparator for pulse interference judgment. The output value avg of the α filter represents the estimated value of the pulse amplitude mean of the sampled data, and this estimated value is used to replace the average value of the sampled signal amplitude.
[0067] In this embodiment, the shift coefficient N of the α filter is dynamically changed according to the size change of the output value of the filter. Specifically, the shift coefficient N can be generated by dynamic programming according to the size change of the output value of the filter (i.e., the pulse amplitude mean of the sampled data) and input into the shifter of the filter to realize dynamic adjustment of the shift coefficient. When avg is small, such as avg<300, the amplitude of the sampled data di changes rapidly, and N is 9, so that avg can quickly track the change of the di amplitude; when avg<500, the amplitude change of the sampled data di gradually slows down, and N is also changed to 10 to reduce the speed of tracking the di amplitude; when avg>500, the amplitude change of the sampled data di will be slower, and N is also changed to 11, further reducing the tracking speed of avg on the di amplitude and keeping N unchanged, so that the output value avg of the filter is relatively stable, that is, the amplitude mean of the sampled data di is guaranteed to be stable.
[0068] In one embodiment, the interference pulse suppression module includes a multiplier, a comparator and a selector. The multiplier calculates the product avg*K of the output value avg of the filter and the comparison coefficient K and outputs it to the comparator, and the product avg*K is used as the decision threshold value of the comparator. The comparator compares the amplitude of the input sampling data with the decision threshold value to obtain a comparison result; the selector selects one of the input sampling data delayed by two clock cycles and the output value of the filter according to the comparison result of the comparator and outputs it. The interference pulse suppression module has multiple groups of comparators, and the multiple groups of comparators compare corresponding to multiple continuous sampling data. The comparison results of the multiple groups of comparators are output to the logic OR gate after the logic AND operation with the output signal of the detector with the same sign, and then output to the selector through the logic OR gate.
[0069] Figure 4 Schematic diagram of the logic circuit of the interference pulse suppression module provided in the embodiment of the present application. Figure 4As shown, the output value avg of the α filter is input into the multiplier, and the product avg*K of avg multiplied by the comparison coefficient K is used as the interference pulse decision threshold value, and is input into comparator 0, comparator 1, comparator 2, comparator 3, and comparator 4. The input sampling data di is delayed by one clock cycle, two clock cycles, three clock cycles, and four clock cycles through delay circuits dly1, dly2, dly3, and dly4 to obtain di1 (delay for di by one clock cycle), di2 (delay for di by two clock cycles), di3 (delay for di by three clock cycles), and di4 (delay for di by four clock cycles); di, di1, di2, di3, and di4 are respectively input into comparator 0, comparator 1, comparator 2, comparator 3, and comparator 4 after taking absolute values through absolute value circuits di_abs0, di_abs1, di_abs2, di_abs3, and di_abs4, and compared with the decision threshold value avg*K to obtain the comparison result. Three consecutive comparators among comparator 0, comparator 1, comparator 2, comparator 3, and comparator 4 output three groups of comparison results of different combinations to logic AND gate 1 (AND1), logic AND gate 2 (AND2), and logic AND gate 3 (AND3). The output results of logic AND gate 1 (AND1), logic AND gate 2 (AND2), and logic AND gate 3 (AND3) are logically ORed through the logic OR gate, and the logic ORed result is output to the selector; at the same time, the output value avg of the α filter is multiplied by the sign value sign(di2) of the sampling data di2 to obtain avg*sign(di2) and output to the selector. Only when the amplitudes of the sampled data di, di1 and di2 or di1, di2 and di3 or di2, di3 and di4 are all greater than the decision threshold (i.e., at least one of the three groups of comparators 0 / 1 / 2 or 1 / 2 / 3 or 2 / 3 / 4 outputs logic 1), and the signs of the three sampled data corresponding to the group of comparators are the same (the signs of the sampled data are detected by the same sign detector 1, the same sign detector 2, and the same sign detector 3), i.e., they are positive or negative at the same time, and the corresponding same sign detector outputs logic 1, the sampled data di2 at this time is determined to be an interference pulse. When the sampled data is determined to be an interference pulse, the selector selects avg*sign(di2) to output to the subsequent signal processing module (such as the AGC circuit), that is, the interference pulse is replaced by the current pulse amplitude mean. In this way, the subsequent AGC circuit can obtain a relatively stable signal power, reduce the probability of misadjustment caused by pulse interference, and keep the AGC gain stable. When the interference pulse suppression module determines that the sampled data is an interference pulse and selects to output avg*sign(di2), it also outputs the selection signal avg_sel to the α filter.
[0070] Reference Figure 3The α filter also includes a selector, which selects the output value avg of the accumulator to be input into the absolute value circuit according to the selection signal avg_sel fed back by the interference pulse suppression module. Specifically, when the sampled data determined to be an interference pulse is replaced with the current pulse amplitude mean, the interference pulse suppression module outputs a selection signal to the α filter through a logic OR gate. The α filter selects the output value avg of the accumulator as the input value of the filter in the current clock cycle, so that the output value avg of the α filter remains unchanged when pulse interference occurs, avoiding the interference pulse from affecting the output value of the accumulator (i.e., the output value of the filter), thereby avoiding the influence of the interference pulse on the pulse amplitude mean of the sampled data.
[0071] The decision threshold value of the interference pulse suppression module is the product of the output value avg of the α filter (i.e., the pulse amplitude mean of the sampled data) and the comparison coefficient K. The comparison coefficient K is dynamically changed according to the size change of the output value avg of the α filter and can be generated by dynamic programming. The comparison coefficient K is dynamically adjusted according to the output value avg of the α filter, thereby dynamically adjusting the decision threshold value of the pulse interference, which can reduce misjudgment and better detect and suppress the pulse interference of the signal. In this embodiment, the input sampling data di is a 14-bit signed fixed-point number (14s), and the amplitude of di is limited to between 0 and 8191. Avg is also a 14-bit signed fixed-point number. When avg<10, K is 32; when avg<100, K is 20; when avg<300, K is 16; when avg<500, K is 12; when avg<800, K is 8; when avg>800, K is 4.
[0072] In this embodiment, the device further includes a coefficient generation module, which is used to dynamically generate a shift coefficient N of the filter and a comparison coefficient K of the interference pulse suppression module according to the change of the output value avg of the α filter. The coefficient generation module includes a register group and a comparator group, and the register group stores a step comparison threshold. The comparator group compares the output value of the filter with the step comparison threshold stored in the register group. The register group determines the output value of the shift coefficient N and the comparison coefficient K according to the comparison result of the comparator group.
[0073] In one embodiment, Figure 5As shown, the coefficient generation module includes register group 0, register group 1, register group 2 and a comparator group. The CPU can set a set of appropriate avg step comparison thresholds stored in register group 0 through software registers (CPU bus control) in combination with the algorithm simulation results and the actual environment of the communication channel. The comparator group compares the avg step comparison thresholds stored in register group 0 according to the output value avg of the α filter, and determines the output of the shift coefficient N of register group 1 and the output of the comparison coefficient K of register group 2. For example, the avg step comparison thresholds stored in register group 0 are 10, 100, 300, 500, and 800. The comparator group compares the output value avg of the current α filter with these avg step comparison thresholds, selects an appropriate shift coefficient N from register group 1 and outputs it to the α filter, and selects an appropriate comparison coefficient K from register group 2 and outputs it to the interference pulse suppression module. In one embodiment, N is successively 9, 10, and 11; K is successively 32, 20, 16, 12, 8, and 4. The specific values of the N and K coefficients can be achieved by the CPU setting register group 1 and register group 2 through software.
[0074] Compared with the traditional method of using a memory to store a certain length of time domain sampling data, then calculating its average power value, and then realizing pulse detection and suppression processing based on it, this device uses an α filter to realize the calculation of the mean amplitude of the sampling data. Due to the circuit structure characteristics of the α filter, there is no need to store a large amount of sampling data, thereby reducing the circuit area and power consumption, and also avoiding the problem of large delay in sampling data processing. In addition, this device uses a programmable dynamically variable shift coefficient N and a comparison coefficient K of the pulse interference judgment threshold. According to the real-time situation of the mean amplitude of the sampling data, appropriate changes can be made to better realize the detection and suppression of the pulse interference of the signal. When processing the input sampling data, this device determines that three or more consecutive over-limit pulses with the same sign are interference pulses, and selects avg*sign(di2) to replace the sampling data di2 that is an interference pulse at this time, thereby reducing unnecessary gain misadjustment of the subsequent AGC circuit.
[0075] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0076] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0077] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0079] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0080] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for suppressing pulse interference in power communication, characterized in that: include: Perform analog-to-digital conversion on the power communication signal and output sampling data; The pulse amplitude mean of the sampled data is obtained in real time by using the Kalman filter method; The decision threshold value is obtained according to the average value of the pulse amplitude of the sampled data; Compare the amplitude of the sampled data with the decision threshold value, determine whether the sampled data is an interference pulse according to the comparison result, replace the sampled data determined to be an interference pulse with the pulse amplitude mean value of the current sampled data and then output it to suppress the interference pulse; The method of obtaining the pulse amplitude mean of the sampled data in real time by means of Kalman filtering includes: Using real-time sampling data as the input value of the filter of Kalman filtering method; The filter performs subtraction, shifting, and accumulation and averaging calculations on the sampled data to obtain the pulse amplitude mean of the sampled data, including: taking the absolute value of the sampled data after delaying it for two clock cycles; shifting the difference between the output value of the accumulator and the absolute value by N bits to obtain the shift value; using the difference between the output value of the accumulator and the shift value as the new input value of the accumulator; updating the new input value to the accumulator in the current clock cycle, calculating the output value of the accumulator according to the new input value in the next clock cycle, using the output value of the accumulator as the output value of the filter, and using the output value of the filter as the pulse amplitude mean of the sampled data.
2. The method for suppressing electric power communication pulse interference according to claim 1, characterized in that: The shift coefficient N of the filter changes dynamically based on changes in the output value of the filter.
3. The method for suppressing electric power communication pulse interference according to claim 2, characterized in that: The shift coefficient N is generated by dynamic programming according to the change of the output value of the filter.
4. The method for suppressing electric power communication pulse interference according to claim 1, characterized in that: The method further comprises: When the sampled data determined to be interference pulses are replaced with the current pulse amplitude mean value, a selection signal is output to the filter; The filter selects the output value of the accumulator as the input value of the filter in the current clock cycle.
5. The method for suppressing electric power communication pulse interference according to claim 1, characterized in that: The decision threshold is dynamically adjusted based on the change of the pulse amplitude mean value of the real-time sampling data.
6. The method for suppressing electric power communication pulse interference according to claim 5, characterized in that: The decision threshold is the product of the pulse amplitude mean of the sampled data and the comparison coefficient K; The comparison coefficient K is generated by dynamic programming according to the change of the pulse amplitude mean value of the sampling data.
7. The method for suppressing electric power communication pulse interference according to claim 1, characterized in that: Comparing the amplitude of the sampled data with the decision threshold value, determining whether the sampled data is an interference pulse according to the comparison result, replacing the sampled data determined to be an interference pulse with the pulse amplitude mean value of the current sampled data and then outputting it, including: Comparing the amplitude of the sampled data with the decision threshold, and determining that the at least three consecutive sampled data are interference pulses under the condition that the amplitudes of at least three consecutive sampled data all exceed the decision threshold; The sampling data determined to be interference pulses is replaced with the pulse amplitude mean value of the current sampling data and then output to the subsequent signal processing module.
8. A power communication pulse interference suppression device, characterized in that: include: An analog-to-digital converter, used for performing analog-to-digital conversion on a power communication signal and outputting sampling data; A filter, used for calculating the pulse amplitude mean of the sampling data output by the analog-to-digital converter in real time by means of Kalman filtering; An interference pulse suppression module is used to calculate a decision threshold value according to the pulse amplitude mean of the sampled data, compare the amplitude of the sampled data with the decision threshold value, determine whether the sampled data is an interference pulse according to the comparison result, replace the sampled data determined to be an interference pulse with the pulse amplitude mean of the current sampled data and then output it, so as to suppress the interference pulse; The input value of the filter is the sampled data output by the analog-to-digital converter, and the output value of the filter is used as the pulse amplitude mean value of the sampled data; The filter comprises: an absolute value circuit, a first subtractor, a second subtractor, a dynamic shifter and an accumulator; The absolute value circuit takes the absolute value of the sampled data delayed by two clock cycles and outputs it to the first subtractor; the first subtractor outputs the difference between the output value of the accumulator and the absolute value output by the absolute value circuit to the dynamic shifter; the dynamic shifter right-shifts the difference output by the first subtractor by N bits to obtain the shift value and outputs it to the second subtractor; the second subtractor takes the difference between the output value of the accumulator and the shift value output by the dynamic shifter as the new input value of the accumulator, and updates the new input value to the accumulator in the current clock cycle; the output value of the accumulator is used as the output value of the filter.
9. The power communication pulse interference suppression device according to claim 8, characterized in that: The filter further comprises a selector, which is used for selecting the output value of the accumulator to be input into the absolute value circuit according to the selection signal fed back by the interference pulse suppression module.
10. The power communication pulse interference suppression device according to claim 8, characterized in that: The interference pulse suppression module includes a multiplier, a comparator and a selector; The multiplier calculates the product of the filter output value and the comparison coefficient K and outputs it to the comparator, and the product serves as the decision threshold value of the comparator; The comparator compares the amplitude of the input sampled data with the decision threshold value to obtain a comparison result; The selector selects and outputs one of the input sample data delayed by two clock cycles and the output value of the filter according to the comparison result of the comparator.
11. The power communication pulse interference suppression device according to claim 10, characterized in that: The interference pulse suppression module has multiple groups of comparators, and the multiple groups of comparators are used to compare multiple consecutive sampling data; The comparison results of the multiple groups of comparators are output to the logic OR gate after the logic AND operation is performed with the output signal of the detector with the same sign, and then output to the selector through the logic OR gate.
12. The power communication pulse interference suppression device according to claim 10, characterized in that: Also includes: The coefficient generating module is used to dynamically generate the shift coefficient N of the filter and the comparison coefficient K of the interference pulse suppression module according to the change of the output value of the filter.
13. The power communication pulse interference suppression device according to claim 12, characterized in that: The coefficient generation module comprises: A register group storing a step comparison threshold; A comparator group, used for comparing the output value of the filter with the step comparison threshold stored in the register group; The register group is used to determine the output values of the shift coefficient N and the comparison coefficient K according to the comparison result of the comparator group.
Citation Information
Patent Citations
Real-time detection and suppression method for power line impulse noise
CN109617573A
Alternating-current signal filtering method and device thereof
CN110297127A