Professional Documents
Culture Documents
Report To GMSK Simulation
Report To GMSK Simulation
References
MATLAB CODE:
clear all;
close all;
%*********************************
%
Variable Definition
%*********************************
DRate = 1;
% data rate or 1 bit in one second
M = 18;
% no. of sample per bit
N = 36;
% no. of bits for simulation [-18:18]
BT = 0.5;
% Bandwidth*Period (cannot change )
T = 1/DRate; % data period , i.e 1 bit in one second
Ts = T/M;
k=[-18:18];
% Chen's values. More than needed;
% only introduces a little more delay
%******************************************************************
**********************
% CONSTRUCTION OF GAUSSIAN FILTER FOLLOWED BY SHAPING OF
DATA BITS USING GAUSSIAN FILTER %
%******************************************************************
**********************
alpha = sqrt(log(2))/(2*pi*BT); % alpha calculated for the gaussian filter
response
h = exp(-(k*Ts).^2/(2*alpha^2*T^2))/(sqrt(2*pi)*alpha*T); % Gaussian
Filter Response in time domain
figure;
plot(h,'*r')
title('Response of Gaussian Filter');
xlabel( 'Sample at Ts');
ylabel( 'Normalized Magnitude');
grid;
bits = [zeros(1,36) 1 zeros(1,36) 1 zeros(1,36) -1 zeros(1,36) -1 zeros(1,36) 1
zeros(1,36) 1 zeros(1,36) 1 zeros(1,36)];
% here the data is randomly selected to be transmitted and , here 1
indicates 1 and -1 indicates
% zero
%**************
% MODULATION %
%**************
m = filter(h,1,bits);% bits are passed through the all pole filter described by
h, i.e bits are
% shaped by gaussian filter
t0=.35;
% signal duration
ts=0.00135;
% sampling interval
fc=200;
% carrier frequency
kf=100;
% Modulation index
fs=1/ts;
% sampling frequency
t=[0:ts:t0];
% time vector
df=0.25;
% required frequency resolution
int_m(1)=0;
for i=1:length(t)-1
% Integral of m
int_m(i+1)=int_m(i)+m(i)*ts;
end
tx_signal=cos(2*pi*fc*t+2*pi*kf*int_m);
% Frequency Modulation (FM) is a form of angle modulation in which the
instantaneous frequency
% of the carrier signal is varied linearly with the baseband message signal
m(t),
x = cos(2*pi*fc*t);
y = sin(2*pi*fc*t);
figure;
subplot(2,1,1)
stem(bits(1:250))
title('RANDOM DATA BITS,+1 FOR ONE AND -1 FOR ZERO ');
grid;
subplot(2,1,2)
plot(m(1:250),'r')
title('GAUSSIAN SHAPED TRAIN');
xlim([0 260]);
figure;
plot(tx_signal)
title('MODULATED SIGNAL');
xlim([0 225]);
% Channel Equalization
% First, a channel simulator is designed to introduce effects common to
wireless signals such as
% Doppler shifts, Rayleigh fading, phase offsets, and multipath
interference. These channel
% conditions are used to test the performance of the system in a simulated
mobile radio environment.
% Second, AWGN is added in the signal. The variance of the Gaussian noise
may be changed to test
% the performance for different signal to noise ratios, while signal
amplitude is held constant.
% load 'C:\CASE\Digital_Communication\project\channel.mat'
load 'channel.mat'
h = channel;
N1 = 700;
x1 = randn(N1,1);
d = filter(h,1,x1);
Ord = 256;
Lambda = 0.98;
delta = 0.001;
demod(1:N) = imag(Z(1:N));
demod(N+1:length(Z)) = imag(Z(N+1:length(Z)).*conj(Z(1:length(Z)-N)));
xt = -10*demod(1:N/2:length(demod));
xd = xt(4:2:length(xt));
figure;
stem(xd)
Results:
figure 1
figure 2
figure 3
figure 4
figure 5
figure 6
fig 7
fig 8
fig 9
fig 10
To reduce the transmission BW required input data may be prefiltered prior to modulation using a specific form of low pass filtering. The
pre-modulation low pass filter must have a narrow BW with a sharp cutoff
frequency and very little offshoot in its impulse response which is
characterized by a classical Gaussian distribution.
exp 2 t 2
ln 2 0.5887
=
B
2B
Gaussian Filtering:
The GMSK modulation is done with the help of Gaussian shaped filter.
The signal is made by convolving the bit sequence with the Gaussian Filter.
The message signal is integrated to get the phase of it. Then this phase is
modulated which results ultimately in a FM signal. The single output is the
GMSK signal.
Impulse Input
"Gaussian"
Gaussian
Shaped
Lowpass Filter
Output
Frequency Modulation
Frequency Modulation (FM) is a form of angle modulation in which the
instantaneous frequency of the carrier signal is varied linearly with the
baseband message signal m(t),
t
s FM = Ac cos[2fct + (t )] = Ac cos[2f c t + 2k f m( )d ]
The Channel:
First, a channel simulator is designed to introduce effects common to
wireless signals such as Doppler shifts, Rayleigh fading, phase offsets, and
multipath interference. These channel conditions are used to test the
performance of the system in a simulated mobile radio environment. Second,
AWGN is added in the signal. The variance of the Gaussian noise may be
changed to test the performance for different signal to noise ratios, while
signal amplitude is held constant.
Detection:
OQPSK (Offset QPSK) is used to detect the signal. Giving an offset makes
the phase shift of 90 instead of 180. Therefore signal transition ( at
every Tb sec) does not pass through a zero and so no phase change occurs.
Channel Equalization
Channel Equalization is to cancel the effect of the channel distortion.
It removes Inter symbol interference and assist in the decision of detecting
the bits.
Basic Idea
All the equalization filters are basically adaptive transversal filter, they are
basically based on minimum mean square error i.e.
J = E(e2)
This is basically cost function for over scenario and we have to minimize it
with respect to our weights of transversal filter which are basically adapting
with the help of error.
J = E[(y d)2]
J = E[ue]
And finally we get
The desired Weinner Hopf equation
W = R-1r
All the algorithms are basically are the version of this equation.