802.11p spectral emission mask testing -凯发k8网页登录
this example shows how to perform spectrum emission mask tests for an ieee® 802.11p™ transmitted waveform.
introduction
ieee 802.11p is an approved amendment to the ieee 802.11™ standard to enable support for wireless access in vehicular environments (wave). using the half-clocked mode with a 10 mhz channel bandwidth, it operates at the 5.85-5.925 ghz bands, for which it defines additional spectral emission masks.
this example shows how to perform spectral mask measurements on a waveform generated by using wlan toolbox™ software. alternatively, you can perform this measurement on a waveform captured with a spectrum analyzer.
the example generates a waveform consisting of three 10 mhz ieee 802.11p packets separated by a 32 microsecond gap. each packet contains random data and uses 16-qam. the example oversamples the waveform using a larger ifft than required for the nominal baseband rate and does not perform spectral filtering, and uses a high-power amplifier (hpa) model, which introduces in-band distortion and spectral regrowth. the example performs spectral emission mask measurement on the upsampled waveform after hpa modeling. this diagram shows the test setup.
non-ht packet configuration
set the non-high-throughput (non-ht) transmission parameters by using the object, specifying 10 mhz bandwidth operation as used by ieee 802.11p.
cfgnht = wlannonhtconfig; % create packet configuration cfgnht.channelbandwidth = 'cbw10'; % 10 mhz cfgnht.mcs = 4; % modulation 16qam, rate-1/2 cfgnht.psdulength = 1000; % psdu length in bytes
waveform generation
this section configures and generates a waveform containing three packets with an idle time of 32 microseconds between each packet.
to model the effect of a hpa on the waveform and view the out-of-band spectral emissions, the waveform must be oversampled. this example generates the waveform using a larger ifft than required for the nominal baseband rate, resulting in an oversampled waveform. the example does not perform spectral filtering.
set random stream for repeatability of results, specify an oversampling factor, and generate random data of the required psdu length.
s = rng(98765); osf = 3; idletime = 32e-6; numpackets = 3; data = randi([0 1],cfgnht.psdulength*8*numpackets,1);
generate the multi-packet waveform and calculate the nominal baseband sample rate.
genwaveform = wlanwaveformgenerator(data,cfgnht, ... oversamplingfactor=osf, ... numpackets=numpackets,... idletime=idletime); fs = wlansamplerate(cfgnht);
hpa modeling
the hpa introduces nonlinear behavior in the form of inband distortion and spectral regrowth. this example simulates the power amplifiers by using the rapp model in 802.11ac, which introduces am/am distortion.
model the amplifier by using object, and configure reduced distortion by specifying a back-off, hpabackoff
, such that the amplifier operates below its saturation point. you can increase the backoff to reduce evm for higher mcs values.
psaturation = 25; % saturation power of a power amplifier in dbm hpabackoff = 16; % db
create and configure a memoryless nonlinearity to model the amplifier.
nonlinearity = comm.memorylessnonlinearity; nonlinearity.method = 'rapp model'; nonlinearity.smoothness = 3; % p parameter nonlinearity.lineargain = -hpabackoff; % db nonlinearity.outputsaturationlevel = db2mag(psaturation-30);
apply the model to the transmit waveform.
txwaveform = nonlinearity(genwaveform);
transmit spectrum emission mask measurement
this section performs the spectral emission mask test non-ht data field.
the ieee 802.11p standard classifies stations according to the allowed maximum transmit powers (in mw). for the four different classes of stations, the standard defines four different spectral emission masks, and defines the spectral mask limits relative to the peak power spectral density (psd). this example measures the spectrum emission mask for a class a station.
% ieee std 802.11-2016 annex d.2.3, table d-5: class a sta
dbrlimits = [-40 -40 -28 -20 -10 0 0 -10 -20 -28 -40 -40];
flimits = [-inf -15 -10 -5.5 -5 -4.5 4.5 5 5.5 10 15 inf];
extract the non-ht data field of each packet from the oversampled txwaveform
by using the start index of each packet and concatenate the extracted non-ht data fields in preparation for measurement.
ind = wlanfieldindices(cfgnht, oversamplingfactor=osf); startidx = ind.nonhtdata(1); % start of non-ht data endidx = ind.nonhtdata(2); % end of non-ht data idlensamps = idletime*fs*osf; % idle time samples perpktlength = endidx idlensamps; idx = zeros(endidx-startidx 1, numpackets); for i = 1:numpackets % start of packet in txwaveform, accounting for the filter delay pktoffset = (i-1)*perpktlength; % indices of non-ht data in txwaveform idx(:,i) = pktoffset (startidx:endidx); end % select the data field for the individual packets gatednhtdatatx = txwaveform(idx(:), :);
the helperspectralmasktest
function overlays the required spectral mask with the measured psd and checks that the transmitted psd levels is within the specified mask levels, displaying the result as a pass or fail.
evaluate psd and test for compliance.
helperspectralmasktest(gatednhtdatatx,fs,osf,dbrlimits,flimits);
spectrum mask passed
restore the default random stream.
rng(s);
conclusion and further exploration
this example shows how to measure the transmit spectral mask for class a stations at the 5.85-5.925 ghz bands for a 10 mhz channel spacing, and how to ensure that the peak spectral density of the transmitted signal falls within the spectral mask to satisfy regulatory restrictions. you can generate a similar result for a 5 mhz channel spacing.
the hpa model affects the out-of-band emissions in the spectral mask plot. for different station classes with higher relative db values, try increasing the backoff for lower emissions.
for information on other transmitter measurements like modulation accuracy and spectral flatness, and other formats, refer to the following examples:
selected bibliography
ieee std 802.11-2016: ieee standard for information technology - telecommunications and information exchange between systems - local and metropolitan area networks - specific requirements, part 11: wireless lan medium access control (mac) and physical layer (phy) specifications, ieee, new york, ny, usa, 1999-2016.
ieee std 802.11p-2010: ieee standard for information technology - telecommunications and information exchange between systems - local and metropolitan area networks - specific requirements, part 11: wireless lan medium access control (mac) and physical layer (phy) specifications, amendment 6: wireless access in vehicular environments, ieee, new york, ny, usa, 2010.
archambault, jerry, and shravan surineni. "ieee 802.11 spectral measurements using vector signal analyzers." rf design 27.6 (2004): 38-49.