项目作者: ChenBlue

项目描述 :
Simulate Rayleigh fading channel by Filtered Gaussian Noise Method and Sum of Sinusoids Methods
高级语言: Matlab
项目地址: git://github.com/ChenBlue/Wireless_Communication_System-HW2-Rayleigh_fading_channel_simulator.git


Wireless_Communication_System-HW2-Rayleigh_fading_channel_simulator

This is the homework from COM5170 Wireless Communication in National Tsing Hua University. We are going to implement a multipath fading channel simulator. There are two parts in this HW:

  1. Implement a Rayleigh fading channel simulator based on the Filtered Gaussian Noise method
    • Plot the channel output for fmT = 0.01, 0.1 and 0.5 (t/T = 0 ~ 300)
    • Plot the channel output autocorrelation for fmT = 0.01, 0.1 and 0.5 (fm $\tau$ = 0 ~ 10)
  2. Implement a Rayleigh fading channel simulator based on the Sum of Sinusoids method
    • Plot the channel output for M = 8 and 16 (fmT = 0.01, 0.1, 0.5 and t/T = 0 ~ 300)
    • Plot the channel output autocorrelation for M = 8 and 16 (fm $\tau$ = 0 ~10)

Algorithm

Filtered Gaussian Noise Method

The following picture is the block diagram of Filtered Gaussain Noise Method.
FGN_Block_diagram

Two Gaussian noise source are independent with zero mean and variance $\sigma ^2$. Low-pass filter is first-order low-pass filter. The equation is shown as following:
(g{I,k+1},g{Q,k+1})=\xi (g{I,k},g{Q,k})+(1-\xi )(w{I,k},w{Q,k})
where $(w{I,k},w{Q,k})$ are filter input generated by Gaussian noise source.

The coefficient $\xi$ can be derived by following equation:
\xi =2-cos(\frac{\pi f_m T}{2})-\sqrt{(2-cos(\pi f_m T/2))^2 -1}
And the variance of Gaussian noise source can be derived by following equation:
\sigma ^2=\frac{1+\xi }{1-\xi }\frac{\Omega _p}{2}
where $\Omega _p/2$ is the power spectral densities of noise sources.

After generating g(t), I derive Envelope of the g(t) in dB-scale by $10\times log(\sqrt{g_I (t)^2 +g_Q (t)^2})$.

Sum of Sinusoids method

Assume channel is stationary and equal strength of multipath components-
g(t)=\sum ^N _{n=1} e ^{j(2\pi f_m tcos\theta _n + \hat{\phi}_n)}
For an isotropic scattering environment, assume that the incident angles are uniformly distributed:
\theta _n =\frac{2\pi n}{N}, n=1,2,…,N

frequency_pair

Based on the figure above, we can see that some frequencies are the same. Therefore, we can rewrite the equation as following.
g(t)=gI (t)+jg_Q (t)=\sqrt{2}([2\sum ^M {n=1}(cos\beta n cos2\pi f_n t)+\sqrt{2}cos\alpha cos2\pi f_m t]+j[2\sum ^M {n=1} (sin\beta _n cos2\pi f_n t)+\sqrt{2} sin\alpha cos2\pi f_m t])

where $ \alpha =\hat{\phi }N =-\hat{\phi }\{-N}$, $\beta n =\hat{\phi}_n =-\hat{\phi}\{-N}$, $M=\frac{1}{2}(\frac{N}{2}-1) $

Result

The following figures are the result of my program.

Filtered Gaussian Noise Method

Filtered_gaussian_output
Filtered_gaussian_autocorrelation

Sum of Sinusoids method

M=8

Sum_sin_output8
Sum_sin_autocorrelation8

M=16

Sum_sin_output16
Sum_sin_autocorrelation16