SM 5 BSZ - How to use the linrad noise blanker.
(Nov 25 2001)

The Leonids 2001, many signals and severe powerline noise

Fig. 1. shows the screen of linrad when the sequence is processed without any noise blanker. The noise floor is raised by about 25dB so it is approximately at S9 with a conventional S-meter with 3dB for each S-unit.



Fig 1. No blanker. Note that the powerline noise has short quiet periods.

All screen dumps on this page show the same sequence. For this page linrad00-32 is used. This version has some improvements in the blanker algorithms that make the performance slightly better compared to earlier linrad versions. In fig. 2. the processing is stopped during one of the short quiet periods which is a clear demo of the high power line noise level.



Fig 2. screen during a short pause in the powerline noise. The fft1 averaging is made somewhat smaller in order to make the spectrum reach its noise free level quicker. This does not affect the noise floor level at all. Note the noise bursts at 31kHz, time 45.50 for example. These bursts are generated by a too low setting of the dumb blanker level, the yellow line at the bottom of the high resolution graph. When what is not excluded from the two strong SSB signals adds up to reach the dumb blanker level, intermodulation between the two is produced.
Fig. 3. shows the blanker in proper operation with both steps enabled, both the smart blanker and the dumb blanker. I do not have a modern transceiver with a good noise blanker in it so I can not tell how linrad compares to conventional noise blanking, but compared to my old FT221 linrad is much better.



Fig 3. Normal operation of the linrad noise blanker. Both the smart and the dumb blankers are enabled. The noise floor is close to the level it would have been at if the powerline noise had not been present at all. The short periods of no powerline noise are nearly invisible and make a very small difference in the audio output.

Excluding frequencies.

The main spectrum (blue dB scale) is used for a first search for strong signals. This spectrum is searched in two ways, fast and slow. The average is calculated in two steps, first the number of spectra indicated in the little box in the lower right corner is scanned for signals that are strong enough to possibly saturate further processing. For the processing on this page the first fft resolution is 300Hz with a sin to power 3 window so the average of 5 spectra is computed in about 15 milliseconds. The main spectrum averaging number is 150 so it represents the average over about half a second. The slow average is searched each time 5 new spectra are included so signals well above the noise floor are detected much quicker than in 0.5 seconds.

The blue vertical bar at the left side of the high resolution graph sets the S/N level at which signals are excluded. This level can be set lower if long averaging times are used because then the noise floor becomes flatter.

Searching for signals in the main spectrum does not work well in situations with continuous powerline noise as one can see from a comparison between fig. 2 and fig. 3. The powerline noise has lifted the noise floor by about 25dB so only signals that are more than about 25dB above the white noise floor can be found by use of the main spectrum.

The most recent line of the waterfall graph is used for a second search for strong signals. Here noise pulses are not present any more so much weaker signals can be found in a difficult situation as the one used for this page.

The S/N level for deciding if a frequency shall be excluded when searching the high resolution spectrum (fft2, the last line of the waterfall) is set by the red vertical bar in the high resolution graph. How to set this level depends on the waterfall averaging chosen.

All spectrum points that are considered to contain strong signals are red in the main spectrum. The red and/or blue bars are set too low if red points occur at frequencies where there is no signal. Exactly how to set these levels for optimum performance is unclear at the moment. I need several more difficult test cases to get some experience. Maybe it is quite different on crowded HF bands compared to nearly quiet VHF bands as one normally has during EME operation.

Excluded frequencies are not rejected, they are just passed outside the noise blanker and added to the blanked signal. In case the amplitude is very large, the excluded frequencies are attenuated to prevent saturation in the high resolution fft which uses 16bit only to take advantage of the very fast MMX (multimedia extension) instructions of modern processors.

Effects of the blanker on excluded frequencies

To show what happens to excluded frequencies, a part of the spectrum from 67kHz to 82 kHz is artificially excluded. Fig. 4 shows the dumb blanker works in this situation. As one would expect, the excluded frequencies contain the powerline noise as if no blanker was present at all, but other frequencies are nearly free from the powerline noise.



Fig 4. Dumb blanker only. The frequency range 67 to 82kHz is excluded from the blanker as if there was a strong signal there. As a consequence the noise level is about 25dB higher in the excluded frequency band.
The smart blanker that subtracts a pulse with the shape that is given by the pulse response of the hardware behaves differently for excluded points. Fig.5 shows what happens if only the smart blanker is operated on excluded signals.



Fig 5. Smart blanker only. The frequency range 67 to 82kHz is excluded from the blanker as if there was a strong signal there. Note that pulse noise is removed from the excluded frequency band!!!
Since a reference pulse is removed with the pulse shape it would have if no points were excluded, the signal does not become zero during the time of the pulse. What remains during the pulse time after subtraction of the reference pulse is a smaller pulse that will cancel the pulse present in the excluded frequency range.

Under normal operation the dumb blanker is operated after the smart blanker. If the threshold of the dumb blanker is set very low and if many points are excluded, the dumb blanker will clear points which actually constitute correct data produced by the smart blanker to cancel pulse energy in the excluded frequencies. Fig. 6 shows both blankers running with a too low level for the dumb blanker.



Fig 6. Smart and dumb blanker together. The frequency range 67 to 82kHz is excluded from the blanker as if there was a strong signal there. Due to a low setting of the level for the dumb blanker, the pulse that would cancel the pulse in the excluded frequency range is removed.

Practical considerations

When experimenting with the blanker it is a good idea to select minimum size for the baseband fft (fft3) in order to have a fast response on parameter changes. Listen to the desired frequency and adjust all four blanker controls for best S/N.

Setting controls too high is safe but will not give optimum performance.

If the blue vertical bar is too low for the fft1 averaging chosen, points will be excluded due to random variations in the noise floor. This is easily detected in the main spectrum, red points that have no corresponding signal in the waterfall graph. To look for this phenomenon, disable the dumb blanker because it generates signals in the excluded frequency range.

If the red vertical bar is too low and the dumb blanker is operating with a low threshold, random frequency bands with artificial strong signals are produced as shown in fig. 7.



Fig 7. Smart and dumb blanker together. Dumb blanker threshold is very low and the red S/N control bar is low. Once a frequency is excluded it will stay excluded since the noise produced in excluded frequency bands by the dumb blanker is strong enough to keep them excluded. If patterns of this kind show up on the waterfall graph the red bar has to be moved upwards or the yellow line has to be moved more to the right. Increasing the waterfall averaging may also be helpful.
Blanker levels may be set too low causing severe loss of data. This error is shown in fig. 8.



Fig 8. Operation with too low blanker thresholds looks fine in the waterfall graph but will not produce good S/N in the loudspeaker. Here 47% (upper left corner) of all data points are cleared which means that 47% of the desired signal is lost! Moving the yellow control line to the right will improve S/N by increasing the signal more than increasing interference.

The time functions

To assist in understanding the blanker operation linrad has oscilloscope functions. The two groups of signals, the weak signals on which the blanker operates and the excluded frequencies, the strong signals, are displayed by a mouse click on the little box with an "o" in the lower right corner of the high resolution graph. Fig.9 shows a typical example from the data used for the images on this page.



Fig 9. Typical example of powerline noise. The white track is total power of weak signals, the sum of the squares of the upper four coloured tracks.
Yellow is I for rx channel 1
Purple is Q for rx channel 1
Red is I for rx channel 2
Blue is Q for rx channel 2 The lower four coloured tracks show excluded frequencies. Note that the blanker is disabled and therefore the noise level is extremely high in the waterfall which means that a lot of strong signals are not excluded as they would be in normal operation. Under normal operation much less signal is present between thew pulses in the weak signal group.

The benifit of using large bandwidth for the blanker is clearly demonstrated by fig. 10.

The noise blanker is improved in linrad00-32. Further improvements are possible but to investigate what can be done I need test recordings from interference situations where the current blanker does not work well.

The demo on this page is showing SSB signals. CW signals are much easier to find. The optimum way of finding what frequencies to exclude is hard to figure out because circumstanses may differ dramatically depending on the frequency band.

Linrad still has only the mode for weak CW implemented. It is really going outside the intended usage to open the bandwidth to allow ssb reception but it works quite well and is a good test for the algorithms. In other modes there is no need for very large fft's on the entire spectrum so it will be possible to use more efficient methods for the noise blanker. Splitting the signal into more than two and making more independent transforms on these signals will make it possible to suppress pulse noise even better.



Fig 10. Typical example of powerline noise in the baseband at 5kHz bandwidth. It is quite clear that a blanker operating in 5kHz bandwidth can not remove these pulses without loosing about 50% of the signal. Even 10kHz bandwidth is not enough to separate the individual pulses from each other. 20kHz bandwidth or more is required for a noise blanker to remove the powerline noise. With a conventional blanker each strong signal would make operation within +/- 10kHz from it very difficult.