SDR
SDR
net/publication/279193013
CITATIONS READS
0 4,142
2 authors:
All content following this page was uploaded by James Agajo on 18 January 2021.
Abstract – Software-Defined Radio (SDR) is a rapidly evolving technology that is receiving enormous recognition and
generating widespread interest in the telecommunication industry. It facilitates implementation of the physical and link layer
protocols-in effect entire wireless system,-in software. A side effect of the rapid growth of wireless system technology in the
recent past is an excess of wireless system standards. Therefore the SDR concept is emerging as a pragmatic solution. It aims
to build flexible radio systems which are multiple-Defined Radio architectures as a prototyping, tool for wireless baseband
signal processor implementations is explored. Signal processing implementations is explored. Signal processing architectures
and algorithms for the physical layer of IEEE 802.11g- the latest release from the popular IEEE family of wireless standards-is
developed and simulated in Matlab and Simulink. The integrity of the developed model is verified by measurement of the
constellation versus signal to noise ratio (SNR) and Bit error Rate (BER) versus SNR graph, which are reported. The IEEE
802.11g PHY model is then translated to software (C++) with the aid of Real-Time workshop software tool. The generated
codes can then be targeted on a Digital Signal Processor (DSP) or other programmable hardware modules.
Keywords – SDR, OFDM, DSP, Modulation
without requiring new hardware. In addition, multiple using Direct Sequence (DS) and Frequency Hopped (FH)
wireless standards can be implemented on the same device. spread spectrum (SS) techniques. The third PHY facilitates
communication over infrared links. As the demand for data
2. IEEE 802.11 Physical layer rates continued to increase, several new PHY layer
The physical (PHY) layer is the lowest layer (ISO layer 1) specifications have been added. These PHY extensions to the
specification of the IEEE 802.11 standard. It is the logical original standard are designated by a letter following the
layer in charge of defining the physical details of the 802.11 name, such as 802.11a, 802.11b, 802.11g or 802.11n.
network, such as electrical power transmitted, modulation The letter suffix represents the task group that defines the
scheme, etc [22]. The original 802.11 standard specifies three extension to the standard [23]. Table 2.1 briefly summarizes
PHY layers. Two of the PHYs facilitate communications in 802.11 PHY extensions [12][1][13].
the 2.4GHz Industrial Scientific and Medical (ISM) band
Table 2.2. 802.11g data rates, transmission types and modulation schemes. Implementation block
Data Rate (Mbps) Transmission type Modulation scheme
54 OFDM 64QAM
48 OFDM 64QAM
36 OFDM 16QAM
24 OFDM 16QAM
18 OFDM QPSK
12 OFDM QPSK
11 DSSS CCK
9 OFDM BPSK
6 OFDM BPSK
5.5 DSSS QPSK, DQPSK
2 DSSS QPSK
1 DSSS BPSK
Antenna
Rx ADC DDC
As shown in figure. 2 , a digital radio system consists of systems, depending on the speed gap between the ADC/DAC
three main functional blocks: RF section, IF section and and DSP.
baseband section. The RF section consists of essentially
analogue hardware modules while IF and baseband sections 2.5. Simulation and Prototyping.
contain digital hardware in a conventional digital hardware The purpose of simulation and prototyping is to develop
radio system. and refine new ideas. The simulation environment offers the
designer a flexible and powerful environment on the
2.3. Analogue/Digital Conversion. computer. In simulation, communication system parameters
ADC and DAC are critical blocks as they are the interface like signal to noise ratio (SNR), modulation types and other
between the analogue and digital domains. They are largely modeling parameters can be clearly specified and easily
responsible for MODEM (modulation/demodulation) changed. The designer has more freedom in exploring the
performance and are subject to many constraints. Signal to design space as the simulation environment allows design of
noise ratio (SNR) is linked to converter resolution by the algorithms without the constraints of real-time execution. In
following equation [18]: contrast, the prototyping environment connects the design to
the real world. Test data is presented to the system from an
SNRAD = 1.76 + 6.02b + 10log (2BW/Fsampling) 2.1
uncontrolled environment using hardware interfaces such as
where b is the resolution in bits, Fsampling is the sampling analog to digital converters which present data of fixed
frequency and BW the bandwidth of interest. The width. The designer is restricted with limited hardware
performance of ADC/DAC is very critical to realization of resources and the timing and power consumption
any software defined radio. The higher the bandwidth it can requirements. These two are rarely used together in the
handle, the closer it can be placed to the antenna and the design and development process. Instead the design is
more ideal the SDR becomes. An ideal SDR has the developed as a two-step process. As a first step, new
ADC/DAC immediately following the antenna, thus algorithms are developed based on simulation results. The
eliminating the RF front-end. description of the algorithm is used to develop a prototype in
the second step.
2.4. Digital Down/Up Conversion.
Digital Down/Up Conversion (DDC/DUC) is a 2.6. Simulation and prototyping environments.
fundamental part of the communication system. Digital radio Simulation and prototyping of WLAN systems involves
have fast A/D,D/A converters delivering vast amount of data, development and integration of several computationally
but in many cases, the signal of interest is a small portion of intensive algorithms to enable different features required by
that bandwidth.DDC acts as a buffer bridging the speed gap these systems. The designer is faced with two important
between the ADC and Digital signal processor on the receive problems. First, simulation of communication systems
side while DUC does same on the transmit side. It must be involves block diagrams and mathematical equations while
understood that DDC/DUC may not be necessary in some prototyping hardware is programmed in C, C++, assembly or
J. Agajo et al. / IJRRCS, Vol. 3, No. 5, pp. 1841-1851, October 2012 1844
HDL. Second, simulations often run on a host computer, this is left for future work.
while prototypes run on hardware and the powerful features
of simulation cannot be combined with the real-time 2.7. Use of Constellation Diagram in System Performance
constraints of the prototype hardware. Analysis
Each algorithm used in the simulation has to be tested Some properties of a modulation scheme can be inferred
independently before being integrated into a communication from its constellation diagram. The bandwidth occupied by
system. Interconnection of different algorithm blocks must be the modulation signals decreases as the number of signal
tested to ensure proper operation with neighboring blocks. points/dimension increases. Hence if a modulation scheme
The resulting block diagram must be translated into a has a constellation that is densely packed, it is more
program suitable to execute on the prototype hardware. bandwidth-efficient than the modulation scheme with a
Mathematical equations are used in algorithm creation. A sparsely packed constellation. The probability of bit error is
digital signal processor is typically used in prototyping proportional to the distance between the closest points in the
communication systems which require assembly language or constellation. The effects of signal corruption on
C programming language to generate an executable routine. constellation diagram are as summarized below.
Both simulation and prototyping are inherent in a) Gaussian noise shows as fuzzy constellation points;
communication system design, with initial design entry done b) Non-coherent single frequency interference shows as
on the host and final testing done on the prototyping circular constellation points;
hardware. c) Phase noise shows as rotationally spreading
In a block based system level design, each block is constellation points;
represented by an equation, which specifies the algorithm d) Amplitude compression causes the corner points to
implemented by that block. The proper operation of move towards the center.
individual blocks and the entire system is verified by In this simulation, an instrument called Discrete Time
simulation. The system is then translated into C or HDL and Scatter Plot scope is employed to relay the constellation
compiled to run on DSP or FPGA. The main simulation diagram of the transmitted and received signals.
environments employed in this thesis are Matlab and
Simulink. The add-on tool, Real Time Workshop, was then
employed for automatic code generation. The prototyping
will involve DSP and other hardware and software tools, but
Figure 3. 64QAM Modulated Signal Constellation on Discrete Time Scatter Plot Scope.
3. System Design
2.8. Automatic code generation with Real-Time Workshop.
Real-Time workshop generates and executes stand-alone 3.1. IEEE 802.11g Physical layer services
C code for developing and testing algorithms modeled in IEEE 802.11g PHY offers information transfer services to
Simulink and embedded Matlab code. The resulting code can the Data link control (DLC). For this purpose, it provides for
be used for many real-time and non-real-time applications, functions to map different DLC Protocol Data Unit (PDU)
including simulation acceleration, rapid prototyping and trains into framing formats, called PHY bursts, appropriate
hardware-in-the loop testing. The generated code can be for transmitting and receiving management. IEEE 802.11g
tuned and monitored using simulink blocks and built-in PHY layer was conceived to offer link-adaptive data rates of
analysis capabilities, or run and interact with the code outside up to 54Mbps using Orthogonal Frequency Division
the Matlab and simulink environment. Multiplexing (OFDM) in the 2.4GHz ISM band. For
Key features of Real-Time workshop include: backward compatibility with the very popular IEEE 802.11b
• Generates ANSI C and C++ code and executables for (Wi-Fi), it also incorporates High Rate Direct Sequence
discrete, continuous or hybrid simulink models; Spread Spectrum (HR-DSSS) technique for rates up to
• Uses model blocks to incrementally generate and 11Mbps . Therefore PHY layer design of IEEE 802.11g
build code for large applications; involves a parallel design of both OFDM and DSSS
• Supports simulink data dictionary features for integer, transmitters and receivers and their appropriate management
floating point and fixed point data; logic.
• Generates code for single-rate, multirate and IEEE 802.11g PHY Consist of two functions:
asynchronous models; • Physical layer convergence function; Supported by
Supports single-tasking and multitasking operating Physical Layer Convergence Procedure (PLCP) that
systems and bare-board (no operating system) environments; defines method of mapping MAC sub layer Protocol
• Performs code optimizations that improve code Data Units (MPDU) into frame suitable for sending
execution speed; and receiving user data and management information.
• Provides capabilities for code customization and Also it enables MAC to operate at minimum
legacy code generation; dependence on Physical media by simplifying PHY
• The generated code can be tuned and monitored service interface to MAC services.
within or outside Simulink. • Physical Media Dependent (PMD) function that
produces methods for transmitting and receiving data
through the wireless medium.
J. Agajo et al. / IJRRCS, Vol. 3, No. 5, pp. 1841-1851, October 2012 1846
3.2. DSSS Subsystem Design b) Generate the SIGNAL field bits, coding and
IEEE 802.11g PHY DSSS subsystem is the same as IEEE interleaving SIGNAL field bits, and map them into
802.11b PHY. It is based on the principle of using codes to frequency domain, insert pilots and transform into
spread a baseband signal over a wider bandwidth, similar to time domain;
what is obtainable in Code Division Multiple Access c) Prepend the SERVICE field, and add pad bits to the
(CDMA) systems. It supports four data rates: 1Mbps and octet stream and form the DATA;
2Mbps (Low-Rate DSSS); 5.5Mbps and 11Mbps (High-Rate d) Scramble and encode the DATA using convolutional
DSSS). It consists of two major functions: spreading and encoding and puncture to get higher rates and map
modulation. Other (ancillary) functions in the subsystem, like them into complex BPSK, QPSK, 16-QAM or 64-
Data Scrambling/Descrambling, Filtering, etc., have to do QAM symbols followed by pilot insertion;
with error management for better received data integrity. The e) Transform from frequency domain to time domain and
receiver performs the reverse of the functions of the add a cyclic prefix and concatenate the OFDM
transmitter. symbols into a single time-domain signal.
Thus, an OFDM transmitter block diagram is as in
3.3. OFDM Subsystem Design figure.3.1 below [26] [18]
The IEEE 802.11g also specifies an OFDM PHY that The tasks of the physical layer blocks on the transmitter
splits an information signal across 52 separate Sub-carriers to side (fig. 4.6) will be discussed in detail in the following
provide transmission of data at rates of 6, 9, 12, 18, 24, 36, sections. We will see by “reverse engineering” why certain
48 or 54Mbps. In this mode, a pseudo binary sequence is sent choices are made in the physical layer of IEEE 802.11g
through the pilot sub- channels to prevent the generation of system. This gives useful insight in the system for designing
spectral lines. The remaining 48 Subcarriers provide separate an IEEE 802.11g receiver.
wireless pathways for sending the information in a parallel
fashion [26]. 3.6. Forward Error Correction (FEC) Coding
Forward error Coding, or Channel Coding, is a method of
3.4. OFDM Signal Representation adding redundancy to the sent information so that it can be
In an OFDM System, data is carried on multiple sub- transmitted over a noisy channel, and subsequently be
carriers. The modulation of sub-carriers is done directly in checked and corrected for errors that occurred in the
the frequency domain using complex multiplication; the transmission. In IEEE 802.11g, convolution coding is used.
resulting data are transformed into the time domain using the As earlier stated in Chapter 2, IEEE 802.11g operates a link-
IFFT at the transmitter and transformed back to frequency adaptive rate up to 54Mbps. In the same way, the code rate
domain using the FFT at the receiver. The number of points also varies. The code rate is defined as [17]
of the IFFT/FFT used in a system depends on the number of Input bit rate
sub-carriers used [18]. In 802.11g system, the number of sub- RC = 3.3
Output bit rate
carriers used is 52, which translates to using a 64-point
IFFT/FFT. The transmitter and receiver decide per transmission burst
The discrete-time representation of the signal using N what bit rate is actually used, depending on the link (channel)
sub-carriers is given by the equation [18]: characteristics. Table 4.4 [26] summarizes these.
Table 3.1. IEEE 802.11g Coding
N / 2 −1
X (n) = 1 / N ∑ X ( k )e ej2ðK/Nn
Data
Rate
Modulation Coding
Rate
Coded
Bits per
Coded
bits per
Data
bits per
K =N / 2
3.1
(Mbps) (Rc) Subcarrier OFDM OFDM
where X (k) is the complex modulation vector and n Є [-N/2, Symbol Symbol
6 BPSK ½ 1 48 24
N/2]. 9 BPSK ¾ 1 48 36
At the receiver side, the data is recovered by performing 12 QPSK ½ 2 96 48
an FFT on the received signal, i.e. 18 QPSK ¾ 2 96 72
24 16-QAM ½ 4 192 96
N / 2 −1 36 16-QAM ¾ 4 192 144
X (n) = 1 / N ∑ X ( k )e ej2ðK/Nn
48 16-QAM 2/3 6 288 192
K =N / 2
3.2 54 64-QAM ¾ 6 288 216
General
Convolutional Matrix OFDM
Bernoulli Puncture Block Rectangular Normalize 1
Encoder Interleaver Transmitter
Binary Interleaver QAM Tx Signal 1
Bernoulli Binary Puncture Rectangular QAM
Convolutional Matrix General Block
Generator Interleaver Interleaver Modulator
Encoder
Baseband
4.7. Generation of the prototype software for the system [3] Official IEEE 802.11 working group project timelines". 2007
http://grouper.ieee.org/groups/802/11/Reports/802.11_Timelines.htm.
Having designed, modeled, simulated and verified the Retrieved on 2007-11-18.
IEEE 802.11g PHY systems, the next stage is the generation [4] "How to: Migrate to 802.11n in the Enterprise".
of the prototype software codes which, when implemented nets.com/resources/tutorials/migrate_80211n.html. Retrieved on 2008-
10-08.
with the other layers on a DSP or other general platforms will [5] http://www.wirevolution.com/2007/09/07/how-does-80211n-get-to-
fully implement the standard in software. As already 600mbps/
mentioned in Methodology, the software tool employed for [6] "Cuadro nacional de Atribución de Frecuencias CNAF". Secretaría
eEstadottp://www.mityc.es/Telecomunicaciones/Secciones/Espectro/c
this is Real-Time workshop, from Mathworks incorporated. naf. Retrieved on 2008-03-05.
There are several options available in Real-Time workshop [7] Evolution du régime d’autorisation pour les RLAN". French
on code generation depending on the availability of support Telecommunications Regulation Authority (ART).
http://www.arcep.fr/uploads/tx_gspublication/evol-rlan-250703.pdf.
tools and software. Retrieved on 2008-10-26.
It can: [8] Channel Deployment Issues for 2.4 GHz 802.11 WLANs". Cisco
• Generate a generic C or C++ code which can then be Systems,Inc. Channel.html. Retrieved on 2007-02-07.
[9] Garcia Villegas, E.; et. al. (2007), "Effect of adjacent-channel
targeted on any chosen platform. It neither builds the interference in IEEE 802.11 WLANs", CrownCom 2007., ICST &
executable code nor target it to any particular IEEE
platform; [10] 802.11 Technical Section". http://wifi.cs.st-
andrews.ac.uk/wififrame.html. Retrieved on 2008-12-15.
• Generate the C or C++ codes and builds the [11] Understanding 802.11 Frame Types". http://www.wi-
executable files but does not target it to any particular fiplanet.com/tutorials/article.php/1447501. Retrieved on 2008-12-14.
platform. Availability of support software like Code
Composer Studio (CCS) can be of help in this regard.
• Generate the codes and builds the executable file
based on the chosen target but does not download the
file to the target; and
• Creates the codes, builds the executable based on a
chosen selected target. This of course needs support
hardware and software.
Due to uneasy access to the required hardware and
support software, this project is limited to generation of C
codes that when compiled and executed on any general
platform, will fully perform the functions of the physical
layer of IEEE 802.11g WLAN standard.
5. Conclusion
This thesis presented important issues for the design of
SDR-based wireless systems and exploration of this concept
by implementing the physical layer of IEEE 802.11g
standard. SDR is a promising technology that facilitates
development of multi-band, multi-service, multi-standard,
multi-feature handsets and future-proof network
infrastructure equipment. It is a revolutionary force of change
that will further push towards a wire-free society.
References
[1] Looking for 802.11g Wireless Internet Access information, definitions
and technology descriptions?
[2] List of WLAN Channels ^ "ARRLWeb: Part 97 - Amateur Radio
Service". American Radio Relay League.
http://www.arrl.org/FandES/field/regulations/news/part9 IEEE. ISBN
0-7381-5656-9.