<< Chapter < Page Chapter >> Page >
When an OFDM symbol is received, there is almost a guarantee the mixing frequency will be out of phase and slightly different than the carrier frequency. This algorithm is designed to eliminate this inconsistency by way of a predetermined training symbol. This module code will soon be supplanted by a more modern algorithm. For BPSK, we can model the frequency offset as a constant phase offset and the algorithm works fine. For more general forms of Quadrature Amplitude Modulation (QAM), this does not suffice. NOTE: The MATLAB library was used in the initial version of the design but has since been replaced by an updated LabVIEW module. Please see the LabVIEW portion of the receiver for the most current version.

%% Frequency Synchronization (RECEIVER) % ------------------------------------------------------------------------% Description: This module attempts to correct the frequency/phase offset % in the recovered signal by estimating it as a static phase% offset. Though there may be a frequency offset or even a % frequency drift, for BPSK, estimating this as a fixed phase% offset is sufficient in recovering the bits. More often % than not this corrects the recovered bits when they're% inverted (estimated as a pi phase offset). This uses the % same metric as the timing recovery to find the phase.% % Inputs: train - Received training symbol% train_expected - Expected training symbol via a priori knowledge % Outputs: phi - Estimated phase offsetfunction phi = fsync(train, train_expected)%% L = size(train,2); % Size of window for algorithmP = 0; % Initialize the metricfor n=1:L P = P + conj(train(n))*train_expected(n);% Sample by sample multiplication of the complex conjugate of the % received training symbol with the expected training symbol. If% both of them are in phase, the imaginary components would % annhiliate each other. However, if there's a phase offset% between the two, it will be represented in the angle of the % resulting product.end phi = angle(P);end

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Fully configurable ofdm sdr transceiver in labview. OpenStax CNX. May 04, 2010 Download for free at http://cnx.org/content/col11182/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Fully configurable ofdm sdr transceiver in labview' conversation and receive update notifications?

Ask