Académique Documents
Professionnel Documents
Culture Documents
I jQ +
cos(2 ) sin(2 )
c c
s s
f f
I n Q n
f f
+
sin(2 ) cos(2 )
c c
s s
f f
I n Q n
f f
+
I-component
Q-component
Figure 11 Up-conversion
Up-conversion is used to move the baseband signals to passband. The carrier
frequency is set to be 10 KHz in our system which can fulfill the requirement of the
real channel on board.
6
-25 -20 -15 -10 -5 0 5 10 15 20 25
0
500
1000
1500
2000
2500
3000
f (KHz)
The passband transmitted signal
Figure 12 Transmitted signals in passband
1.2 Channel
a
-b
b
a
cos(2 ) sin(2 )
c c
s s
f f
I n Q n
f f
+
sin(2 ) cos(2 )
c c
s s
f f
I n Q n
f f
+
Figure 13 Simulated complex channel
The channel is simulated in baseband (a+jb) to be a Rayleigh flat fading channel with
Doppler frequency shift 0.5 Hz by using Jakes model.
1.3 Receiver
1.3.1 Synchronization
Since there is a delay of the channel on board, synchronization is implemented in
order to find the start point of the signal sequence.
The synchronization algorithm used here is based on the complex training sequence.
By cross-correlating the received complex-valued samples with a locally generated
time-shifted replica of the training sequence, we can find the first sampling time from
the position of the maximum points.
7
1.3.2 Down-conversion
I-component
Q-component
exp( 2 )
c
s
f
j n
f
LP
I-component
Q-component
Figure 14 Down-conversion
The signals are down converted to baseband after synchronization.
1.3.3 Channel estimation
Channel estimation is based on Least-square criteria.
c = qpsk(b_train);
r_tr = r(1: length(c));
a_hat = r_tr *c'*inv(c*c');
The estimated channel coefficients and original channel coefficients are shown in
Figure 15.
0 1 2 3 4 5 6 7 8 9 10
x 10
4
0.4
0.5
0.6
0.7
0.8
0.9
1
1.1
1.2
1.3
Estimated channel coefficients
Original channel coefficients
Figure 15 Channel coefficients
1.3.4 Detection
Three kinds of detectors can be used at receiver: ZF (Zero Forcing), MMSE
8
(Minimum Mean Square Error) and ML (Maximum Likelihood).
2 Relay system
The whole system includes a source, a relay, a destination and three independent
Rayleigh fading channels.
Channel Source
Relay
Destination
Channel
Channel
Figure 16 Relay system
It is a half duplex, orthogonal system. In the first timeslot, signals are transmitted
from the source to both relay and destination. Relay does some pocessing to the
recieived signal, then in the second timeslot, they are transimitted to destination.
(a) First timeslot
(b) Second timeslot
Figure 17 Relay system
9
Source
Destination
Relay
Source
Destination
Relay
2.1 Relay
2.1.1 Amplify-and-forward
In this case, the relay amplifies and transmits the received signal. To remain within its
power constraint, we can derive that the amplifier gain is depend on the fading
channel coefficients :
where P is the power of transmit signal and is the power of the noise from
channel.
2.1.2 Decode-and-forward
In this case, we decode the received signals at relay and transmit the fresh codeword
using the same code to destination.
As mentioned in section 1, three kinds of detectors can be used here: ZF (Zero
Forcing), MMSE (Minimum Mean Square Error) and ML (Maximum Likelihood).
2.1.3 Detect-and-forward
The relay transmits the detected symbol.
2.1.4 Combining
At destination, we use different methods of combining for different relay prototypes.
A. Improved Maximum Ratio Combining (MRC)
This method is used in amplify-and-forward relay. The destination combines the
received signals using MRC, where the diversity combining coefficients for the two
branches can be shown as,
B. Maximum Ratio Combining (MRC)
In the decode-and-forward, MRC is used for combining. The signal after combining is
where and are the estimated channel coefficients of channel between relay
and destination, source and destination. and are received signals from relay
10
and source, respectively.
C. Optimal Combining for detect-and-forward
We derive combining methods for detect-and-forward relaying based on linear MMSE
and ML criteria.
a. Linear MMSE
The received signals at the destination from the source and the relay are:
We set the signal after combining to be . So
We can get
Similarly,
b. ML
We also got the motivation from Receiver Design for Wireless Relay Channels with
Regenerative Relays, Majid Nasiri Khormuji and Erik G. Larsson to use an optimal
detector in order to obtain the improved performance. The optimal detector will
search for the symbol such that it maximizes the posterior probabilities defined as
(symbol was transmitted | , ) m sd rd P s r r
,
1, 2, 3, 4 m
11
which we abbreviate as
( | , ) m sd rd P s r r
.
By using Bayes rule, the posterior probabilities may be expressed as
( , | ) ( )
( | , )
( , )
sd rd m m
m sd rd
sd rd
P P
P
P
r r s s
s r r
r r
where
( , | ) sd rd m P r r s
is the conditional PDF of
the received signal given
m s
, and
( ) m P s
is the a priori probability of the mth symbol
being transmitted. After some simplification, the criterion turns to be the maximum-
likelihood (ML) criterion with
( , | ) sd rd m P r r s
as the likelihood function.
Further we derive this function in terms of the received signals from source and relay
as the following
{ 1, 2, 3, 4}
arg max ( , | ) m sd rd m
s s s s s
P
s r r s
{ 1, 2, 3, 4}
arg max ( | ) ( | ) ( | ) sd rd
s s s s s
P P p
r s r s s s
2 2
{ 1, 2, 3, 4}
1 1
arg max exp exp ( | )
sd sd rd rd
s s s s s
o o o o
a a
p
N N N N
| `
] ]
] ]
] ]
] ]
. ,
r s r s
s s
We define
2
1( )
1
exp
sd sd
o o
a
N N
g
]
]
]
S
r s
@
2
2( )
1
exp
rd rd
o o
a
N N
g
]
]
]
S
r s
@
,
So we have
( ) 1 2 2
{ 1, 2, 3, 4}
arg max ( ) (1 ) ( ) ( ) m i i
s s s s s
g s g s g s
+ s
where
.
2.2 Chanel model
Three independent Rayleigh fading channels with Additive White Gaussian Noise
(AWGN) are exploited in the system model for channel simulation. The Doppler shift
is 0.5 Hz for all the channels.
12
Relay Simulation in Matlab
3.1 Constellation
The constellations for different relay protocols are plot in Figure 18 (SNR=5dB).
-2 -1 0 1 2
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
Q
u
a
d
r
a
t
u
r
e
In-Phase
Scatter plot
-2 -1 0 1 2
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
Q
u
a
d
r
a
t
u
r
e
In-Phase
Scatter plot
(a)Amplify-and-forward (b)Decode-and-forward,
-2 -1 0 1 2
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
Q
u
a
d
r
a
t
u
r
e
In-Phase
Scatter plot
-2 -1 0 1 2
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
Q
u
a
d
r
a
t
u
r
e
In-Phase
Scatter plot
(c)Detect-and-forward (b)One link
Figure 18 Constellations for different relay protocols
3.2 BER comparison
The BER of different relay protocols are plotted in Figure 19.
13
2 4 6 8 10 12 14 16 18 20 22
10
-5
10
-4
10
-3
10
-2
10
-1
10
0
SNR(dB)
B
E
R
Amplify
Decode
Detect
No Relay
Figure 19 BER comparison
From the result, we can see that the relay system performs better than the SISO
system in this simulation. This result agrees with the fact that the relay system can
gain the advantage of spatial diversity of 2 when the channel between source and
destination and channel between relay and destination are uncorrelated. To provide
the comparison of BER performance among three different relaying protocols, the
channel characteristics in the system and combining algorithms are the major factors.
It is not obvious to provide the exact comparison that which relaying protocol
performs better than the others. However, in this simulation we use one set of channel
characteristics and obtain the result such that the Amplify-and-forward protocol
performs the best. This can be explained that in the simulation we use MRC combing
and the link between source and relay is not too bad in the sense of noise level so the
MRC combining here is optimal for the Amplify-and-forward. In the simulation we
also apply the MRC combining for the other two relaying protocols and obtain worse
results than the Amplify-and-forward. One of the reasons is that the MRC is not
optimal for these two protocols since there can be errors occurred in the decoded (or
detected) bits. This can be improved by applying the optimal detector for Detect-and-
forward protocol which will be done in the project later on.
In addition the result shows that the Decoded-and-forward protocol performs better
than the Detect-and-forward protocol. The reason for this could be the benefit of the
coding system for the communication through fading channel.
14
4 SISO Simulation on DSP Board
We simulate the SISO system using the channel enumerated on DSP board. The
system works in the way that the receiver always keeps listening to the incoming
signal and measure the variance of it. The receiver will check if the incoming signals
variance is larger than the noise variance threshold. And when the signal is
transmitted at the transmitter, the receiver can detect it and start do processing later
on.
4.1 Synchronization
To start do processing on the received signal, we need to synchronize the packet we
received to find the starting point of the data packet. Here we use the known pilot
sequence at receiver to do correlation with the received signal in order to obtain the
starting point of packet. The plot of received signal and correlation between received
signal and pilot sequence is shown below.
0 1 2 3 4 5 6
x 10
4
-150
-100
-50
0
50
100
150
X: 2.283e+004
Y: -5
Figure 20 The received signal
15
2 2.1 2.2 2.3 2.4 2.5 2.6 2.7
x 10
4
0
500
1000
1500
2000
2500
3000
3500
4000
X= 22838
Y= 3763.4924
Figure 21 Correlation between received signal and pilot sequence
4.2 BER
-10 -8 -6 -4 -2 0 2 4 6 8 10
10
-2
10
-1
10
0
Eb/No(SNR)
B
E
R
i
n
l
o
g
s
c
a
l
e
Figure 22 The BER performance versus estimated SNR for SISO system
16
We obtain the BER performance of the SISO system which is reasonable for the
Rayleigh flat fading channel. Here we plot the BER versus the estimated SNR so it is
not obvious to compare the result with the theoretical one.
17