Power line carrier signal pulse noise processing method and device and communication equipment

By introducing a double-buffered window mechanism in power line carrier communication, and utilizing the continuous characteristics of impulse noise, impulse noise can be accurately identified and processed, solving the problem of low accuracy in impulse noise identification in existing technologies and improving signal quality.

CN122178944APending Publication Date: 2026-06-09SUZHOU GATE-SEA MICROELECTRONICS TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SUZHOU GATE-SEA MICROELECTRONICS TECH CO LTD
Filing Date
2026-05-12
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In existing technologies, the accuracy of pulse noise identification in power line carrier communication is low, and the threshold setting is difficult to adapt to the dynamic changes in noise intensity, resulting in frequent misjudgments.

Method used

A dual-buffered window mechanism is adopted. The presence of continuous time-domain signals is determined through the first buffered window. Taking advantage of the continuity of impulse noise, the impulse noise is further processed in the second buffered window. The two buffered windows are set to improve the detection accuracy and processing cleanliness of impulse noise.

Benefits of technology

It improves the accuracy of impulse noise identification, reduces misjudgments, reduces the impact of impulse noise on signals, and improves communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122178944A_ABST
    Figure CN122178944A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of power line carrier communication, and discloses a power line carrier signal pulse noise processing method and device and communication equipment, the method comprising the following steps: slidingly buffering a time domain signal collected at a current sampling point into a first buffer window; judging whether there are continuous target time domain signals of a first preset number on any side of a first target buffer position, the target time domain signal being a time domain signal with a signal intensity greater than or equal to a preset threshold; according to a first judgment result, determining whether to slide the time domain signal output by the first target buffer position into a second buffer window, the length of the second buffer window being smaller than the length of the second buffer window; judging whether there are continuous target time domain signals of a second preset number on any side of a second target buffer position, the second preset number being smaller than the first preset number; and according to a second judgment result, processing the time domain signal output by the second target buffer position. The application can reduce misjudgment and improve signal quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power line carrier communication technology, and specifically to a method, apparatus, and communication equipment for processing power line carrier signal pulse noise. Background Technology

[0002] Power line carrier (PLC) communication refers to a technology that uses existing power lines to transmit analog or digital signals at high speed via carrier waves. It is widely used in smart homes, electricity consumption data collection, and electrical equipment monitoring. However, power line channels have complex characteristics, and impulse noise is one of the key factors affecting communication quality.

[0003] In related technologies, the processing of PLC signal impulse noise includes detecting impulse noise and clearing or limiting the detected impulse noise. Impulse noise detection mainly relies on the threshold comparison method, classifying the time-domain signal corresponding to sampling points exceeding the threshold as impulse noise. However, the intensity of impulse noise is dynamically changing, and the threshold setting is difficult to accurately adapt to these dynamic changes. Because the threshold is difficult to set accurately, in actual communication, there will always be some cases where the time-domain signal corresponding to the sampling point is greater than the threshold, even though it is not impulse noise, which can easily lead to misjudgment. Summary of the Invention

[0004] This invention provides a method, apparatus, and communication equipment for processing power line carrier signal impulse noise, in order to solve the problem of low accuracy in impulse noise identification.

[0005] In a first aspect, the present invention provides a method for processing impulse noise in a power line carrier signal. The method includes: sliding and buffering a time-domain signal acquired at a current sampling point into a first buffer window, wherein the first buffer window includes a plurality of consecutively set first buffer positions, each first buffer position storing a time-domain signal; determining whether there is a first preset number of consecutive target time-domain signals on either side of a first target buffer position, wherein the first target buffer position is one of the plurality of first buffer positions and is used to output a time-domain signal, and the target time-domain signal is a time-domain signal with a signal strength greater than or equal to a preset threshold; and determining, based on a first determination result, whether to output the first target buffer position. The output time-domain signal is slid-buffered to a second buffer window, wherein the second buffer window includes multiple consecutively set second buffer positions, each second buffer position storing a time-domain signal, and the number of second buffer positions is less than the number of first buffer positions; if the time-domain signal output from the first target buffer position is slid-buffered to the second buffer window, it is determined whether there is a second preset number of consecutive target time-domain signals on either side of the second target buffer position, wherein the second target buffer position is one of the multiple second buffer positions and is used to output time-domain signals, and the second preset number is less than the first preset number; according to the second determination result, the time-domain signal output from the second target buffer position is processed.

[0006] This embodiment utilizes the continuous and periodic nature of impulse noise. It determines whether impulse noise exists in the multiple time-domain signals stored in the first buffer window by checking for the presence of a predetermined number of consecutive target time-domain signals on either side of the first target buffer location. Impulse noise is only determined if a predetermined number of consecutive time-domain signals with a signal strength greater than a predetermined threshold exist on at least one side of the first target buffer location, rather than simply identifying a single time-domain signal with a signal strength greater than the predetermined threshold as impulse noise. This reduces the probability of false positives and more accurately identifies impulse noise. When impulse noise is determined to exist in the multiple time-domain signals stored in the first buffer window, the time-domain signals output from the first target buffer location are slidably buffered in the second buffer window for processing. This not only processes impulse noise but also processes the time-domain signals before and after the impulse noise, reducing the impact of impulse noise and improving signal quality.

[0007] Furthermore, compared to a scheme that only sets one buffer window, the present invention sets two buffer windows. On the one hand, the first preset number can be set to be larger, so as to detect impulse noise more accurately. On the other hand, the second preset number can be set to be smaller, so as to process the impulse signal more cleanly, further reduce the impact of impulse noise, and improve signal quality.

[0008] In one optional implementation, determining whether to slide the time-domain signal output from the first target buffer position to the second buffer window based on the first judgment result includes: determining the input start time and input end time based on the first judgment result, wherein the input start time is the moment when a first set of consecutive target time-domain signals of a first preset number first appear on the first side of the first target buffer position, and the input end time is the moment when the first of the first set of consecutive target time-domain signals slides to the first first buffer position, and the first side is the side of the first target buffer position closest to the input end of the first buffer window; during the time period between the input start time and the input end time, sliding the time-domain signal output from the first target buffer position to the second buffer window; after the input end time, outputting the time-domain signal output from the first target buffer position to the filter until the next input start time is obtained.

[0009] This embodiment determines whether to slide the time-domain signal output from the first target buffer position to the second buffer window based on the input start time and input end time. This can better handle the target time-domain signals at the boundary in the first preset number of consecutive target time-domain signals, make the impulse noise cleaner, and further reduce the impact of impulse noise.

[0010] In one optional implementation, determining whether to slide the time-domain signal output from the first target buffer position to the second buffer window based on the first determination result includes: if there is a first preset number of consecutive target time-domain signals on at least one side of the first target buffer position, then slide the time-domain signal output from the first target buffer position to the second buffer window; if there is no first preset number of consecutive target time-domain signals on either side of the first target buffer position, then output the time-domain signal output from the first target buffer position to the filter.

[0011] In this embodiment, the determination of whether to slide the time domain signal output from the first target buffer position to the second buffer window is made directly based on whether there is a continuous first preset number of target time domain signals on either side of the first target buffer position. This makes it easier and faster to determine whether to store the time domain signal in the second buffer window and improves the efficiency of impulse noise processing.

[0012] In one optional implementation, before sliding the time-domain signal output from the first target buffer position to the second buffer window, the method further includes: performing zeroing or limiting processing on the time-domain signal output from the first target buffer position; sliding the time-domain signal output from the first target buffer position to the second buffer window includes: sliding the zeroing or limiting time-domain signal to the second buffer window.

[0013] In one optional implementation, processing the time-domain signal output from the second target buffer location according to the second determination result includes: if there is a continuous second preset number of target time-domain signals on at least one side of the second target buffer location, then the time-domain signal output from the second target buffer location is zeroed or limited; if there is no continuous second preset number of target time-domain signals on either side of the target buffer location, then the time-domain signal output from the target buffer location is output to a filter for filtering.

[0014] In one alternative implementation, the filter is a bandpass filter.

[0015] In one optional implementation, the number of first cache positions and the number of second cache positions are both odd, the first target cache position is the middle first cache position within the first cache window, and the second target cache position is the middle first cache position within the second cache window.

[0016] In this embodiment, when the number of buffer positions is odd, the middle buffer position is set as the target buffer position. This allows for symmetrical processing of adjacent time-domain signals contaminated by impulse noise, facilitating subsequent filtering and synchronization operations.

[0017] In one alternative implementation, both the first cache window and the second cache window are first-in-first-out (FIFO) cache units.

[0018] Secondly, the present invention provides a power line carrier signal impulse noise processing device, the device comprising: a first buffer module, configured to slide and buffer the time-domain signal acquired at the current sampling point into a first buffer window, wherein the first buffer window includes a plurality of consecutively set first buffer positions, each first buffer position storing a time-domain signal; a first judgment module, configured to judge whether there is a continuous first preset number of target time-domain signals on either side of a first target buffer position, wherein the first target buffer position is one of the plurality of first buffer positions, and is configured to output a time-domain signal, the target time-domain signal being a time-domain signal with a signal strength greater than or equal to a preset threshold; and a second buffer module, configured to determine, based on the first judgment result, whether to buffer the first target signal into a buffer. The time-domain signal output from the buffer position slides to the second buffer window, wherein the second buffer window includes multiple consecutively set second buffer positions, each second buffer position stores one time-domain signal, and the number of second buffer positions is less than the number of first buffer positions; the second judgment module is used to determine whether there is a second preset number of consecutive target time-domain signals on either side of the second target buffer position if the time-domain signal output from the first target buffer position slides to the second buffer window, wherein the second target buffer position is one of multiple second buffer positions and is used to output time-domain signals, and the second preset number is less than the first preset number; the processing module is used to process the time-domain signal output from the second target buffer position according to the second judgment result.

[0019] Thirdly, the present invention provides a communication device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the power line carrier signal pulse noise processing method of the first aspect or any corresponding embodiment described above.

[0020] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a communication device to perform the power line carrier signal impulse noise processing method described in the first aspect or any corresponding embodiment thereof.

[0021] Fifthly, the present invention provides a computer program product, including computer instructions for causing a communication device to execute the power line carrier signal pulse noise processing method described in the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0022] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0023] Figure 1 This is a schematic diagram of a PLC communication system according to an embodiment of the present invention; Figure 2 This is a flowchart illustrating a method for processing power line carrier signal pulse noise according to an embodiment of the present invention. Figure 3 This is a schematic diagram of a cache window according to an embodiment of the present invention; Figure 4 This is a flowchart illustrating another method for processing power line carrier signal pulse noise according to an embodiment of the present invention; Figure 5 This is a schematic diagram of an impulse noise processing flow after two buffer windows are cascaded according to an embodiment of the present invention; Figure 6 This is a schematic diagram of another impulse noise processing flow after two cache windows are cascaded according to an embodiment of the present invention; Figure 7 This is a flowchart illustrating another power line carrier signal pulse noise processing method according to an embodiment of the present invention; Figure 8 This is a schematic diagram of four consecutive target time-domain signals moving in the first buffer window according to an embodiment of the present invention; Figure 9 This is a structural block diagram of a power line carrier signal pulse noise processing device according to an embodiment of the present invention; Figure 10 This is a schematic diagram of the hardware structure of a communication device according to an embodiment of the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0026] The execution of the power line carrier signal pulse noise processing method provided by this invention relies on a PLC communication system, such as... Figure 1 As shown, the PLC communication system includes at least two communication devices connected by a power line, one of which acts as a transmitter (TX) to transmit signals to the other communication device (RX) via the power line channel. Figure 1 Taking a PLC communication system comprising two communication devices (a first communication device 110 and a second communication device 120) as an example, the first communication device 110 and the second communication device 120 are connected via a power line 130. If the second communication device 120 is the receiving end, then the second communication device executes the power line carrier signal pulse noise processing method provided by this invention. The PLC signal can also be a high-speed power line communication (HPLC) signal.

[0027] For example, the communication equipment can be a smart meter, a power distribution terminal, a smart home device, or a photovoltaic device.

[0028] Power line channels have complex characteristics, and impulse noise is one of the key factors affecting communication quality. In related technologies, impulse noise detection mainly relies on threshold comparison methods, including fixed threshold and dynamically adjusted threshold methods. The fixed threshold method sets a constant threshold, classifying sampling points exceeding that threshold as impulse noise and resetting or limiting them. The dynamically adjusted threshold method, on the other hand, adjusts the threshold in real time based on changes in signal strength, and also classifies sampling points exceeding the threshold as impulse noise.

[0029] Neither fixed nor dynamically adjusted thresholds can accurately adapt to dynamic changes in noise intensity. For example, at certain times, due to multiple devices operating simultaneously or changes in device operating status, the intensity of impulse noise may suddenly increase; while at other times, the noise intensity may be relatively low. This dynamic variation makes threshold setting difficult, as it is hard to find a fixed or dynamically adjusted rule that can adapt to all situations. Because thresholds are difficult to set accurately, in actual communication, there will always be individual or some sampling points that exceed the threshold. If judgment is made solely based on the threshold, misjudgments are easily made.

[0030] In view of this, the present invention provides a method, apparatus and communication device for processing power line carrier signal impulse noise. By setting two buffer windows to determine whether there are a number of consecutive time-domain signals with signal strength greater than a preset threshold, it can not only detect impulse noise more accurately and reduce false judgments, but also process impulse noise more cleanly and improve signal quality.

[0031] According to an embodiment of the present invention, a method for processing impulse noise of power line carrier signals is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a communication device such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0032] This embodiment provides a method for processing impulse noise in power line carrier signals, which can be used in the aforementioned communication equipment. Figure 2 This is a flowchart illustrating a power line carrier signal pulse noise processing method according to an embodiment of the present invention, as shown below. Figure 2 As shown, the process includes the following steps: Step S201: Slide the time-domain signal collected at the current sampling point into the first buffer window.

[0033] Specifically, when two communication devices communicate, the analog-to-digital converter (ADC) in the receiving device samples the time-domain signal from the receiving end in real time. For example, every T... s Samples are taken once every second (e.g., 0.25μs), and the current sampling point is the sampling point at the current moment.

[0034] The first buffer window comprises multiple consecutively set buffer positions (denoted as the first buffer position), each storing a time-domain signal. Sliding the time-domain signal acquired at the current sampling point into the first buffer window can be understood as sequentially shifting the historical time-domain signals already stored in the first buffer window, and storing the time-domain signal acquired at the current sampling point in a specific buffer position within the first buffer window (such as the last buffer position). The historical time-domain signals are those acquired before the current sampling point.

[0035] The first buffer window is a buffer with a fixed storage width. The first buffer window is set with a fixed target buffer position (denoted as the first target buffer position) for outputting the time domain signal of the sampling point. The first target buffer position is one of a plurality of first buffer positions. Further, the first target buffer position can be one of the plurality of first buffer positions other than the first first buffer position and the last first buffer position.

[0036] The first buffer window stores data in chronological order. The time-domain signal acquired at the previous sampling point is stored in the first buffer window before the time-domain signal acquired at the current sampling point. Among the multiple first buffer positions, the last buffer position is the buffer position for the time-domain signal of the current sampling point. When the time-domain signal of the current sampling point is the first time-domain signal, the last buffer position is not occupied, and the time-domain signal of the current sampling point is directly stored in the last buffer position. When the time-domain signal of the current sampling point is not the first time-domain signal, the last buffer position is occupied. First, at least one historical time-domain signal cached in the buffer window is moved, and then the time-domain signal corresponding to the current sampling point is stored in the last buffer position of the buffer window.

[0037] like Figure 3 As shown, the first cache window includes N1 first cache locations, where N1 is an integer, for example, N1 can be 30, 50 or 100, etc. Figure 3 Taking N1=17 as an example, where the first target cache location is the 9th first cache location. Figure 3 As shown, at a certain moment, the first buffer window stores the time-domain signal collected by sampling points a1-a17. After acquiring the time-domain signal collected at the next moment (sampling point a18), the time-domain signals corresponding to sampling points a1-a17 stored in the first buffer window are shifted from right to left to free up the last first buffer position, and the time-domain signal corresponding to sampling point a18 is stored in the last first buffer position. At this time, the first buffer window stores the time-domain signal collected by sampling points a2-a18. After acquiring the time-domain signal collected at the next moment after the next moment (sampling point a19), the above operation is repeated, and the first buffer window stores the time-domain signal collected by sampling points a3-a19.

[0038] It should be understood that when the time-domain signal acquired by sampling point a19 is not obtained, sampling point a18 is the current sampling point; when the time-domain signal acquired by sampling point a19 is obtained, sampling point a19 is the current sampling point, and sampling point a18 is the previous sampling point.

[0039] like Figure 3 As shown, the input signal is updated from right to left (the data in the first buffer window is shifted from right to left, and the data stored in the first buffer window does not change), and the output signal is output from a fixed position (first target buffer position) in the first buffer window.

[0040] Step S202: Determine whether there is a continuous first preset number of target time domain signals on either side of the first target cache location.

[0041] The first target buffer position is one of a plurality of first buffer positions and is used to output a time-domain signal. Any side of the first target buffer position can refer to the side of the first target buffer position that is closer to the input end of the first buffer window (denoted as the first side) or the side of the first target buffer position that is farther away from the input end of the first buffer window (denoted as the second side). The target time-domain signal is a time-domain signal with a signal strength greater than or equal to a preset threshold.

[0042] The preset threshold is a pulse threshold set to distinguish between time-domain signals and impulse noise. If the signal strength of the time-domain signal is greater than or equal to the preset threshold, it indicates that the time-domain signal may be impulse noise; if the signal strength of the time-domain signal is less than the preset threshold, it indicates that the time-domain signal is not impulse noise. The first preset quantity is set according to the length of the first buffer window, and this invention does not impose a specific limitation. For example, the length of the first buffer window is directly proportional to the first preset quantity; the longer the first buffer window (i.e., the more first buffer positions), the larger the first preset quantity.

[0043] Whether a first preset number of consecutive target time-domain signals exist on either side of the first target buffer location can refer to whether a first preset number of consecutive target time-domain signals exist at multiple first buffer locations on the first side, or it can refer to whether a first preset number of consecutive target time-domain signals exist at multiple first buffer locations on the second side. Figure 3 For example, the multiple first cache positions on the first side are the 10th to the 17th cache positions, and the multiple first cache positions on the second side are the 1st to the 8th cache positions.

[0044] Specifically, this invention discovers that power line impulse noise is typically caused by devices such as rectifiers, switching power supplies, and the instantaneous on / off states of power switches. Its significant characteristics include high signal strength, long duration, and often periodicity and continuity. In actual communication environments, impulse noise can continuously affect multiple sampling points, even reaching nearly a hundred sampling points, causing severe interference to data transmission.

[0045] This invention is based on the characteristics of impulse noise in power line channels, which has high signal strength, periodicity, and continuity. When impulse noise occurs, it is generally a series of a dozen or even hundreds of points. After sliding and buffering the time-domain signal collected at the current sampling point in the first buffer window, it is determined whether there is a continuous first preset number of target time-domain signals on either side of the first target buffer position. If at least one side exists, it means that the signal strength of the time-domain signal is greater than or equal to the preset threshold, which is not an occasional phenomenon, but caused by impulse noise. At this time, it can be determined that there is impulse noise among the multiple time-domain signals stored in the first buffer window.

[0046] Based on the continuity of impulse noise, the larger the first preset number, the more accurate the impulse noise detection. This application sets up two buffer windows (a first buffer window and a second buffer window). The first buffer window can be used to identify impulse noise, and the second buffer window can be used to process the detected impulse noise; alternatively, the first buffer window can be used to identify and preliminarily process impulse noise, and the second buffer window can be used to process impulse noise that has not been processed by the first buffer window. Therefore, in this application, the number of first buffer positions in the first buffer window can be set to be larger, and the first preset number can be set to be even greater, thereby making the determination of the first buffer window more accurate in identifying impulse noise.

[0047] If there are 30 consecutive time-domain signals that exceed a preset threshold, it can be determined to be impulse noise. The first preset number can be set to >30, so that impulse noise can be detected more accurately.

[0048] Step S203: Based on the first judgment result, determine whether to slide the time domain signal output from the first target buffer position to the second buffer window.

[0049] The second buffer window includes multiple consecutively set buffer positions (denoted as the second buffer positions). Each second buffer position stores a time-domain signal. The number of second buffer positions is less than the number of first buffer positions, that is, the length of the second buffer window is less than the length of the first buffer window.

[0050] Similar to the first buffer window, the second buffer window is also a fixed-width buffer, and it stores data in chronological order. The second buffer window also has a fixed target buffer position (denoted as the second target buffer position) for outputting the time-domain signal of the sampling point. The second target buffer position is one of multiple second buffer positions. Furthermore, the second target buffer position can be one of the multiple second buffer positions other than the first and last second buffer positions.

[0051] The first judgment result includes the existence (or non-existence) of a first preset number of target time domain signals in multiple first cache positions on the first side, the existence (or non-existence) of a first preset number of target time domain signals in multiple first cache positions on the second side, and the existence (or non-existence) of a first preset number of target time domain signals in multiple first cache positions on the first side and multiple first cache positions on the second side.

[0052] When the first judgment result is that there is a first preset number of continuous target time-domain signals on at least one side, it can be determined that there is impulse noise in the multiple time-domain signals stored in the first buffer window. At this time, the time-domain signal output from the first target buffer position is slid into the second buffer window to process the detected impulse noise.

[0053] When the first judgment result is that there are no consecutive first preset number of target time-domain signals on both sides of the first target buffer position, it can be determined that there is no impulse noise in the multiple time-domain signals stored in the first buffer window at the current time. At this time, the time-domain signal output from the first target buffer position is directly output to the filter for filtering processing.

[0054] It should be understood that the first and second buffer windows are used to store time-domain signals, but do not process time-domain signals.

[0055] Step S204: If the time domain signal output from the first target buffer position slides to the second buffer window, then determine whether there is a second preset number of continuous target time domain signals on either side of the second target buffer position.

[0056] The second target buffer location is one of multiple second buffer locations and is used to output the time-domain signal. The second preset number is less than the first preset number. The second preset number is set according to the length of the second buffer window and the first preset number, and this invention does not impose a specific limitation. For example, the first preset number can be 10 and the second preset number can be 2. Another example is that the first preset number can be 30 and the second preset number can be 4, etc.

[0057] Either side of the second target cache location can refer to the side of the second target cache location closer to the input end of the second cache window (denoted as the third side), or the side of the second target cache location farther away from the input end of the second cache window (denoted as the fourth side).

[0058] Step S205: Based on the second judgment result, process the time domain signal output from the second target buffer location.

[0059] Specifically, the second judgment result includes multiple cache positions on the third side having (or not having) a continuous second preset number of target time domain signals, multiple cache positions on the fourth side having (or not having) a continuous second preset number of target time domain signals, and multiple cache positions on both the third and fourth sides having (or not having) a continuous second preset number of target time domain signals.

[0060] When the second determination result indicates that there is a continuous second preset number of target time-domain signals on at least one side (the third side and / or the fourth side) of the second target buffer position, the impulse noise detected by the first buffer window is processed. Specifically, the time-domain signal output from the second target buffer position is zeroed or limited. When the second determination result indicates that there is no continuous second preset number of target time-domain signals on either side (the third side and the fourth side) of the second target buffer position, the time-domain signal output from the second target buffer position can be directly output to the filter for filtering.

[0061] It should be noted that when the time-domain signal is output in the first buffer window, sampling is still in progress. If the time-domain signal of the next sampling point is obtained, the next sampling point is used as the current sampling point and the above steps S201 to S205 are repeated.

[0062] When impulse noise is detected through the buffer window, this application does not simply zero out or limit the time-domain signal of the sampling points exceeding the impulse threshold (preset threshold). Instead, it zeros out and outputs the sampling point signal at a fixed position in the second buffer window, i.e., it determines the impulse noise and outputs it at the second target buffer position. Since impulse noise is continuous, not only can the sampling points corresponding to the impulse threshold be zeroed out or limited, but also the sampling points several times before and after the impulse noise can be zeroed out or limited, thereby reducing the impact of impulse noise.

[0063] The power line carrier signal impulse noise processing method provided in this embodiment, after sliding the time-domain signal collected at the current sampling point into the first buffer window, determines whether there is a continuous first preset number of target time-domain signals on either side of the first target buffer position, and determines whether to slide the time-domain signal output from the first target buffer position into the second buffer window based on the first determination result. If the time-domain signal output from the first target buffer position is slide-buried into the second buffer window, it determines whether there is a continuous second preset number of target time-domain signals on either side of the second target buffer position, and processes the time-domain signal output from the second target buffer position based on the second determination result.

[0064] This embodiment utilizes the continuous and periodic nature of impulse noise. It determines whether impulse noise exists in the multiple time-domain signals stored in the first buffer window by checking for the presence of a predetermined number of consecutive target time-domain signals on either side of the first target buffer location. Impulse noise is only determined if a predetermined number of consecutive time-domain signals with a signal strength greater than a predetermined threshold exist on at least one side of the first target buffer location, rather than simply identifying a single time-domain signal with a signal strength greater than the predetermined threshold as impulse noise. This reduces the probability of false positives and more accurately identifies impulse noise. When impulse noise is determined to exist in the multiple time-domain signals stored in the first buffer window, the time-domain signals output from the first target buffer location are slidably buffered in the second buffer window for processing. This not only processes impulse noise but also processes the time-domain signals before and after the impulse noise, reducing the impact of impulse noise and improving signal quality.

[0065] Power line impulse noise is characterized by its continuity, typically occurring in dozens or even hundreds of consecutive points. If there is only one buffer window, and the preset number is set relatively large, impulse noise can be detected accurately, but a significant amount of impulse noise may not be removed (through zeroing or amplitude limiting). When the preset number is set relatively small, impulse noise can be removed more cleanly, but it may be difficult to accurately identify impulse noise.

[0066] This application sets up two buffer windows. The first buffer window is used to detect the presence of impulse noise, and the second buffer window is used to process the impulse noise. The first preset number can be set to a larger value to more accurately determine whether impulse noise exists in multiple consecutive time-domain signals. At the same time, the second preset number can be set to a smaller value to process more impulse noise, making the impulse noise removal cleaner, thereby further reducing the impact of impulse noise and improving signal quality.

[0067] For example, if the time domain signal of 50 consecutive sampling points is the target time domain signal, it can be confirmed that the time domain signal is impulse noise. If the time domain signal of 10 to 50 sampling points is the target time domain signal, the time domain signal may be a pulse or a normal signal. In this case, the first preset number can be set to 50 and the second preset number can be set to 10.

[0068] When this application sets up two buffer windows, the first buffer window can be used to detect and process impulse noise, and then the time-domain signal processed by the first buffer window can be input into the second buffer window for further processing, which can further remove the impulse noise (residual impulse noise) that the first buffer window has identified but failed to process.

[0069] exist Figure 3 Taking a first preset quantity of 4 and containing only one buffer window as an example, if the signal strength of the time-domain signal corresponding to sampling points a14-a17 is greater than or equal to a preset threshold, and the signal strength of the time-domain signal corresponding to multiple sampling points after a17 is less than the preset threshold, then the process of the first buffer window processing the time-domain signal is as follows: the time-domain signal stored at the first target buffer position (the time-domain signal corresponding to sampling point a9) is output and then zeroed or limited; after the buffer data is shifted at the next moment, the time-domain signal stored at the target buffer position is the time-domain signal collected by sampling point a10, which will also be zeroed and output; as the time-domain signals collected by sampling points a14-a17 move in the buffer window, the time-domain signals corresponding to sampling points a9-a13 are also zeroed or limited and output, and the time-domain signals corresponding to sampling points a18-a22 will also be zeroed or limited. Impulse noise is a continuous sampling signal with high signal strength. When impulse noise occurs, the impulse noise can be zeroed or limited, and the time-domain signals corresponding to the sampling points at both ends of the impulse noise can also be zeroed or limited, thereby reducing the impact of impulse noise.

[0070] As the clock signal moves, the sampling points in the window position move from right to left. The time-domain signal stored at the target buffer position is stored in the adjacent buffer position, while the output signal is always output from the target buffer position (the 9th buffer position). Therefore, when a14-a17 is greater than the pulse threshold, the sampling points at both ends (a9-a13 and a18-a22) will be set to zero or limited. However, the time-domain signals corresponding to the four sampling points a14-a17 will not be set to zero or limited. That is, among the input signal sampling points a1-a22, the corresponding output signals a9-a13 and a18-a22 will be set to zero. Although the time-domain signals corresponding to the sampling points a14-a17 are also noise signals, they are not set to zero or limited according to the original output.

[0071] This application sets up two buffer windows. When the signal strength of the time domain signal corresponding to sampling points a14-a17 is greater than or equal to a preset threshold, and the signal strength of the time domain signal corresponding to multiple sampling points after a17 is less than the preset threshold, the time domain signal stored at the first target buffer position is slidably stored in the second buffer window for secondary processing. This can further process (zeroing and amplitude limiting) the remaining impulse noise (such as the time domain signal corresponding to sampling points a14-a17) in the first buffer window.

[0072] For example, Figure 3 If there are one hundred consecutive impulse noise sampling points, the last four impulse noise sampling points (the time-domain signals corresponding to sampling points a14-a17) will not be zeroed or limited after processing. The impulse noise that is not zeroed or limited is the remaining impulse noise. In this case, this application can further process the impulse noise through a second buffer window. For example, the first preset number corresponding to the first buffer window can be 10, and the second preset number corresponding to the second buffer window can be 2. Compared with the scheme of setting one buffer window, on the one hand, the first preset number can be set to be larger, so as to detect impulse noise more accurately; on the other hand, the second preset number can be set to be smaller, so as to process the impulse signal more cleanly and further reduce the impact of impulse noise.

[0073] It should be understood that, based on the continuity of impulse noise, the larger the preset number, the more accurate the impulse noise judgment.

[0074] In some optional embodiments, the number of first cache locations and the number of second cache locations are both odd, the first target cache location is the middle first cache location within the first cache window, and the second target cache location is the middle first cache location within the second cache window.

[0075] For example, if the first cache window includes 51 first cache locations, then the 26th first cache location is used as the first target cache location; if the second cache window includes 9 second cache locations, then the 5th second cache location is used as the second target cache location.

[0076] When the number of buffer positions is odd, setting the middle buffer position as the target buffer position allows for symmetrical processing of adjacent time-domain signals contaminated by impulse noise, facilitating subsequent filtering and synchronization operations.

[0077] For example, the first and second buffer windows can be First In, First Out (FIFO) buffer units. The buffer windows (first and second buffer windows) in this invention are special FIFO buffer units. The FIFO buffer unit in this invention adds a data reading module to the original FIFO buffer unit, enabling time-domain signals to be read from the target buffer locations (first target buffer location, second target buffer location). In other words, the special FIFO buffer unit adds the function of reading data from the target buffer location to the traditional FIFO buffer unit.

[0078] Traditional FIFO buffer units write sequentially from the last buffer position and read sequentially from the first buffer position; the FIFO buffer unit of this invention performs shift updates from the last buffer position to the first buffer position, and then outputs a time-domain signal from the added data reading module (i.e., the target buffer position).

[0079] In other embodiments, the buffer window can also be a shift register, which includes multiple levels of registers connected in series, shifting all data one bit in one direction each cycle.

[0080] The present invention has two methods for determining whether to slide the time-domain signal output from the first target buffer position to the second buffer window based on the first judgment result, which will be described below with reference to specific embodiments.

[0081] This embodiment provides another method for processing power line carrier signal impulse noise, which can be used in the aforementioned communication equipment. This embodiment directly determines whether to slide the time-domain signal output from the first target buffer position to the second buffer window based on whether there is a continuous first preset number of target time-domain signals on either side of the first target buffer position. Figure 4 This is a flowchart illustrating another power line carrier signal pulse noise processing method according to an embodiment of the present invention, as shown below. Figure 4 As shown, the process includes the following steps: Step S401: Slide the time-domain signal acquired at the current sampling point into the first buffer window.

[0082] Please see details Figure 2 Step S201 of the illustrated embodiment will not be described again here.

[0083] Step S402: Determine whether there is a continuous first preset number of target time domain signals on either side of the first target cache location.

[0084] Please see details Figure 2 Step S202 of the illustrated embodiment will not be described again here.

[0085] Step S403: Based on the first judgment result, determine whether to slide the time domain signal output from the first target buffer position to the second buffer window.

[0086] Specifically, step S403 above may include: Step S4031: If there is a first preset number of consecutive target time-domain signals on at least one side of the first target cache position, then slide the time-domain signals output from the first target cache position to the second cache window.

[0087] Step S4032: If there are no consecutive first preset number of target time-domain signals on either side of the first target buffer position, then the time-domain signal output from the first target buffer position is output to the filter.

[0088] Specifically, such as Figure 5 As shown, the first buffer window and the second buffer window are cascaded. When there is a continuous first preset number of target time-domain signals on at least one side of the first target buffer position, it indicates that there is impulse noise in the multiple time-domain signals stored in the first buffer window. At this time, the time-domain signal output from the first target buffer position is slid to the second buffer window for processing of impulse noise. When there is no continuous first preset number of target time-domain signals on either side of the first target buffer position, it indicates that there is no impulse noise in the multiple time-domain signals stored in the first buffer window. The time-domain signal output from the first target buffer position is directly output to the filter for filtering.

[0089] It should be noted that when there is a first preset number of consecutive target time-domain signals on at least one side of the first target cache position, if the time-domain signal cached at the first target cache position is greater than a preset threshold (i.e., the time-domain signal cached at the first target cache position is the target time-domain signal), then the time-domain signal cached at the first target cache position is also slid into the second cache window.

[0090] In some optional embodiments, before sliding the time-domain signal output from the first target buffer position to the second buffer window, the method further includes: performing zeroing or limiting processing on the time-domain signal output from the first target buffer position; in this case, sliding the time-domain signal output from the first target buffer position to the second buffer window specifically means: sliding the time-domain signal after zeroing or limiting processing to the second buffer window.

[0091] Specifically, such as Figure 6 As shown, when at least one side of the first target buffer position contains a first preset number of consecutive target time-domain signals, it indicates that impulse noise exists in the multiple time-domain signals stored in the first buffer window. In this case, the time-domain signal output from the first target buffer position is either zeroed or limited. Then, the zeroed (or limited) time-domain signal is slid into the second buffer window. Next, when at least one side of the second target buffer position in the second buffer window contains a second preset number of consecutive target time-domain signals, the time-domain signal output from the second target buffer position is either zeroed or limited. In other words, when the first buffer window outputs zero data (i.e., from the zeroing flag position), the zeroed data needs to pass through the second buffer window again.

[0092] Step S404: If the time domain signal output from the first target buffer position slides to the second buffer window, then determine whether there is a second preset number of continuous target time domain signals on either side of the second target buffer position.

[0093] Please see details Figure 2 Step S204 of the illustrated embodiment will not be described again here.

[0094] Step S405: Based on the second judgment result, process the time domain signal output from the second target buffer location.

[0095] For example, step S405 above may include: Step S4051: If there is a second preset number of consecutive target time-domain signals on at least one side of the second target buffer position, then the time-domain signal output from the second target buffer position is zeroed or limited.

[0096] Specifically, when there is a continuous second preset number of target time-domain signals on at least one of the third and fourth sides, the time-domain signal output from the second target buffer position is zeroed or limited.

[0097] It should be noted that the time-domain signal output of the second target buffer location is set to zero or limited after buffer shifting. The time-domain signal of the second target buffer location will not be set to zero or limited during buffer shifting.

[0098] Step S4052: If there are no consecutive second preset number of target time-domain signals on either side of the target buffer position, then the time-domain signal output from the target buffer position is output to the filter for filtering.

[0099] Specifically, when there are no consecutive second preset number of target time-domain signals on the third and fourth sides, the time-domain signal output from the second target buffer position is retained, and then the time-domain signal output from the second target buffer position is output to the filter to perform filtering processing on the time-domain signal output from the second target buffer position.

[0100] In some embodiments, the power line carrier signal pulse noise processing method further includes: filtering the time-domain signal that has undergone zeroing or amplitude limiting; and synchronizing the filtered time-domain signal.

[0101] Specifically, such as Figure 5 and Figure 6 As shown, regardless of whether the time-domain signal output from the second target buffer position is zeroed (or limited), filtering is performed. After the time-domain signal is output from the second target buffer position, the output signal (the original time-domain signal or the time-domain signal after being zeroed) is filtered and then synchronized. The time-domain signal output from the first target buffer position that has not passed through the second buffer window is also filtered and synchronized.

[0102] Impulse noise appears as continuous and strong in the time domain. Resetting it to zero in the time domain will cause the originally continuous signal to become discontinuous in the waveform. In the frequency domain, high-frequency harmonics similar to square waves (out-of-band leakage) will appear. Filtering can suppress high-frequency components and reduce out-of-band leakage.

[0103] Optionally, the filter can be a bandpass filter. A bandpass filter can simultaneously filter out low-frequency and high-frequency interference, improving the signal-to-noise ratio.

[0104] In this embodiment, the determination of whether to slide the time domain signal output from the first target cache position to the second cache window is made directly based on whether there is a continuous first preset number of target time domain signals on either side of the first target cache position. This makes it easier and faster to determine whether to store the time domain signal in the second cache window, thus improving the efficiency of impulse noise processing.

[0105] This embodiment provides another method for processing power line carrier signal impulse noise, which can be used in the aforementioned communication equipment. This embodiment determines whether to slide the time-domain signal output from the first target buffer position to the second buffer window based on the duration of a first preset number of consecutive target time-domain signals. Figure 7 This is a flowchart illustrating another power line carrier signal pulse noise processing method according to an embodiment of the present invention, as shown below. Figure 7As shown, the process includes the following steps: Step S701: The time-domain signal acquired at the current sampling point is slidably buffered into the first buffer window.

[0106] Please see details Figure 2 Step S201 of the illustrated embodiment will not be described again here.

[0107] Step S702: Determine whether there is a continuous first preset number of target time domain signals on either side of the first target cache location.

[0108] Please see details Figure 2 Step S202 of the illustrated embodiment will not be described again here.

[0109] Step S703: Based on the first judgment result, determine whether to slide the time domain signal output from the first target buffer position to the second buffer window.

[0110] Specifically, step S703 above may include: Step S7031: Determine the input start time and input end time based on the first judgment result.

[0111] Wherein, the input start time t1 is the moment when a first set of consecutive target time domain signals first exist on the first side of the first target buffer position, and the input end time t2 is the moment when the first sliding buffer in the first set of consecutive target time domain signals first exists moves to the first first buffer position.

[0112] Taking the first buffer window as having N1 first buffer positions and a first preset quantity of n1 as an example, the input start time is the time when the target time domain signal is detected from the (N1-n1+1)th first buffer position to the N1th first buffer position, and the input end time is the time when the target time domain signal stored in the (N1-n1+1)th first buffer position slides to the first first buffer position.

[0113] by Figure 3 For example, if the first preset quantity is 6, the input start time is when the target time domain signal exists in all buffer positions from the 12th to the 17th buffer position, and the input end time is when the time domain signal stored in the 12th buffer position slides to the 1st buffer position. Figure 3 Taking the time-domain signals collected by the currently stored sampling points a1-a17 as an example, if the signal strength of the time-domain signals corresponding to the sampling points a12-a17 is greater than the pulse threshold, then this moment is the input start time t1, and the moment when the time-domain signal corresponding to the sampling point a12 slides to the first buffer position is the input end time t2.

[0114] Step S7032: During the time period between the input start time and the input end time, slide the time domain signal output from the first target buffer position to the second buffer window.

[0115] Step S7033: After the input termination time, the time domain signal output from the first target buffer position is output to the filter until the next input start time is obtained.

[0116] use Figure 4 In the embodiment shown, when the time-domain signal output from the first target buffer position is slid-buffered to the second buffer window, some time-domain signals that are determined to be impulse noise may not enter the second buffer window for removal processing. However, when the time-domain signal output from the first target buffer position is slid-buffered to the second buffer window based on the input start time and input end time, the time-domain signals that are determined to be impulse noise can enter the second buffer window for removal processing, further reducing the impact of impulse noise.

[0117] This embodiment can better process target time-domain signals located at the boundaries of a continuous first preset number of target time-domain signals, in order to Figure 3 Taking the time-domain signal of sampling points a14-a17 exceeding the pulse threshold as an example, when the time-domain signal of sampling point a14 or the time-domain signal of sampling point a17 is exactly at the first target buffer position, if the following is adopted... Figure 4 In the illustrated embodiment, the zeroing flag is not set, but the main function of the second buffer window is to further determine whether the time domain signal of sampling points a14-a17 is zeroed (or limited). If the zeroing flag is not set, the time domain signal of sampling point a14 or a17 will not pass through the second buffer window. However, if we combine t1 and t2 in this embodiment, as long as the time domain signal of sampling points a14-a17 is in the first buffer window, the time domain signal output from the first target buffer position will pass through the second buffer window.

[0118] In some optional embodiments, before sliding the time-domain signal output from the first target buffer position to the second buffer window, the method further includes: performing zeroing or limiting processing on the time-domain signal output from the first target buffer position; in this case, sliding the time-domain signal output from the first target buffer position to the second buffer window specifically means: sliding the time-domain signal after zeroing or limiting processing to the second buffer window.

[0119] Step S704: If the time domain signal output from the first target buffer position slides to the second buffer window, then determine whether there is a second preset number of continuous target time domain signals on either side of the second target buffer position.

[0120] Please see details Figure 2 Step S204 of the illustrated embodiment will not be described again here.

[0121] Step S705: Based on the second judgment result, process the time domain signal output from the second target buffer location.

[0122] Please see details Figure 4 Step S405 of the illustrated embodiment will not be described again here.

[0123] This embodiment determines whether to slide the time-domain signal output from the first target buffer position to the second buffer window based on the input start time and input end time. This can better handle the target time-domain signals at the boundary in the first preset number of consecutive target time-domain signals, make the impulse noise cleaner, and further reduce the impact of impulse noise.

[0124] In some optional embodiments, before determining whether there is a continuous first preset number of target time-domain signals on either side of the first target buffer position, the power line carrier signal impulse noise processing method further includes: determining a first preset number based on the number of first buffer positions in the first buffer window; before determining whether there is a continuous second preset number of target time-domain signals on either side of the second target buffer position, the power line carrier signal impulse noise processing method further includes: determining a second preset number based on the number of second buffer positions in the second buffer window.

[0125] Specifically, the number of cache positions in the cache window can be determined based on the communication quality; the better the communication quality, the fewer cache positions in the cache window. The preset number can be proportional to the number of cache positions in the cache window; as the number of cache positions in the cache window increases, the preset number also increases. For example, the first preset number can be... or wait, This indicates the number of first cache positions in the first cache window; the second preset number can be... or wait, This indicates the number of second cache locations in the second cache window, and .

[0126] During communication, even if dozens or even hundreds of consecutive pulse noise points appear in the time domain signal of multiple sampling points received, the corresponding pulse noise points will be set to zero or limited after processing the time domain signal by the power line carrier signal pulse noise processing method provided by this invention.

[0127] In some optional embodiments, before determining whether there is a continuous first preset number of target time-domain signals on either side of the first target buffer location, the power line carrier signal impulse noise processing method further includes: updating a preset threshold according to the signal strength of the time-domain signal corresponding to the sampling point within a preset duration.

[0128] Specifically, if the gain in the Automatic Gain Control (AGC) module is not fixed, the preset threshold is updated based on the signal strength of the time-domain signal corresponding to the sampling point within a preset time period; if the gain in the Automatic Gain Control module is fixed (AGC lock), the preset threshold is stopped from being updated, and the preset threshold remains constant. AGC lock means that the amplification gain coefficient no longer changes. In this invention, the gain coefficient is locked and no longer changes after two consecutive synchronization peaks are found.

[0129] For example, when the gain in the automatic gain control module is not fixed, the current preset threshold is updated to the average of the absolute values ​​of the signal strengths of the time-domain signals collected by multiple sampling points within the previous preset time period every preset duration (e.g., 2 minutes).

[0130] In this embodiment, before determining whether there is a continuous preset number of target time-domain signals on either side of the target buffer position, the preset number is flexibly adjusted according to the number of buffer positions in the buffer window, and the preset threshold is updated according to the signal strength of the time-domain signal corresponding to the sampling point within the preset duration, which can further improve the accuracy of impulse noise discrimination.

[0131] The following is combined Figure 8 Taking the determination of whether to cache to the second cache window based on time as an example, the specific process of the power line carrier signal pulse noise processing method provided by the present invention will be described in detail.

[0132] Pulse interference in the time domain may occur on power lines. Multiple signals with a strength greater than a threshold (preset threshold) appearing consecutively in the time domain are usually called pulse interference. The principle of pulse interference removal is to first identify the pulse signal and then directly set the corresponding time domain signal to zero or limit it.

[0133] The principle of pulse removal in this invention is as follows: Figure 8 As shown, taking an example where the first cache window includes 17 first cache positions, the first preset quantity is 4, the first target cache position is the 9th first cache position, and the second preset quantity is 2, the process of sampling point a17 and thereafter is explained. The first and second cache windows are similar; the second cache window is not shown in the figure. It should be noted that... Figure 8 This is just an example. The length and the first preset number of the first cache window are generally set to be relatively large, while the length and the second preset number of the second cache window are generally set to be relatively small. For example, the number of the first cache positions can be 51 or 101, the number of the second cache positions can be 7 or 9, the first preset number can be 20, and the second preset number can be 2.

[0134] At time T0, the time-domain signal corresponding to sampling point a17 is obtained. The input data is shifted from right to left, and the time-domain signal of sampling point a17 is slidably stored in the last buffer position of the first buffer window. Then, the determination is made. Figure 7 The system checks whether there exists a pattern (where four consecutive time-domain signals have signal strengths greater than a threshold) in buffers 1-8 (buffer positions 1 to 8) and 10-17 (buffer positions 10 to 17) within the first buffer window. Then, based on the first judgment result, it determines whether to slide the time-domain signal output from the first target buffer position to the second buffer window. If so, it checks whether there exists a pattern where two consecutive time-domain signals have signal strengths greater than a threshold at the second target buffer position within the second buffer window. If at least one of these patterns exists, the output of the second target buffer position is set to 0; if neither exists, the original value is directly output. Finally, the output signal is filtered and then synchronized.

[0135] At time T1, the time-domain signal corresponding to sampling point a18 is obtained, and then the above process is repeated until sampling is completed.

[0136] Figure 8 Taking the signal strength of the time-domain signal at sampling points a14-a17 as an example, if the signal strength is greater than the threshold, then the input start time t1 is time T0, and the first target buffer position ( Figure 8 The time-domain signal output from the 9th buffer is slid-buffered into the second buffer window, with the input termination time t2 being time T13. After passing through the second buffer window, the time-domain signals corresponding to the 5 sampling points before a14 and the sampling points a14-a17 are either set to zero or limited when output from the second target buffer position.

[0137] If only such Figure 8 The first buffer window shown will set the time-domain signal collected at the first 5 moments of the pulse to zero or limit it from time T0 to time T4. At the same time, it will set the time-domain signal of the first sampling point a13 of the pulse at the target buffer position to zero or limit it. From time T5 to time T8, the time-domain signal of the four consecutive beats (a14-a17) will maintain the original data when it is output from the target buffer position. The time-domain signal of the sampling points a14-a17 will not be set to zero or limited.

[0138] This embodiment also provides a power line carrier signal pulse noise processing device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0139] This embodiment provides a power line carrier signal pulse noise processing device, such as... Figure 9 As shown, it includes: The first buffer module 901 is used to slide and buffer the time-domain signal acquired at the current sampling point into the first buffer window. The first buffer window includes multiple consecutively set first buffer positions, and each first buffer position stores a time-domain signal. The first judgment module 902 is used to determine whether there is a continuous first preset number of target time-domain signals on any side of the first target buffer position, wherein the first target buffer position is one of a plurality of first buffer positions, and is used to output time-domain signals, wherein the target time-domain signals are time-domain signals with signal strength greater than or equal to a preset threshold. The second buffer module 903 is used to determine, based on the first judgment result, whether to slide the time-domain signal output from the first target buffer position to the second buffer window. The second buffer window includes a plurality of consecutively set second buffer positions, each second buffer position storing a time-domain signal. The number of second buffer positions is less than the number of first buffer positions. The second judgment module 904 is used to determine whether there is a continuous second preset number of target time-domain signals on any side of the second target cache position if the time-domain signal output from the first target cache position slides to the second cache window. The second target cache position is one of a plurality of second cache positions and is used to output time-domain signals. The second preset number is less than the first preset number. The processing module 905 is used to process the time-domain signal output from the second target buffer position based on the second judgment result.

[0140] In some alternative implementations, the second cache module 903 includes: The time calculation unit is used to determine the input start time and input end time according to the first judgment result. The input start time is the moment when a first set of consecutive target time domain signals first exist on the first side of the first target buffer position. The input end time is the moment when the first sliding buffer in the first set of consecutive target time domain signals first exists reaches the first first buffer position. The first side is the side of the first target buffer position that is close to the input end of the first buffer window. The first buffer unit is used to slide the time domain signal output from the first target buffer position to the second buffer window during the time period between the input start time and the input end time. The first output unit is used to output the time-domain signal output from the first target buffer position to the filter after the input termination time, until the next input start time is obtained.

[0141] In some alternative implementations, the second cache module 903 includes: The second buffer unit is used to slide the time domain signal output from the first target buffer position to the second buffer window if there is a continuous first preset number of target time domain signals on at least one side of the first target buffer position. The second output unit is used to output the time-domain signal output from the first target buffer position to the filter if there is no continuous first preset number of target time-domain signals on both sides of the first target buffer position.

[0142] In some alternative embodiments, the apparatus further includes: The zero-setting and limiting module is used to zero out or limit the time-domain signal output from the first target buffer position. The second cache module includes: The third buffer unit is used to slide the time-domain signal after zeroing or limiting to the second buffer window.

[0143] In some alternative implementations, the processing module 905 includes: The processing unit is used to perform zeroing or amplitude limiting on the time domain signal output from the second target buffer position if there is a continuous second preset number of target time domain signals on at least one side of the second target buffer position. The filtering unit is used to output the time-domain signal output from the target buffer position to the filter for filtering if there is no continuous second preset number of target time-domain signals on both sides of the target buffer position.

[0144] In some alternative implementations, the filter is a bandpass filter.

[0145] In some optional implementations, the number of first cache locations and the number of second cache locations are both odd, the first target cache location is the middle first cache location within the first cache window, and the second target cache location is the middle first cache location within the second cache window.

[0146] In some alternative implementations, both the first cache window and the second cache window are first-in-first-out (FIFO) cache units.

[0147] The power line carrier signal pulse noise processing apparatus provided in this embodiment of the invention can execute the power line carrier signal pulse noise processing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.

[0148] Figure 10 This is a schematic diagram of the structure of a communication device provided in an embodiment of the present invention.

[0149] The following is a detailed reference. Figure 10 The diagram illustrates a structural schematic suitable for implementing a communication device according to an embodiment of the present invention. The communication device may include a processor (e.g., a central processing unit, graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from memory 1008 into random access memory (RAM) 1003. The RAM 1003 also stores various programs and data required for the operation of the communication device. The processor 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0150] Typically, the following devices can be connected to the I / O interface 1005: input devices 1006 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; memory devices 1008 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows communication devices to exchange data wirelessly or via wired communication with other devices. Although Figure 10 Communication devices with various means are shown, but it should be understood that it is not required to implement or have all the means shown, and more or fewer means may be implemented or have instead.

[0151] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 1009, or installed from a memory 1008, or installed from a ROM 1002. When the computer program is executed by the processor 1001, it performs the functions defined in the power line carrier signal impulse noise processing method of the embodiments of the present invention.

[0152] Figure 10 The communication device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0153] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the power line carrier signal impulse noise processing method shown in the above embodiments is implemented.

[0154] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0155] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for processing impulse noise in power line carrier signals, characterized in that, The method includes: The time-domain signal acquired at the current sampling point is slidably buffered into the first buffer window, wherein the first buffer window includes multiple consecutively set first buffer positions, and each first buffer position stores a time-domain signal; Determine whether there is a continuous first preset number of target time-domain signals on either side of the first target buffer position, wherein the first target buffer position is one of the plurality of first buffer positions and is used to output time-domain signals, and the target time-domain signals are time-domain signals with signal strength greater than or equal to a preset threshold. Based on the first judgment result, it is determined whether to slide the time-domain signal output from the first target cache position to the second cache window. The second cache window includes a plurality of consecutively set second cache positions, each second cache position stores a time-domain signal, and the number of second cache positions is less than the number of first cache positions. If the time-domain signal output from the first target buffer position slides to the second buffer window, it is determined whether there is a second preset number of the target time-domain signals on either side of the second target buffer position, wherein the second target buffer position is one of the plurality of second buffer positions and is used to output time-domain signals, and the second preset number is less than the first preset number. Based on the second judgment result, process the time-domain signal output from the second target cache location.

2. The method according to claim 1, characterized in that, The step of determining whether to slide the time-domain signal output from the first target buffer position to the second buffer window based on the first judgment result includes: Based on the first judgment result, the input start time and input end time are determined, wherein the input start time is the moment when a first set of consecutive target time domain signals first exist on the first side of the first target buffer position, and the input end time is the moment when the first sliding buffer in the first set of consecutive target time domain signals first exists reaches the first first buffer position, and the first side is the side of the first target buffer position that is close to the input end of the first buffer window; During the time period between the input start time and the input end time, the time-domain signal output from the first target buffer position is slidably buffered into the second buffer window; After the input termination time, the time-domain signal output from the first target buffer position is output to the filter until the next input start time is obtained.

3. The method according to claim 1, characterized in that, The step of determining whether to slide the time-domain signal output from the first target buffer position to the second buffer window based on the first judgment result includes: If there is a first preset number of consecutive target time-domain signals on at least one side of the first target buffer position, then the time-domain signals output from the first target buffer position are slidably buffered into the second buffer window; If there are no consecutive target time-domain signals of a first preset number on either side of the first target buffer position, then the time-domain signal output from the first target buffer position is output to the filter.

4. The method according to claim 2 or 3, characterized in that, Before sliding the time-domain signal output from the first target buffer position to the second buffer window, the method further includes: The time-domain signal output from the first target buffer location is either zeroed out or limited. The step of sliding the time-domain signal output from the first target buffer position to the second buffer window includes: The time-domain signal after zeroing or amplitude limiting is slid-buffered into the second buffer window.

5. The method according to any one of claims 1 to 3, characterized in that, The step of processing the time-domain signal output from the second target cache location based on the second determination result includes: If there is a second preset number of consecutive target time-domain signals on at least one side of the second target buffer position, then the time-domain signal output from the second target buffer position is zeroed or limited. If there are no consecutive second preset number of target time-domain signals on either side of the target buffer position, then the time-domain signal output from the target buffer position is output to the filter for filtering.

6. The method according to claim 5, characterized in that, The filter is a bandpass filter.

7. The method according to any one of claims 1 to 3, characterized in that, The number of the first cache location and the number of the second cache location are both odd. The first target cache location is the first cache location in the middle of the first cache window, and the second target cache location is the first cache location in the middle of the second cache window.

8. The method according to any one of claims 1 to 3, characterized in that, Both the first cache window and the second cache window are first-in-first-out cache units.

9. A power line carrier signal pulse noise processing device, characterized in that, The device includes: The first buffer module is used to slide and buffer the time-domain signal acquired at the current sampling point into the first buffer window. The first buffer window includes multiple consecutively set first buffer positions, and each first buffer position stores a time-domain signal. The first judgment module is used to determine whether there is a continuous first preset number of target time-domain signals on any side of the first target buffer position, wherein the first target buffer position is one of the plurality of first buffer positions, and is used to output time-domain signals, wherein the target time-domain signals are time-domain signals with signal strength greater than or equal to a preset threshold. The second buffer module is used to determine, based on the first judgment result, whether to slide the time-domain signal output from the first target buffer position to the second buffer window. The second buffer window includes a plurality of consecutively set second buffer positions, each second buffer position storing a time-domain signal, and the number of second buffer positions is less than the number of first buffer positions. The second judgment module is used to determine whether there is a second preset number of the target time domain signals on any side of the second target cache position if the time domain signal output from the first target cache position slides to the second cache window. The second target cache position is one of the plurality of second cache positions and is used to output time domain signals. The second preset number is less than the first preset number. The processing module is used to process the time-domain signal output from the second target buffer location based on the second judgment result.

10. A communication device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the power line carrier signal impulse noise processing method according to any one of claims 1 to 8.