wlanwaveforrm generator output is scaled by a factor 8.5524 and also the alternate complex values are negated. May i know the reason?

2 views (last 30 days)
%%%% Program to find Channel Frequency Response (CFR) of the populated subcarriers of LLTF field for (MODEL B) Delay Profile
clc; clear all; close all;
cfgSU = wlanHESUConfig; %wlanHESUConfig creates a single user (SU) high efficiency (HE)format configuration object. This object contains the transmit
%parameters for the HE-SU format of IEEE P802.11ax/D3.1 standard.
cfgSU.ChannelBandwidth='CBW20';
cfgSU.MCS = 0; %BPSK Modulation and coding rate = 1/2. Applicable only for user data. Not to peamble
cfgSU.HELTFType =1;
cfgSU.GuardInterval = 0.8;
cfgSU.APEPLength=0;% Data field carry PSDU's. Specify PSDU length
fs = wlanSampleRate(cfgSU); % Get baseband sample rate% 20MHz=BW
ind=wlanFieldIndices(cfgSU);
chanBW = cfgSU.ChannelBandwidth;%default 20MHz channel
psdu = randi([0 1], getPSDULength(cfgSU)*8, 1); % Create a PSDU, getPSDULength(cfgSU)=100 bytes
txWaveform10 = wlanWaveformGenerator(psdu,cfgSU); % Disable windowing);
txWaveform10=txWaveform10/8.5524; %Do appropriate scaling. But still the alternate values are negated.
ind = wlanFieldIndices(cfgSU);
LLTF_transmitted = txWaveform10((ind.LLTF(1):ind.LLTF(2)), :);
%%%%%%%%%%%%%%%%% PILOT symbols
disp('BPSK modulated LLTF constellation symbol points(known training constellation symbol)')
%LLTF(Legacy Long training field) constellation symbols specified by the IEEE 802.11ax standard, values prior to IIFT at txer
lltfLower = [1; 1;-1;-1; ...
1; 1;-1; 1; ...
-1; 1; 1; 1; ...
1; 1; 1;-1; ...
-1; 1; 1;-1; ...
1;-1; 1; 1; ...
1; 1;];
lltfUpper = [1; ...
-1;-1; 1; 1; ...
-1; 1;-1; 1; ...
-1;-1;-1;-1; ...
-1; 1; 1;-1; ...
-1; 1;-1; 1; ...
-1; 1; 1; 1; 1]; %has 52 populated subcarriers before performing IFFT
% Add null subcarriers to the populated subcarriers
LLTF_BPSK = [zeros(6,1); lltfLower; 0; lltfUpper; zeros(5,1)];
% first 6 Subcarriers , central subacriier and last 5 subcarriers are Null % subcarriers. In total there are 12 null subcarriers and 52 populated subcarriers
Lk=LLTF_BPSK.';
%%%%%%%%%%%%%%%%% IFFT at the Transmitter
xn=ifft(Lk,64);%
%************** Addition of CP in time domain
txWaveform12=[xn(33:64) xn xn].';% txed waveform with Cyclic prefix(=32 samples) added in time-domain before passing to channel
%@@@@@@@@@@@ comparing LLTF_transmitted and txWaveform12
LLTF_transmitted;% = txWaveform((ind.LLTF(1):ind.LLTF(2)), :); from wlanwaveform generator output
% txWaveform12=LLTF_transmitted;
compare22=[txWaveform12 LLTF_transmitted ] % LLTF_transmitted=8.5524*txWaveform12 and with alternate SYMBOLS negated!!!!!!!!

Answers (0)

Categories

Find more on Get Started with WLAN Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!