Testing Radio
Testing Radio
Received for review February 15 th, 2013, Accepted May 27 th, 2013, final version July, 3 th, 2013
ABSTRACT: Software-defined radio (SDR) provides a convenient framework for the design and implementation of a communication
system, by separating the signal processing algorithms from the communication hardware. This separation allows researchers to design
testbed systems to validate the gains in performance reported by the theory. Designing and implementing a testbed is a time consuming
and challenging process. This work presents the design and implementation of a flexible testbed system, including the solution to some
synchronization problems. We also present a distributed software architecture that defines the control flow, the subsystem decomposition,
and the mapping to hardware of the testbed. A running example of the testbed for a binary phase-shift keying (BPSK) system is developed
to illustrate the results attained by the proposed testbed in terms of the performance comparison between the testbed measurements, and the
theoretical and simulated ones with a loss of 2 dB.
RESUMEN: El radio definido por software (SDR) proporciona un marco de trabajo conveniente para el diseño e implementación de un
sistema de comunicación, mediante la separación de los algoritmos de procesamiento de señales y el hardware de comunicación. Esta
separación permite a los investigadores diseñar sistemas de banco de pruebas para validar las ganancias en el rendimiento reportados por la
teoría. El diseño e implementación de un banco de pruebas es un proceso que consume tiempo y esfuerzo. Este trabajo presenta el diseño
e implementación de un sistema de banco de pruebas flexible, incluyendo la solución a algunos problemas de sincronización. Además, una
arquitectura distribuida de software que define el flujo de control, la descomposición en subsistemas, y la asignación de hardware de la
plataforma de pruebas es presentada. Se desarrolla un ejemplo del funcionamiento del banco de pruebas para un sistema con modulación
binaria por desplazamiento de fase (BPSK) y se ilustran los resultados obtenidos por el banco de pruebas propuesto en términos de la
comparación de rendimiento entre las medidas obtenidas por del banco de pruebas, y los rendimientos teóricos y simulados con una de
perdida 2 dB.
PALABRAS CLAVE: Radio definido por Software, Comunicaciones digitales, Banco de pruebas de comunicación.
Dyna, year 80, Nro. 180, pp. 67-76. Medellin, August, 2013. ISSN 0012-7353
68 Pino & Arguello
There are testbed systems reported in the literature r (t ) = s(t ) n(t ), (2)
that address the design and implementation of such
systems for academic purposes. Rao in [16] presents where is the channel attenuation, and the signals s (t ) , n (t )
a classification scheme for wireless testbeds, including and r (t ) are the transmitted signal, the additive random noise
examples for each case and discussion on the role of the channel, and the received signal, respectively
of such systems in an educational environment. [21]. A particular case is the additive white gaussian
One research focuses on the latency of SDR, and its noise channel AWGN in which the noise n (t ) is normal
impact on throughput in modern wireless protocols distributed, n(t)~N( 0 ,ó 2 ) .
[18]. A flexible SDR system to quantify the real world
Dyna 180, 2013 69
Therefore, this work explores a set of algorithms (8)
that separately try to reduce the effects on the
Rrw [l ] = r[n l ]w[n],
n =
transmitted signal due to the aforementioned issues. between the received discrete sequence r and a known
However, the aim of the work is to create an initial pilot sequence w , at the time shift parameter l . The
testbed implementation, not to address an exhaustive signal w is supposed to be appended to the transmitted
discussion about the optimum algorithm for solving sequence s so that the maximum value of | Rrw | for
each issue of real communications. l = 0, 1, 2, ,
|R rw [l ] |=| r[n l ]w[n] |, (9)
n =
the time shift which minimizes the difference between 3.3. Estimation of the Signal to Noise Ratio (SNR)
the signals. Once l * is computed the optimum sampling
time for the beginning of the frame, t * , is computed as In order to compute the performance of the system at a
*
t =| r | l , *
(10) given SNR or Channel Signal to Noise Ratio (CSNR),
it is indispensable to estimate the value of the SNR,
where | r | is the number of samples of the signal r . given by (3), at the receiver.
3.2. Channel Attenuation First, the system estimates the statistical characteristics
of the noise in the channel. Hence, the estimation
The channel attenuation introduces a distortion in the is performed in the case when the transmitter is not
amplitude of the signal s (t ) , by scaling it by a factor sending any signal, s (t ) 0 . Thus, in theory, the
. Therefore, it is required to estimate the value receiver samples are the noise samples, r (t ) n(t ) .
of the factor at the receiver so that the system An example of the results of the method applied to
can reconstruct a better approximation of the signal samples captured by an USRP 2 SDR hardware, are
s (t ) . For the AWGN channel (2), and assuming shown for both the histogram of the noise and the
that the channel attenuation, , is constant during time and frequency signal representation in Fig. 4.
the transmission time; then, it is suitable to use the Let N be a discrete random variable representing the
Maximum Likelihood Estimate (MLE) in order to discrete version of the AWGN channel noise. Then, the
find the value of the parameter that maximizes the noise power of the channel, 2 , is estimated using the
likelihood function denoted by p(r | ) . That is, find an empirical estimator defined as
that maximizes the correspondence of the selected 2 1 m
E[ N 2 ] lim n[ j ]2 Var ( N ), (13)
model with the observation of the received signal r (t ) . m m j =1
The AWGN channel assumes that the noise in the where there are m samples, of the sampled noise of the
channel follows a normal distribution n(t)~N( 0,ó 2 ) , and channel n , available for the estimation.
by letting the transmitted signal be set to a deterministic
signal, such as s (t ) = sin (t ) , the statistics of the received Therefore, given the AWGN channel, (2), and assuming
signal are E[r (t)] = s(t) , and Var[r (t )] = 2 , which means a discrete signal representation of the received signal
r (t ) given by
that the signal r (t ) follows a normal distribution such
as r(t)~N( s (t ) ,ó 2 ) . r = s n. (14)
E[s 2 ]
Down converting and then sampling the continuous 2
bandpass signal r (t ) , so that there are n i.i.d The SNR E[n ] is computed using the following
(independent and identically distributed samples of methods:
a random variable) samples of the signal, denoted by
r = r1, r2 ,, rn , available for the estimation procedure.
Then, the optimum value of is estimated as
n
ri si
* i =1
= arg max p (r | ) = n
. ( 11 )
si2
i =1
Now, considering just the samples where the amplitude
of the signal s (t ) is the maximum/minimum, in this case
s max (t ) = 1 and s min (t ) = 1 , then the products ri si 0
Figure 4. Left: Time domain and Frequency domain
. Thus, the estimation of is reduced to
n representations of the sampled noise recorded using
| ri | an USRP 2 and plotted in Matlab. Right: Histogram of
* i =1
= . ( 1 2) the sampled channel noise recorded and the Gaussian
n
approximation of these samples.
where | . | denotes the absolute value of the sample ri .
72 Pino & Arguello
The first method uses existing data at the transmitter latter is composed of three types of components
in order to estimate the SNR at the receiver, named Remote Client (RC); Slave Tx (STX) and
E s2
Slave Rx (SRX); and the SDR hardware as in Fig.
2
SNR = , 5, where each component is deployed over different
E n2 (15) and distributed hardware nodes. The use of the client/
so that the receiver knows a priori the transmitted signal server architectural style, as the basis for the software
s and the value of is estimated as described before architecture, reduces the coupling (a measure of the
in section 3.5. number of dependencies between two subsystems of a
software system) between the baseband digital signal
On the other hand, the second method just considers processing and the hardware of SDR to be used in the
the received signal r , and the SNR is estimated as testbed.
E [r 2 ]
SNR = 1,
E[n 2 ] (16)
so that the estimation of the SNR depends only on the
received signal, which means that the corresponding
values for and the signal s are implicit in r [12].
Although the former synchronization procedure First, given (1) the testbed implements the signal
solves most problems of frequency mismatch, there is processing and communication algorithms that
a remaining impairment related to a constant carrier generate the digital representation of the signal sl (t ) , as
phase error. The testbed addresses this impairment software to be executed offline in a personal computer
using SISO frequency estimator algorithms, such as (PC). These algorithms are part of the services available
Kay [11], Fitz [6] and Luise & Reggiannini [13]. on the RC node, and could be implemented using
MATLAB, or python with the GNU Radio library.
4. TESTBED DESCRIPTION AND SOFTWARE Currently, software for single-input single-output
ARCHITECTURE (SISO) BPSK and PAM modulation and demodulation
has been developed for this system. Therefore, the
A distributed Software Architecture is in charge of transmission of a sequence of symbols involves the
defining the control flow of the transmission and following operations:
reception operations performed by the testbed. The
Dyna 180, 2013 73
Wireless measurements were conducted in an office Then, for calibration, the system has to perform an
setting. The purpose of these measurements is to initial transmission of the signal s (t ) using a fixed
validate the testbed performance versus the expected value k = 1.0 in which performance is denoted as
theoretical performance computed by the channel CSNR =
E s . Next, solving (18) for k ,
2
2
ACKNOWLEDGMENTS
REFERENCES
[10] Hekland, F. On the design and analysis of Shannon- [17] Reed, J., Software radio: a modern approach to radio
Kotel’nikov mappings for joint source-channel coding [PhD engineering, Prentice Hall Press, Upper Saddle River, 2002.
Thesis]. Norwegian University of Science and Technology,
2007. [18] Schmid, T., Sekkat, O., and Srivastava, M. B. An
experimental study of network performance impact
[11] Kay, S. A fast and accurate single frequency estimator, of increased latency in software defined radios”. In
IEEE Transactions on Acoustics, Speech and Signal Proceedings of the second ACM international workshop
Processing, vol. 37, No. 12, pp. 1987-1990, 1989. on Wireless network testbeds, experimental evaluation and
characterization (WinTECH). Montréal, Canada, pp. 59,
[12] Lang, S., Rao, M. R., and Daneshrad, B. Design and September 2007.
development of a 5.25 GHz software defined wireless OFDM
communication platform, IEEE Communications Magazine, [19] Johnson, C. R., and Sethares, W.A., “Telecommunication
vol. 42, No. 6, pp. S6-12, 2004. breakdown: concepts of communication transmitted via
software-defined radio”, Prentice Hall, Upper Saddle River,
[13] Luise, M., and Reggiannini, R. Carrier frequency 2004.
recovery in all-digital modems for burst-mode transmissions,
IEEE Transactions on Communications, vol. 43, No. 234, [20] Linn, Y. Synchronization, phase detection, lock
pp. 1169-1178, 1995. detection, and SNR estimation in coherent M-PSK receivers
[Ph.D Thesis]. Canada: University of British Columbia,
[14] Massey, J. Optimum Frame Synchronization, IEEE 2007.
Transactions on Communications, vol. 20, No. 2, pp. 115-
119, 1972. [21] Proakis, J. G., Digital Communications, McGraw-Hill,
New York, 2000.
[15] Ramstad, T. A. Shannon mappings for robust
communication, Telektronikk, vol. 98, No. 1, pp. 114-128, [22]Rueda H. F., Correa C. V., and Arguello H., “Design and
2002. development of a speech synthesis software for colombian
spanish applied to communication through mobile devices”.
[16] Rao, R. M., Wiejun, Z., Lang, S., Oberli, C., Browne, D., Journal Dyna, No. 173-II, pp. 71-80, 2012.
Bhatia, J., Frigon, J. F., Wang, J., Gupta, P., Heechoon, L., Liu,
D. N., Wong, S. G., Fitz, M., Daneshrad, B., and Takeshita, O. [23] GNU RADIO. Open-source software development
Multi-antenna testbeds for research and education in wireless toolkit that provides signal processing blocks to implement
communications, IEEE Communications Magazine, vol. 42, software radios. Available: http://gnuradio.org, [cited June
No. 12, pp. 72-81, 2004. 2012].