A PLC signal pulse noise processing method and device and communication equipment
By using a sliding buffer window in the PLC signal to determine the characteristics of continuous noise, and by using the continuity and intensity of the buffer position to determine impulse noise, false judgments are reduced, more accurate impulse noise processing is achieved, and signal quality is improved.
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
In existing technologies, the accuracy of identifying PLC signal pulse noise is low, and it is difficult to adapt to dynamic changes in noise intensity, leading to frequent misjudgments.
By acquiring the current time domain signal and sliding the buffer to the buffer window, it is determined whether there is a continuous preset number of target time domain signals on either side of the target buffer position. Based on the determination result, zeroing, amplitude limiting, or filtering are performed to reduce false judgments.
It improves the accuracy of PLC signal pulse noise identification, reduces the impact of noise on signal quality, and enhances communication quality.
Smart Images

Figure CN122179020A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power line carrier communication technology, specifically to a method, apparatus, and communication equipment for processing PLC 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 device for processing PLC signal pulse noise, in order to solve the problem of low accuracy in pulse noise identification.
[0005] In a first aspect, the present invention provides a PLC signal pulse noise processing method, the method comprising: acquiring a current time-domain signal collected at a current sampling point; sliding the current time-domain signal into a buffer window, wherein the buffer window includes multiple consecutively set buffer positions, each buffer position storing a time-domain signal; determining whether there is a consecutive preset number of target time-domain signals on either side of a target buffer position, wherein the target buffer position is one of multiple buffer positions, used to output the time-domain signal of the sampling point, and the target time-domain signal is a time-domain signal with a signal strength greater than or equal to a preset threshold; and processing the time-domain signal output by the target buffer position according to the determination result.
[0006] This embodiment utilizes the continuous and periodic nature of impulse noise. It determines the presence of impulse noise in multiple time-domain signals stored in the buffer window by checking for the existence of a predetermined number of consecutive target time-domain signals on either side of the target buffer location. Impulse noise is only identified when a predetermined number of consecutive time-domain signals with a strength greater than a predetermined threshold exist, rather than simply identifying a single time-domain signal with a strength greater than the 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 multiple time-domain signals stored in the buffer window, the time-domain signal output from the target buffer location is processed. This process also applies to the time-domain signals before and after the impulse noise, reducing the impact of impulse noise and improving signal quality.
[0007] In one optional implementation, processing the time-domain signal output from the target buffer location according to the judgment result includes: if there is a continuous 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 zeroed or limited; if there is no continuous 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 filtered.
[0008] In one alternative implementation, the number of cache positions in the cache window is odd, and the target cache position is the middle cache position.
[0009] 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.
[0010] In one optional implementation, before determining whether there is a preset number of consecutive target time-domain signals on either side of the target buffer location, the method further includes: determining the preset number based on the number of buffer locations in the buffer window.
[0011] 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 can be flexibly adjusted according to the number of buffer positions in the buffer window, which can further improve the accuracy of impulse noise discrimination.
[0012] In one optional implementation, before determining whether there are a preset number of consecutive target time-domain signals on either side of the target buffer location, the method further includes: updating a preset threshold based on the signal strength of the time-domain signal corresponding to the sampling point within a preset duration.
[0013] In this embodiment, before determining whether there is a continuous preset number of target time-domain signals on either side of the target buffer location, the preset threshold is updated according to the signal strength of the time-domain signal corresponding to the sampling point within a preset time period, which can further improve the accuracy of impulse noise discrimination.
[0014] In one alternative implementation, if the gain in the automatic gain control module is fixed, the preset threshold is stopped from being updated.
[0015] In one alternative implementation, the cache window is a first-in, first-out (FIFO) cache unit.
[0016] In one optional implementation, the method further includes: filtering the time-domain signal that has been zeroed or limited; and synchronizing the filtered time-domain signal.
[0017] In this embodiment, after the time-domain signal is output at the target buffer location, the output time-domain signal is filtered and then synchronized. This can avoid signal discontinuity, suppress high-frequency components, and reduce out-of-band leakage.
[0018] Secondly, the present invention provides a PLC signal pulse noise processing device, the device comprising: an acquisition module for acquiring the current time-domain signal collected at the current sampling point; a buffer module for sliding the current time-domain signal into a buffer window, wherein the buffer window includes multiple consecutively set buffer positions, each buffer position storing a time-domain signal; a judgment module for judging whether there is a consecutive preset number of target time-domain signals on either side of a target buffer position, wherein the target buffer position is one of the multiple buffer positions, for outputting the time-domain signal of the sampling point, and the target time-domain signal is a time-domain signal with a signal strength greater than or equal to a preset threshold; and a processing module for processing the time-domain signal output by the target buffer position according to the 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 PLC 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 PLC signal pulse noise processing method of the first aspect or any corresponding embodiment thereof.
[0021] Fifthly, the present invention provides a computer program product, including computer instructions, which are used to cause a communication device to execute the PLC signal pulse noise processing method of the first aspect or any corresponding embodiment described above. 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 PLC signal pulse noise processing method 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 PLC signal pulse noise processing method according to an embodiment of the present invention; Figure 5 This is a flowchart illustrating another PLC signal pulse noise processing method according to an embodiment of the present invention; Figure 6 This is a schematic diagram of four consecutive target time-domain signals moving within a buffer window according to an embodiment of the present invention; Figure 7 This is a schematic diagram of five consecutive target time-domain signals moving within a buffer window according to an embodiment of the present invention; Figure 8 This is a structural block diagram of a PLC signal pulse noise processing device according to an embodiment of the present invention; Figure 9 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 PLC 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 PLC 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 PLC signal pulse noise processing method, apparatus and communication equipment, which processes the time domain signal output from a specific buffer position (target buffer position) in the buffer window based on whether there are a number of consecutive time domain signals with signal strength greater than a preset threshold, thereby reducing misjudgment and improving signal quality.
[0031] According to an embodiment of the present invention, a method for processing PLC signal pulse noise 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 PLC signal pulse noise processing method, which can be used in the aforementioned communication equipment. Figure 2 This is a flowchart illustrating a PLC 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: Obtain the current time domain signal collected at the current sampling point.
[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). The current sampling point is the sampling point at the current time, and the current time-domain signal is the time-domain value obtained from the current sampling point.
[0034] Step S202: Slide the current time domain signal into the buffer window.
[0035] The buffer window includes multiple consecutively set buffer positions, each of which stores a time-domain signal. Sliding the current time-domain signal into the buffer window can be understood as shifting the historical time-domain signals already stored in the buffer window in sequence and storing the current time-domain signal in a specific buffer position of the buffer window (such as the last buffer position). The historical time-domain signals are the time-domain signals acquired before the current time-domain signal.
[0036] The buffer window is a buffer with a fixed storage width. The buffer window is set with a fixed target buffer position for outputting the time-domain signal of the sampling point. The target buffer position is one of multiple buffer positions. Furthermore, the target buffer position can be one of the multiple buffer positions other than the first buffer position and the last buffer position.
[0037] The buffer windows store data in chronological order. The previous time-domain signal acquired at the previous sampling point is stored in the buffer window before the current time-domain signal acquired at the current time-domain signal. The last buffer position in multiple buffer windows is the buffer position for the current time-domain signal. When the current time-domain signal is the first time-domain signal, the last buffer position is not occupied and the current time-domain signal is directly stored in the last buffer position. When the current time-domain signal is not the first time-domain signal, the last buffer position is occupied. First, at least one historical time-domain signal in the buffer window is moved, and then the current time-domain signal is stored in the last buffer position of the buffer window.
[0038] like Figure 3 As shown, the cache window includes N cache locations, where N is an integer greater than 3. Figure 3 Taking N=17 and the target cache location as the 9th cache location as an example. Figure 3 As shown, at a certain moment, the buffer window stores the time-domain signal collected by sampling points a1-a17. After acquiring the time-domain signal (current time-domain signal) collected at the next moment (sampling point a18), the time-domain signals (historical time-domain signals) corresponding to sampling points a1-a17 stored in the buffer window are shifted from right to left to free up the last buffer position, and the time-domain signal corresponding to sampling point a18 is stored in the last buffer position. At this time, the 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 buffer window stores the time-domain signal collected by sampling points a3-a19.
[0039] 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, and the time-domain signal acquired by sampling point a18 is the current time-domain signal; when the time-domain signal acquired by sampling point a19 is obtained, sampling point a19 is the current sampling point, and the time-domain signal acquired by sampling point a19 is the current time-domain signal, while the time-domain signal acquired by sampling point a18 is the historical time-domain signal.
[0040] like Figure 3 As shown, the input signal is updated from right to left (the data in the buffer window is shifted from right to left, but the data stored in the buffer window does not change), and the output signal is output from a fixed position (target buffer position) in the buffer window.
[0041] Step S203: Determine whether there is a continuous preset number of target time-domain signals on either side of the target cache location.
[0042] Step S204: Based on the judgment result, process the time domain signal output from the target cache location.
[0043] Wherein, any side of the target cache position can refer to the side of the target cache position closer to the first cache position (denoted as the first side) or the side of the target cache position closer to the last cache position (denoted as the second side), and the target time domain signal is a time domain signal with a signal strength greater than or equal to a preset threshold.
[0044] 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 preset number is set according to the length of the buffer window, and this invention does not impose a specific limitation.
[0045] Whether a predetermined number of consecutive target time-domain signals exist on either side of the target buffer location can refer to whether a predetermined number of consecutive target time-domain signals exist at multiple buffer locations on the first side, or multiple buffer locations on the second side, or multiple buffer locations on both the first and second sides. Figure 3 For example, the multiple cache locations on the first side are cache locations 1 to 8, and the multiple cache locations on the second side are cache locations 10 to 17.
[0046] The judgment results include the presence (or absence) of a predetermined number of consecutive target time-domain signals at multiple cache locations on the first side, the presence (or absence) of a predetermined number of consecutive target time-domain signals at multiple cache locations on the second side, and the presence (or absence) of a predetermined number of consecutive target time-domain signals at multiple cache locations on both the first and second sides.
[0047] 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.
[0048] 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 the current time-domain signal into the buffer window, it is determined whether there is a continuous preset number of target time-domain signals on any side of the target buffer position. If so, 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 is considered that there is impulse noise among the multiple time-domain signals stored in the buffer window, and the time-domain signal output from the target buffer position can be zeroed or amplitude-limited.
[0049] If there is no consecutive preset number of target time-domain signals on either side of the target buffer position, it is assumed that there is no impulse noise in the multiple time-domain signals stored in the buffer window at the current moment, and the time-domain signal output from the target buffer position can be directly filtered.
[0050] It should be noted that when the output signal is in the buffer window, the sampling is still in progress. If the next time domain signal of the next sampling point is obtained, the next time domain signal is used as the current time domain signal and the above steps S202 to S204 are repeated.
[0051] When impulse noise is detected (i.e., when a predetermined number of consecutive target time-domain signals exist on either side), this application does not simply zero out or limit the signals of sampling points exceeding the impulse threshold. Instead, it zeros out and outputs the signals of sampling points at fixed positions within the buffer window, thus determining the impulse noise and outputting at the target buffer position. Since the 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.
[0052] exist Figure 3Taking a preset quantity of 4 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 time-domain signal stored in the target buffer position (the time-domain signal corresponding to sampling point a9) will be zeroed or limited after output. After the buffer data is shifted in the next moment, the time-domain signal stored in 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 will also be zeroed or limited before 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, this invention can not only zero or limit the impulse noise, but also zero or limit the time-domain signals corresponding to the sampling points at both ends of the impulse noise, thereby reducing the impact of impulse noise.
[0053] It should be understood that the buffer window is used to store time-domain signals, but does not process time-domain signals. Figure 3 If the signal strength of the time domain signal corresponding to sampling points a14-a17 is greater than the preset threshold (pulse threshold), the sampling points will move from right to left in the window position with the clock signal. The time domain signal stored in 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. The time domain signal 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, while the others will retain the original output.
[0054] The PLC signal pulse noise processing method provided in this embodiment obtains the current time domain signal collected at the current sampling point, slides the current time domain signal to the buffer window, then determines whether there is a continuous preset number of target time domain signals on any side of the target buffer position, and processes the time domain signal output from the target buffer position according to the determination result.
[0055] This embodiment utilizes the continuous and periodic nature of impulse noise. It determines the presence of impulse noise in multiple time-domain signals stored in the buffer window by checking for the existence of a predetermined number of consecutive target time-domain signals on either side of the target buffer location. Impulse noise is only identified when a predetermined number of consecutive time-domain signals with a strength greater than a predetermined threshold exist, rather than simply identifying a single time-domain signal with a strength greater than the 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 multiple time-domain signals stored in the buffer window, the time-domain signal output from the target buffer location is processed. This process also applies to the time-domain signals before and after the impulse noise, reducing the impact of impulse noise and improving signal quality.
[0056] In this embodiment, based on the characteristics of impulse noise, the presence of a continuous number of target time-domain signals within the buffer window can be accurately determined, reducing the probability of misjudgment. Furthermore, by fixing the output time-domain signal at the target buffer position, processing of the impulse noise and the signals before and after it can be achieved. Specifically: when continuous impulse noise begins to appear, the signal between the target buffer position and the continuous impulse noise can be processed (i.e., the time-domain signal before the impulse noise is processed); when the impulse noise slides to the target buffer position, the impulse noise can be processed; and when the impulse noise slides past the target buffer position, the signal between the impulse noise and the target buffer position can also be processed (i.e., the time-domain signal after the impulse noise is processed).
[0057] It should be noted that, due to the high intensity of impulse noise, this high-intensity noise energy spreads to surrounding areas during signal propagation, interfering with adjacent sampling points. This interference is not a simple superposition, but may cause distortion of the signal values at adjacent sampling points, deviating from their true values. If only the impulse noise itself is processed, while ignoring the affected adjacent sampling points, these distorted parts will still remain in the processed signal, thus affecting the subsequent synchronization process. In the embodiments of this application, by processing the impulse noise and the noise before and after the impulse, the impact of impulse noise can be greatly reduced, thereby improving signal quality.
[0058] In some alternative embodiments, the number of cache positions in the cache window is odd, and the target cache position is the middle cache position. When the number of cache positions is odd, setting the middle cache position as the target cache position allows for symmetrical processing of adjacent time-domain signals contaminated by impulse noise, facilitating subsequent filtering and synchronization operations.
[0059] For example, the buffer window can be a First In, First Out (FIFO) buffer unit, and the buffer window in this invention is a special FIFO buffer unit. The FIFO buffer unit in this invention adds a data reading module to the original FIFO buffer unit, enabling the time-domain signal to be read from the 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.
[0060] 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).
[0061] 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.
[0062] This embodiment provides another method for processing PLC signal pulse noise, which can be used in the aforementioned communication equipment. Figure 4 This is a flowchart illustrating another PLC 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: Obtain the current time domain signal collected at the current sampling point.
[0063] Please see details Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0064] Step S402: Slide the current time domain signal into the buffer window.
[0065] Please see details Figure 2 Step S202 of the illustrated embodiment will not be described again here.
[0066] Step S403: Determine the preset quantity based on the number of cache locations in the cache window.
[0067] Specifically, the number of cache positions in the cache window can be determined based on communication quality; the better the communication quality, the fewer cache positions are needed. The preset number can be proportional to the number of cache positions in the cache window; as the number of cache positions increases, the preset number also increases. For example, the preset number could be... or wait, This indicates the number of cache locations in the cache window.
[0068] 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 by processing the time domain signal using the PLC signal pulse noise processing method provided by this invention.
[0069] Step S404: Update the preset threshold according to the signal strength of the time domain signal corresponding to the sampling point within the preset time period.
[0070] 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.
[0071] 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).
[0072] Step S405: Determine whether there is a continuous preset number of target time-domain signals on either side of the target cache location.
[0073] Please see details Figure 2 Step S203 of the illustrated embodiment will not be described again here.
[0074] Step S406: Based on the judgment result, process the time domain signal output from the target cache location.
[0075] For example, step S406 may include: Step S4061: If there is a continuous preset number of target time-domain signals on either side of the target buffer location, then the time-domain signals output from the target buffer location are zeroed or limited.
[0076] Specifically, when there is a continuous preset number of target time-domain signals on at least one of the first and second sides, the time-domain signal output from the target buffer position is zeroed or limited.
[0077] It should be noted that the time-domain signal output of the target buffer location is set to zero or limited after buffer shifting. The time-domain signal of the target buffer location will not be set to zero or limited during buffer shifting.
[0078] Step S4062: If there is no continuous 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 filtered.
[0079] Specifically, when there is no continuous preset number of target time-domain signals on either the first or the second side, the time-domain signal output from the target buffer position is retained, and then the time-domain signal obtained from the target buffer position is filtered.
[0080] Step S407: Filter the time-domain signal that has been zeroed or limited.
[0081] Step S408: Synchronize the filtered time-domain signal.
[0082] Specifically, regardless of whether the time-domain signal output from the target buffer location is zeroed (or limited), filtering is performed. After the time-domain signal is output from the target buffer location, the output signal (either the original time-domain signal or the time-domain signal after being zeroed) is filtered and then synchronized. Impulse noise appears continuous and has a high signal strength in the time domain. Zeroing it in the time domain will cause the originally continuous signal to become discontinuous in waveform, resulting in high-frequency harmonics (out-of-band leakage) similar to a square wave in the frequency domain. Filtering can suppress high-frequency components and reduce out-of-band leakage.
[0083] 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. After the time-domain signal is output at the target buffer position, the output time-domain signal is filtered and then synchronized, which can avoid signal discontinuity, suppress high-frequency components, and reduce out-of-band leakage.
[0084] The following is combined Figure 5 and Figure 6 The present invention provides a detailed description of the specific process of the PLC signal pulse noise processing method.
[0085] 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.
[0086] The principle of pulse removal in this invention is as follows: Figure 5 and Figure 6As shown, taking a preset quantity of 4, a cache position of 17, and a target cache position of the 9th cache position as an example, the process of sampling point a17 and thereafter is explained.
[0087] 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 stored in the last buffer location. Then, it is determined whether there is a pattern in buffers 1-8 (buffer locations 1 to 8) and buffers 10-17 (buffer locations 10 to 17) where the signal strength of four consecutive time-domain signals is greater than the threshold value. If so, the output of the 9th buffer is set to 0; otherwise, the original value is output directly. Then, the output signal is filtered and synchronized.
[0088] 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.
[0089] Figure 6 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 value, then, as Figure 6 As shown in the diagram from time T0 to T4, the five sampling points before a14-a17 are either zeroed or limited when output from the target buffer location. From time T5 to T8, the four consecutive pulses include the time-domain signal from the target buffer location. At this time, neither buffers 1-8 nor buffers 10-17 have four consecutive pulses exceeding the preset threshold, and the original data stored in the 9th buffer location is directly output. For the next five pulses (five time points), the five time-domain signals after the pulse are either zeroed or limited. In other words, pulse removal transforms patterns that exceed the threshold four or more times into patterns that only exceed the threshold four or fewer times.
[0090] like Figure 7 As shown, if five consecutive time-domain signals exceed the threshold, the time-domain signals collected at the first five moments of the pulse will be set to zero or limited. At the same time, the first point of the pulse, including the target buffer position, will also be set to zero or limited. The raw data will be output for the next three beats. Then, the last point of the pulse will also be set to zero or limited. Therefore, the pattern that originally had five values exceeding the threshold will become a pattern with only three time-domain signals exceeding the threshold.
[0091] This embodiment also provides a PLC 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.
[0092] This embodiment provides a PLC signal pulse noise processing device, such as... Figure 8 As shown, it includes: The acquisition module 801 is used to acquire the current time-domain signal collected at the current sampling point; The buffer module 802 is used to slide the current time domain signal into the buffer window, wherein the buffer window includes multiple buffer positions set consecutively, and each buffer position stores a time domain signal; The judgment module 803 is used to determine whether there is a continuous preset number of target time-domain signals on any side of the target buffer position, wherein the target buffer position is one of multiple buffer positions, and is used to output the time-domain signal of the sampling point, wherein the target time-domain signal is a time-domain signal with a signal strength greater than or equal to a preset threshold. The processing module 804 is used to process the time-domain signal output from the target buffer location based on the judgment result.
[0093] In some alternative implementations, the processing module 804 includes: The first processing unit, if there is a continuous preset number of target time-domain signals on either side of the target buffer location, is used to perform zeroing or amplitude limiting processing on the time-domain signals output from the target buffer location. The second processing unit is used to filter the time-domain signal output from the target buffer position if there is no continuous preset number of target time-domain signals on either side of the target buffer position.
[0094] In some alternative implementations, the number of cache locations in the cache window is odd, and the target cache location is the middle cache location.
[0095] In some alternative embodiments, the apparatus further includes: The quantity determination module is used to determine the preset quantity based on the number of cache positions in the cache window.
[0096] In some alternative embodiments, the apparatus further includes: The update module is used to update the preset threshold based on the signal strength of the time-domain signal corresponding to the sampling point within a preset time period.
[0097] In some alternative implementations, if the gain in the automatic gain control module is fixed, the preset threshold is stopped from being updated.
[0098] In some alternative implementations, the cache window is a first-in, first-out (FIFO) cache unit.
[0099] In some alternative embodiments, the apparatus further includes: The filtering module is used to filter time-domain signals that have undergone zeroing or amplitude limiting. The synchronization module is used to synchronize the filtered time-domain signal.
[0100] The PLC signal pulse noise processing device provided in this embodiment of the invention can execute the PLC 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.
[0101] Figure 9 This is a schematic diagram of the structure of a communication device provided in an embodiment of the present invention.
[0102] The following is a detailed reference. Figure 9 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.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from memory 908 into random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the communication device. The processor 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0103] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows communication devices to exchange data wirelessly or via wired communication with other devices. Although Figure 9 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.
[0104] 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 909, or installed from a memory 908, or installed from a ROM 902. When the computer program is executed by the processor 901, it performs the functions defined in the PLC signal impulse noise processing method of the embodiments of the present invention.
[0105] Figure 9 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.
[0106] 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 PLC signal pulse noise processing method shown in the above embodiments is implemented.
[0107] 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.
[0108] 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 PLC signal pulse noise, characterized in that, The method includes: Obtain the current time-domain signal acquired at the current sampling point; The current time-domain signal is slidably buffered into a buffer window, wherein the buffer window includes multiple consecutively set buffer positions, and each buffer position stores a time-domain signal; Determine whether there is a continuous preset number of target time-domain signals on any side of the target buffer position, wherein the target buffer position is one of the plurality of buffer positions, used to output the time-domain signal of the sampling point, and the target time-domain signal is a time-domain signal with a signal strength greater than or equal to a preset threshold. Based on the judgment result, the time-domain signal output from the target cache location is processed.
2. The method according to claim 1, characterized in that, The step of processing the time-domain signal output from the target cache location based on the judgment result includes: If a predetermined number of consecutive target time-domain signals exist on either side of the target buffer location, then the time-domain signals output from the target buffer location are either zeroed or limited. If there is no consecutive 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 filtered.
3. The method according to claim 1, characterized in that, The number of cache positions in the cache window is odd, and the target cache position is the middle cache position.
4. The method according to any one of claims 1 to 3, characterized in that, Before determining whether a predetermined number of consecutive target time-domain signals exist on either side of the target buffer location, the method further includes: The preset quantity is determined based on the number of cache locations in the cache window.
5. The method according to any one of claims 1 to 3, characterized in that, Before determining whether a predetermined number of consecutive target time-domain signals exist on either side of the target buffer location, the method further includes: 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.
6. The method according to claim 4, characterized in that, If the gain in the automatic gain control module is fixed, then the preset threshold will stop being updated.
7. The method according to any one of claims 1 to 3, characterized in that, The cache window is a first-in-first-out (FIFO) cache unit.
8. The method according to claim 2 or 3, characterized in that, The method further includes: Filter the time-domain signal that has been zeroed or limited. Synchronization processing is performed on the filtered time-domain signal.
9. A PLC signal pulse noise processing device, characterized in that, The device includes: The acquisition module is used to acquire the current time-domain signal collected at the current sampling point; A caching module is used to slide the current time-domain signal into a caching window, wherein the caching window includes multiple consecutively set caching positions, and each caching position stores a time-domain signal; The judgment module is used to determine whether there is a continuous preset number of target time-domain signals on any side of the target buffer position, wherein the target buffer position is one of the plurality of buffer positions, and is used to output the time-domain signal of the sampling point, wherein the target time-domain signal is a time-domain signal with a signal strength greater than or equal to a preset threshold. The processing module is used to process the time-domain signal output from the target cache location based on the judgment result.
10. A communication device, characterized in that, include: The system includes a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the PLC signal pulse noise processing method according to any one of claims 1 to 8.