# Robust Spectrum Sensing Demonstration Using a Low-Cost Front-End Receiver

Authors: Daniele Borio; Emanuele Angiuli; Raimondo Giuliani; Gianmarco Baldini
Journal: International Journal of Antennas and Propagation
 (2015)

---

## Abstract

Spectrum Sensing (SS) is an important function in Cognitive Radio (CR) to
detect primary users. The design of SS algorithms is one of the most challenging tasks in CR and requires innovative hardware and software solutions
to enhance detection probability and minimize low false alarm probability.
Although several SS algorithms have been developed in the specialized literature, limited work has been done to practically demonstrate the feasibility
of this function on platforms with significant computational and hardware
constraints. In this paper, SS is demonstrated using a low cost TV tuner as agile front-end for sensing a large portion of the Ultra-High Frequency (UHF) spectrum.
The problems encountered and the limitations imposed by the front-end are
analysed along with the solutions adopted. Finally, the spectrum sensor
developed is implemented on an Android device and SS implementation is
demonstrated using a smartphone.


---

## Body

## 1. Introduction

Spectrum Sensing (SS) is one of the most challenging tasks in Cognitive Radio (CR) [1]. In particular, SS consists of scanning a large portion of the Radio Frequency (RF) spectrum and detecting the presence of possibly weak signals in the frequency band of interest. A cognitive device has to determine with a high level of confidence if a specific band is unoccupied before using it for its own operations. High detection probability is required to ensure that primary users are adequately protected, while minimization of false alarms improves the efficiency of secondary users to transmit in RF spectrum bands not occupied by primary users. For this reason, several techniques have been developed to improve the sensitivity of SS. These techniques include the energy detector, the cyclostationarity detector and the matched filter detector [1–3]. The energy detector is the most simple technique available in the literature because of its low computational and implementation complexity. In addition, the energy detector does not require a priori knowledge of the primary user Signal-of-Interest (SOI) and it is therefore more versatile and it can be adopted for the different types of signals. These techniques are designed assuming an ideal front-end for the collection of the samples used for signal detection. Thus, the presence of spurs and gain variations are usually neglected. The oscillator used for signal down-conversion can however introduce harmonics and power can “leak” from adjacent bands if the front-end filter has insufficient side-band rejection. Front-end nonidealities can strongly impact the detection process and need to be accounted for. Although these nonidealities are considered in the recent literature [4–6], only ad hoc solutions, including the increase of the decision threshold [4, 5] and the usage of frequency domain excision techniques [6], were suggested.In this paper, practical SS is demonstrated using a low-cost TV tuner, the Realtek RTL2832U [7] device, which is adopted as agile front-end. The nonlinearities caused by the low-cost device are accounted for using a robust approach for spurious removal. The technique proposed requires a reduced computation load and can thus be implemented on devices with limited computational resources.The contribution of this paper is twofold. At first the propagation impairments caused by a low-cost front-end are experimentally characterized. It is shown that SS has to take into account the spurs and interfering signals caused by the front-end, that is, the sensor used for sensing. Traditional techniques such as the energy detector can be negatively affected by the presence of such interfering terms and robust detection techniques [8] should be employed. In this respect, the classical energy detector is modified using robust operators such as the median. The development of robust energy detection techniques is the second major contribution of the paper. The advantages of the technique developed are analysed in terms of probability of false alarm, that is, the probability of incorrectly declaring a frequency band occupied. The use of the median as robust operator allows the removal of spurious components improving the overall performance of the system.The technique proposed is computationally efficient and can be implemented in platforms with limited computational resources. In this respect, the developed SS technique has been implemented on an Android device and SS is demonstrated using a smartphone.The remainder of the paper is organized as follows: the problem of SS and classical SS techniques are discussed in Section2 whereas the signal model adopted for the detector design is provided in Section 3. The robust energy detector proposed to deal with interference is described in Section 4 and characterized from a statistical point of view in Section 5. The system architecture and its implementation are detailed in Section 6. Experimental results are finally provided in Section 7. Section 8 concludes the paper.


## 2. Spectrum Sensing Techniques

SS is the process of detecting the signal presence in a specific frequency band. Thus, it is a binary hypothesis testing problem where it is necessary to decide between(1)H0:yn=ηn,n=0,…,N-1,H1:yn=xn+ηn,n=0,…,N-1,where H0 and H1 are the null and alternative hypothesis, respectively. The null hypothesis assumes that the band of interest (portion of spectrum under analysis) is not occupied by a signal component and only the noise term, η[n], is present. On the contrary, the alternative hypothesis, H1, assumes that also a useful signal component, x[n], is present. In (1), the different components are digital sequences obtained by digitizing an analog signal using a sampling frequency, fs.Note that (1) defines the simplest form of the problem addressed by SS. In particular, under the assumption that η[n] is a complex circularly symmetric Gaussian process, model (1) defines a simple Additive White Gaussian Noise (AWGN) channel. Effects such as interference and channel distortions are neglected. More complex models accounting for fading and interference are to be considered in order to handle real channel effects [3, 9]. In this paper, a signal model accounting for frequency-dependent interference terms is considered. Moreover, flat spectral characteristics are assumed on the frequency band considered for sensing. More details on the model adopted in this paper are provided in Section 3.In order to decide betweenH0 and H1, different detectors have been suggested in the literature [10, 11]. A detector is a function of the input data which is used to compute a decision variable which, in turn, is compared with a decision threshold [12]. The basic principle of signal detection is shown in Figure 1. The input samples, y[n], are combined to form the decision statistic, D. The alternative hypothesis is selected if D passes the decision threshold, Th. Note that several detectors can be adopted in parallel as shown in Figure 1. In this case, a combining strategy is required to form a new composite decision variable which is then compared against the decision threshold. The use of several detectors can improve the reliability of the final decision.Figure 1
Principles of signal detection: the decision variable,D, is computed from the input sample, y[n]. Several detectors can be adopted in parallel to compute a set of decision variables. A combining strategy is then adopted to evaluate the final decision statistic.A review of the different detectors adopted in the literature for SS can be found in [10, 11]. At the basis of the design of a signal detector, there is usually a model which incorporates the information available on the signal and noise components in (1). In general, the more information on the signal structure is exploited, the more the detector will be effective. This principle is valid only in the absence of model mismatches: if errors are present in the signal and noise descriptions then the detector may suffer significant performance degradations. Thus, the design of a signal detector is usually a compromise between detection performance and robustness against model mismatches.A signal detector widely adopted in the literature is theenergy detector:(2)De=1N∑n=0N-1yn2,where De represents an estimate of the energy of the input samples, y[n]. The assumptions behind (2) are that both signal and noise samples can be modelled as zero mean circularly symmetric Gaussian random processes.When the energy detector is used, a signal in a specific frequency band is declared present if its energy exceeds a decision threshold,Th. This threshold depends on the noise variance, σ2, which should be known. When σ2 is not known, it needs to be estimated. For this reason, noise floor estimators are required. A simple approach is to measure σ2 by considering signals in frequency bands that are known to be unoccupied and contain noise only. Note that the problem of noise floor estimation is a common problem in communication and navigation. Examples of noise floor estimators adopted for the detection of Global Navigation Satellite System (GNSS) signals can be found in [13]. The basic principle of noise floor estimation is to remove first the signal component and measure the noise power alone. Errors in the knowledge of σ2 can significantly reduce detection performance.The energy detector has been used as starting point for the design of several SS techniques which account, for example, for communication channels with non-flat spectral characteristics [9] and for other transmission impairments [3].More advanced detectors employed for SS exploit the knowledge of specific signal properties and are often referred to asfeature detectors [10]. For example, communication signals are often characterized by nonstationary correlation functions (second order statistics) and detection can be performed in the signal correlation domain. These detectors include thecyclostationary detector and thepeak autocorrelation magnitude detector. The former tries to identify the presence of periodic patterns in the time-varying autocorrelation function of the input sample, y[n]; the latter verifies if the maximum of the autocorrelation function (computed on a sliding window) is higher than the decision threshold. More recently, Compressive Sensing (CS) approaches have also been adopted for SS [14]. These techniques allow a significant reduction in the number of samples required for detecting the signal presence.Several other detectors have been suggested and additional details can be found in [10, 11] and in the references therein.


## 3. Signal Model

Low-Cost Software Defined Radio (SDR) front-ends, such as the Realtek RTL2832U [7] device, are able to collect relatively narrowband signals with a specified centre frequency, fc. In particular, the centre frequency of the band of interest can be easily specified using the Application Program Interface (API) of the device [7].The signals are filtered, down-converted, sampled, and digitized. The output of the front-end is thus a digital sequence which can be effectively modelled as(3)ynTs,fc=σssnTs,fc+AfcinTs,fc+ηnTs,fc,where Ts=1/fs is the sampling interval used to digitize the input analog signal. In (3), s(nTs,fc) is the useful signal normalized in order to have real and imaginary parts with unit power. Depending on the SOI, different models can be adopted to describe s(nTs,fc). Moreover, additional factors can be added in order to take into account propagation effects such as the channel impulse response. In this paper, narrowband SS is performed; that is, relatively small frequency bands are considered during sensing. In this way, it is possible to assume a flat frequency channel on the frequency band selected. This model is justified by the experimental results reported in Section 7.When TV White Spaces (WSs) are considered,s(nTs,fc) is modelled as a zero mean complex circularly symmetric Gaussian random process with real and imaginary parts with unit variance. This type of model is justified for Orthogonal Frequency Division Multiplexing (OFDM) modulations [15] where the central limit theorem can be applied. The symbol, σs, determines the total power, C=2σs2, of the useful signal. When σs=0, the useful signal components are absent and the channel is available for secondary users. Detection problem (1) can be restated in terms of σs: the goal of SS is to determine if σs is equal to zero or not.Finally, it is noted that low-cost front-ends are characterized by relatively low sampling frequencies,fs. Thus, s(nTs,fc) represents only a narrow portion of the SOI. Components from several frequencies should be considered to detect the presence of wideband signals.Signali(nTs,fc) is a complex interfering term with amplitude, A(fc), dependent on the centre frequency, fc. It will be shown that, in the absence of interference from adjacent bands, i(nTs,fc) can be effectively described as a Continuous Wave (CW). More complex models should be considered to account for the impact of receiver nonlinearities in the presence of strong signals on adjacent bands [4]. When A=0, no interference is present. η(nTs,fc) is the receiver noise modelled as a zero mean complex circularly symmetric Gaussian random process with real and imaginary parts with variance, σ2(fc).The interference term is due to Local Oscillator (LO) leakage, In-Phase/Quadrature (I/Q) imbalances, and Direct Current (DC) offset. LO leakage occurs when the signal generated by the local oscillator enters the reception path of the front-end and thus a CW interference is perceived by the receiver. I/Q imbalances are due to a nonideal behaviour of the two arms of the front-end demodulator whereas the DC offset is due to power supply noise leaking on the demodulator output.Standard SS techniques neglect the presence of the interfering term,i(nTs,fc), and thus can suffer significant performance degradation. In the next section, an approach robust to frequency outliers is derived. An empirical justification to model (3) is provided in Section 7.


## 4. Robust Energy Detection

In order to be able to perform SS in the presence of interference, a robust algorithm is required. In this paper, robustness is intended in the distributional sense; that is, it is the ability of a system to deal with model mismatches [8]. Consider, for example, a simple energy detector, in the absence of signal, the input samples are assumed to be made of noise only. The noise term is assumed to follow a complex Gaussian distribution and the decision threshold is set according to this hypothesis. When oscillator spurs are present, this hypothesis is violated and the model is no longer valid. A robust SS technique has to be able to deal with this type of model mismatch. In addition to this, the algorithms have to be computationally efficient in order to be able to operate in real-time, for example, on an Android platform.As mentioned in Section2, the energy of a signal is defined as(4)Efc=1N∑n=0N-1ynTs,fc2.This is the energy measured around the centre frequency, fc, considering a narrow portion of the spectrum. This frequency band is dictated by the sampling capabilities of the front-end. If the SOI is wideband, then its total energy is given by(5)De=1K∑k=0K-1Efmin⁡+kΔf,where fmin⁡ is the minimum centre frequency considered, Δf is the frequency step used to explore the different frequency values, and K is the number of frequency bands analysed. The maximum centre frequency considered is given by(6)fmax⁡=fmin⁡+K-1Δf.Equations (4) and (5) define a two-stage procedure for computing the energy of the SOI. Energy (5) is not robust and if ynTs,fc is contaminated by interference, then an anomalous total energy will be estimated.In order, to obtain robust energy estimation, (5) is generalized and the two-stage detection scheme detailed in Figure 2 is suggested. K realizations of E(fc) are selected on adjacent frequency bands using the analysis window in Figure 2 and are used to compute a robust decision variable, D. D is obtained as the output of a nonlinear combining function:(7)D=fKEfmin⁡,…,Efc,…,Efmax⁡.The first stage of the detection scheme significantly reduces the computational complexity whereas the nonlinear combining strategy adopted for the second stage improves the robustness of the system.Figure 2
Two-stage detector architecture.In this paper, we consider the class ofM-estimators [8] for the design of fK in (7). M-estimators have been proposed as robust solutions for estimating the location (mean) of a sequence of random variables [8]. In this respect, D can be interpreted as an estimate of the energy measured on the frequency band(8)Btot=KΔB,where ΔB is the frequency band of the samples collected for a fixed centre frequency, fc. ΔB is defined by the capabilities of the front-end used for SS. The standard energy detector in (5) can, for example, be obtained by choosing(9)fK·=mean·.Equation (9) will be used as baseline for assessing the robustness of the algorithm selected. In this paper, the sample median [16] is used as a robust location estimator:(10)fK·=medianEfmin⁡,Efmin⁡+Δf,…,Efmax⁡.When the number of samples used to compute partial energy (4) is large, then it is possible to invoke the central limit theorem and approximate E(fc) as a real Gaussian random variable:(11)Efc~N2σ2+σs2+A2,4Nσ2+σs2A2+σ2+σs2,where the dependence on fc has been dropped for ease of notation. The mean and variance of E(fc) are computed in the Appendix.The presence of an interfering term in (3) increases the mean and variance of the energy measured in a specific channel. From the results presented in Section 7, it is shown that interference is present only at specific frequencies and thus it is reasonable to assume that A is nonzero only for a limited number of bands. For this reason, it is possible to model A as a scaled Bernoulli random variable:(12)A=A0with probabilityp0with probability1-p.Equations (11) and (12) define a contaminated model where p is the contamination percentage. The sample median is able to effectively cope with contamination models and thus it has been selected for the robust estimation of the signal energy.


## 5. Statistical Characterization

The performance of a detector is usually characterized in terms of probability of false alarm and probability of detection [12]. The probability of false alarm quantifies the occurrence of type 1 errors, that is, the incorrect detection of signals in an unoccupied frequency band. The probability of detection is the probability of correctly detecting the signal presence. The probability of false alarm is particularly important since it is usually adopted for setting the decision threshold, Th. In this section, the impact of interference on the false alarm probability is analysed. In particular, the false alarm probability is defined as(13)PfaTh=PD>Th∣H0,where H0 is the null hypothesis defined in (1). The decision threshold is obtained by fixing a target probability of false alarm and inverting (13).When standard energy detector (9) is used, and in the absence of interference, the false alarm probability associated to the decision variable, De, is given by(14)PfaTh=1-QTh-2σ24σ4/K·N,where Q(·) is the Cumulative Density Function (CDF) of a standard Normal Gaussian random variable. Equation (14) has been obtained by considering the fact that, in the absence of interference and under H0, the mean and variance of E(fc) become 2σ2 and 4/Nσ4, respectively. Mean operator (9) leaves the mean of De unaltered and reduces the variance of E(fc) by a factor K.The threshold,Th, is obtained by fixing Pfa and inverting (14). In the presence of outliers, that is, in the presence of energy spikes due to interference, the actual probability of false alarm significantly increases with respect to the desired value. This performance degradation is analysed here as a function of the contamination percentage, p, and the Interference-to-Noise power ratio (J/N) is defined as(15)JN=A22σ2.Although the sample median does not, in general, follow a Gaussian distribution, it is possible to show [16] that a Gaussian approximation can be effectively adopted for large values of K. In this case, the variance of D is increased by a factor π/2 [16] with respect to the mean operator. This is the loss of efficiency to be paid to improve the robustness of the system. Thus, the Gaussian approximation of the probability of false alarm for the median case is given by(16)PfaTh=1-QTh-2σ22πσ4/K·N.This probability of false alarm is used in the following paragraph to set the decision threshold in the median case.The false alarm probability degradation, considering mean and median operators, is shown in Figure3 where the estimated Pfa is plotted as a function of the desired probabilities, (14) and (16), for a fixed J/N=0 dB. For the simulations, the parameters reported in Table 1 have been used. These parameters correspond to the values that could be encountered for a typical Digital Video Broadcast-Terrestrial (DVB-T) signal with a total frequency occupation equal to 8 MHz. In the absence of degradation, the curves shown in Figure 3 should coincide with the diagonal of the square with corners (0,0) and (1,1): the higher the distance from such diagonal is, the more the detector is affected by the interfering term. As expected, all the curves in Figure 3 are above the diagonal and thus all the detectors suffer some degradations. The detector based on the median is however significantly less affected by the presence of outliers and only relatively small displacements from the diagonal are observed. Degradations become more and more severe as the contamination factor, p, is increased. For p=0.3, the mean detector provides an actual false alarm probability practically saturated to 1: this implies that the detector will always declare the signal present even if the frequency channel is unoccupied. This makes the standard energy detector unusable.Table 1
Parameters adopted for the simulation performed in Figures3 and 4.
Parameter
Value
K
8
Δ
B
1 MHz
SOI total bandwidth
8 MHzFigure 3
Degradation in terms of false alarm probability as a function of the contamination probability,p, for a fixed J/N=0 dB. ΔB=1 MHz, K=8. Probabilities of false alarm have been plotted in logarithmic scale.The degradation is analysed for a fixed contamination probability (p=0.1) and for different J/N values, that is −10, −5, and 0 dB in Figure 4. These low J/N values demonstrate the lack of robustness of standard techniques which suffer a significant increase in terms of false alarm probability even in the presence of weak interference. The performance of the median operator does not depend on the J/N of the interfering signal and thus only the worst case is considered in Figure 4.Figure 4
Degradation in terms of false alarm probability as a function of theJ/N for a fixed contamination probability, p=0.1. ΔB=1 MHz, K=8. Probabilities of false alarm have been plotted in logarithmic scale.Curves relative to the standard approach tend to the saturation curvePfa,sat⁡ which can be expressed as(17)Pfa,sat⁡Th=1-pKPfa+1-1-pK,where Pfa is the target probability of false alarm used to set the detection threshold. Equation (17) is obtained by assuming that in the presence of at least one outlier the probability of false alarm is equal to 1. As expected, the mean operator shows a strong sensitivity to the J/N variations whereas the median is robust to these fluctuations. In particular, from Figure 4 it emerges that the probability of false alarm of the mean energy detector already saturates for J/N=-5 dB.The analyses performed in Figures3 and 4 highlight the fact that the mean shows the greatest performance degradation in the presence of interference. These results clearly show the advantages of a robust detector in reducing and controlling the false alarm probability of the system.


## 6. System Architecture and Implementation

In order to prove the benefits of robust energy sensing and the possibility of implementing CR capabilities using a low-cost front-end, a SDR system has been developed using the Realtek RTL2832U device.The system developed had to meet two basic requirements: (1) being able to operate in real-time and (2) allowing data recording. Real-time operations are necessary to obtain a preliminary analysis of the data streamed by the Realtek RTL2832U device and demonstrate SS whereas data recording is fundamental to allows postmission operations. The samples collected using the Realtek RTL2832U device are valuable data which can be used to design and test new SS algorithms. For this reason, the general architecture depicted in Figure 5 has been adopted. The TV tuner is interfaced to the main software through dedicated drives. The API provided by the OsmocomSDR Project [7] was used in a PC implementation whereas the driver developed by Marinov [17] was adopted for the Android port of the spectrum sensor. The API allows a user to set the different parameters of the TV tuner including the centre and sampling frequencies. A software controller is used to progressively change the signal centre frequency and to start the streaming of the I/Q samples which are stored in a circular buffer. The buffer is accessible via two different threads: the first is used for real-time processing whereas the second is responsible for storing data to disk. (In the Android implementation, data are stored on a Secure Digital (SD) card.) Data are stored according to the format described in Figure 5(a): a synchronization pattern is inserted at the beginning of each data block and it is followed by the centre frequency of the samples. The synchronization pattern is a sequence of 20 bytes whereas the centre frequency is saved as a 32-bit unsigned integer. The I/Q samples are stored in an interleaved way and the size of each data block is a parameter selectable by the user.Figure 5
Architecture adopted for the real-time processing and storage of the I/Q samples streamed by the Realtek RTL2832U device. A software controller is used to scan a large frequency band. The data are stored according to the format detailed in the bottom part of the figure.
(a)
(b)This architecture is very generic and allows both real-time and postprocessing operations. The samples provided by the Realtek RTL2832U device are a function of both time and centre frequency and correspond to the samples,y(nTs,fc), considered in Section 3.The architecture detailed above has been implemented on both PC and Android platforms. For the PC implementation, SS capabilities have been implemented in the JRC Interference Monitor (JIM) software, a real-time platform is designed for interference monitoring and extended here to process I/Q samples from the Realtek RTL2832U device. JIM has been developed in C++ using the Object Oriented Programming (OOP) paradigm. The main elements of JIM are as follows.(i)
A front-end: a hardware device providing samples to the software. Although this is not an element of the software, JIM has to be aware of the front-end used in order to adopt the correct protocol for data streaming.(ii)
SampleSources: these objects provide a standard software interface to the hardware device connected to JIM. All the sample sources are derived from a base class (“BaseSampleSource”) and thus have the same basic interfaces. The main goal of a sample source is to provide the samples to be processed.(iii)
SampleConsumerDataProducers: these objects consume the samples provided by aSampleSource and generate data which can be then displayed. An example is theHistogramConsumer which uses the samples provided by aSampleSource to compute their relative frequencies (probabilities) of the input samples. TheHistogramConsumer produces a list of pairs containing the sample value and its relative frequency. These data are then ready to be displayed in some form.(iv)
DataDisplayer: these objects get the data from theSampleConsumerDataProducers and either display them on the screen or save them to a file.The processing chain describing the principles of operations of JIM is shown in Figure 6. A screen-shot of the JIM software for SS is shown in Figure 7(a). The different views of the software are progressively updated showing the signal evolution as a function of the selected centre frequency.Figure 6
Processing chain implemented in the JIM software.Figure 7
(a) Screen-shot of the JIM software for SS. The different views of the software GUI are progressively updated showing the signal evolution as a function of the selected centre frequency. (b) Main activity of the Android implementation of the spectrum sensor based on the Realtek RTL2832U front-end. The spectrogram showing the energy estimated in the different bands is progressively depicted in the lower part of the GUI.
(a)
(b)The Android software has been developed in Java using an architecture similar to that adopted for JIM. The main activity of the Android implementation of the spectrum sensor based on the Realtek RTL2832U front-end is shown in Figure7(b). The interface allows a user to set different parameters such as the frequency range to sweep and the sampling frequency. The application implements the robust energy detection algorithms detailed in Section 4.


## 7. Experimental Results

Several experiments were conducted to test the capabilities of the system developed and the sample results are provided in this section.A first set of experiments was conducted in order to experimentally verify the validity of model (3). In particular, we were interested in showing the presence of self-interference, that is, that form of interference generated by the front-end itself. For this reason, the antenna port of the Realtek device was terminated by a 50 Ohm resistance. Moreover, the device was closed in a box covered by RF absorbers as shown in Figure 8. In this way, it was possible to measure the energy of the signal components generated by the device. In Figure 9, the energy measured in the Ultra-High Frequency (UHF) band is shown when the experimental setup shown in Figure 8 is adopted. The blue curve denoted as “Unfiltered” shows the energy, E(fc), computed using (4) and with no further processing. The sampling frequency of the Realtek RTL2832U was set to 1.024 MHz in order to obtain a signal bandwidth, ΔB, close to that in Table 1. Spurs and oscillator artefacts are clearly visible; moreover, small variations in the noise floor can be observed as a function of fc. These results support the signal model adopted in Section 3. It is possible to observe that spurs occur at regular intervals spaced by 28.8 MHz. This is the fundamental frequency of the crystal oscillator mounted on the Realtek RTL2832U device.Figure 8
The Realtek RTL2832U device was closed inside a box covered by RF absorbers and with the antenna port closed by a 50 Ohm terminator.Figure 9
Energy measured in the UHF band when the antenna port of the Realtek RTL2832U device is terminated using a 50 Ohm resistance.ΔB=1 MHz, K=8.Estimates of the total energy in a 8 MHz bandwidth are also provided in Figure9. When the mean operator is used for computing the total energy, spurs are still present. These artefacts can bias the detection process. The median operator is an effective tool to remove those artefacts and frequency spikes are no longer present. After spike removal, the energy measured in Figure 9 can be used to estimate the noise variance, σ2, as a function of the centre frequency, fc. In particular, σ2 has been estimated using the samples collected using this setup, that is, in the absence of signal, and accounting for the presence of interference. When the signal is absent, σ2 can be estimated using (7) where the median has been adopted to remove the impact of interference.Note that the suitability of the Realtek RTL2832U device for energy detection depends on the frequency band considered. For example, when the L band ([1100–1700] MHz) is considered, the Realtek RTL2832U front-end has a significantly worse behaviour than in the UHF band. This fact is highlighted in Figure10 where the noise energy measured by the Realtek RTL2832U device is shown as a function of the centre frequency. Also in this case, the antenna port of the device was terminated with a 50 Ohm resistance and the TV tuner was covered by RF signal absorbers. Several spikes are present and the noise floor does not show a regular trend. In this case, the frequency spikes are approximately 14.4 MHz, half the frequency measured for the UHF bands. The median operator is able to effectively remove most of the spikes present in the energy profile in Figure 10.Figure 10
Energy measured in the L band when the antenna port of the Realtek RTL2832U device is terminated using a 50 Ohm resistance.ΔB=1 MHz, K=8.The detection capabilities of the device have been tested using real and simulated data. Simulations were performed using a hardware-in-the-loop approach. In particular, a Universal Software Radio Platform (USRP) 2 device was used to generate a useful signal component with the same spectral characteristics of a TV channel. An example of the curves obtained with this approach is shown in Figure11. Here, the signal presence is clearly detected. The channels adjacent to the useful signal are only marginally affected by its presence and the noise floor is consistent with the values measured in Figure 9.Figure 11
Energy measured in the UHF band when the antenna port of the Realtek RTL282U device is connected to a USRP simulating a single TV channel.ΔB=1 MHz, K=8.


## 8. Conclusions

In this paper, SS has been demonstrated using a low cost TV tuner. In particular, a Realtek RTL2832U device was used as an agile front-end for scanning the UHF bands. A two-stage energy detection scheme was proposed to improve the robustness of the system and to deal with the spurs and imperfections caused by the front-end oscillator. The use of robust estimators, such as the median filter, allows a significant improvement, in terms of false alarm probability, with respect to standard techniques. Real data and hardware-in-loop simulations were used to test the system developed and to characterize the performance of the algorithm proposed. The advantages of robust detection techniques were clearly shown.The use of robust estimators can also be used in the presence of narrowband wireless interference like CWs. The application of the algorithms used in this paper in the presence of wireless interference will be addressed in future work. Future work also includes a better characterization of the front-end with specific focus on the impact of Automatic Gain Control (AGC) and the study of additional robust techniques such as the myriad filter [8].



---

*Source: 464982-2015-08-05.xml*