2b NiBài số 1:MÔ PHỎNG KÊNH RAYLEIGH THEO PHƯƠNG PHÁP RICE Mô ph ỏ ng kênh vô tuy ế n theo ph ươ ng pháp RICE: Phương pháp Rice được hiểu là phương pháp mô hình các quá trình xác suốt sử
Trang 1TRƯỜNG ĐẠI HỌC BÁCH KHOA HÀ NỘI
TRƯỜNG ĐIỆN – ĐIỆN TỬ
BÁO CÁO THÍ NGHIỆM THÔNG TIN VÔ TUYẾN
Sinh viên: Hoàng Anh Tú Lớp : ĐTVT10 – K62 MSSV : 20172884
Hà Nội – 6/2022
Trang 22b Ni
Bài số 1:MÔ PHỎNG KÊNH RAYLEIGH THEO PHƯƠNG PHÁP RICE
Mô ph ỏ ng kênh vô tuy ế n theo ph ươ ng pháp RICE:
Phương pháp Rice được hiểu là phương pháp mô hình các quá trình xác suốt
sử dụng các hàm tuần hoàn,tuy nhiên các tham số như chu kì dao động pha và biên độ được xác định trước.Đối với phương pháp Monte Carlo thì các tham
số này được xác định ngẫu nhiên
Trang 3f_m=91; %Maximual Doppler frequency
N1=9; %Number of sinusoids for the in_phase component
N2=10; %Number of sinusoids for the in_ quadrature component
Trang 4f_s=270800; %the carrier frequency in Hertz
T_sim=0.4; %simulation time in seconds
t=0:1/f_s:T_sim; %discrete time interval
g1=g(c1,f1,th1,t);%generation of process g1 by using the function"g.m"
Trang 5%Comparison of theoretical Gaussian and Rayleigh
% distribution with simulation results
%==============================================
clear;
load ex4p1_Res f1 f2 c1 c2 th1 th2
f_s=50000; %the carrier frequency inhertz
T_sim=20; %simulation time in seconds
Trang 6figure(1);
stem(x,b/n/(x(2)-x(1)));
hold on;
k=0; % the rice factor k'=s^2/2b_0
ohm_p=2; % the total received power
p_alpha=(2.*x.*(k+1)/ohm_p).*exp(-k-((k+1).*x.^2/ohm_p)).*besseli(0,(2.*x.*sqrt(k*(k+1)/ohm_p)));
Trang 7Rayleigh distribution(Theory and result obtained by the channel simulator
Gaussian distribution(Theory and result obtained by the channel simulator)
Trang 8Bài số 2:MÔ PHỎNG KÊNH FADINH PHÂN TẠP ĐA ĐƯỜNG
THEO PHƯƠNG PHÁP MONTE CARLO 2.1
Mô hình kênh phân tập đa đường với
B=1.25MHz.So sánh hàm truyền đạt của kênh cho các trường hợp tần số
f D,max 0.0Hz, f D,max 5.0Hz, f D,max 500.0Hz,
%u is a random variable which is used to transform ro discrete Doppler
%frequencies,discrete phase
%number_of_summation is the number of discrete frequensy or
%phase used by montecarlo methode
%symbol+duration is the duration of a symbol.In the single carrier
%system,this is the sampling interval
%f_fmax is the maximum Doppler frequency
%channel profile
t=initial_time; %initial time at which the channel is observed
Channel_Length=length(channel_coefficients); % channel impulse response length
h_vector=[]; %a vector of the modelled CIR
Trang 9=========
Trang 12Hàm truyền đạt của kênh biến thiên chậm theo thời gian(slowly time-variant
channel)
Trang 13Hàm truyền đạt của kênh biến thiên nhanh theo thời gian(fast time -
variant channel) 2.2
So sánh hàm tự tương quan thời gian của kênh cho 2 trường hợp f D,max
=9.0Hz và f D,max =90.0Hz
Code:
Trang 14xlabel('\Delta t in seconds');
ylabel('TIme correlation function R(\Delta t)');
legend('f_{D,max}=9.0Hz','f_{D,max}=90.0Hz');
hold on;
Result:
Trang 15Bài số 3:MÔ PHỎNG HỆ THỐNG OFDM QUA KÊNH VÔ TUYẾN
3.1
Mô phỏng hệ thống đa sóng mang tần trực giao (OFDM) sử dụng các thông
số lấy chuản HyperLan/2 :
lệ kí hiệu lỗi)của hệ thống đa đường trên và cho SNR=0,1,…,25dB
Trang 16%insert gaurd interval
M_ary=16; %Multilevel of M-ary symbol
t_a=50*10^(-9);%Samping duration of HyperLAN/2
channel_profile=[1.0000,0.8487,0.7663,0.7880,0.6658,0.5644,0.5174,0.0543,0.0465];rho=channel_profile;
%load rho.am -ascii; %load discrete multi-path channel profile
h=sqrt(rho);
H=fft([h,zeros(1,NFFT-N_P)]);
NofOFDMSymbol=100; %Number of OFDM symbols
length_data=(NofOFDMSymbol)*NFFT; %The total data length
Trang 17step=1;
for snr=snr_min:step:snr_max;
snr=snr-10*log10((NFFT-G)/NFFT);%Miss matching effect
rs_frame=[];%A matrix of receive signal
Trang 18Code :
channel_profile=[1.0000,0.6095,0.4945,0.3940,0.2371,0.1900,0.1159,0.0699,0.0462];
Result:
Trang 19Comparision of SER of an OFDM system with and without guard interval 8.3