main content

802.11ac transmit beamforming -凯发k8网页登录

this example shows how to improve the performance of an ieee® 802.11ac™ link by beamforming the transmission when channel state information is available at the transmitter.

introduction

transmit beamforming focuses energy towards a receiver to improve the snr of a link. in this scheme the transmitter is called a beamformer and the receiver is called a beamformee. a steering matrix is used by the beamformer to direct the energy to the beamformee. the steering matrix is calculated using channel state information obtained through channel measurements. in ieee 802.11ac [ 1 ] these measurements are obtained by sounding the channel between beamformer and beamformee. to sound the channel the beamformer sends a null data packet (ndp) to the beamformee. the beamformee uses the channel information provided by sounding to calculate a feedback matrix. this matrix is fed back to the beamformer in a compressed format. the beamformer can then use the feedback matrix to create a steering matrix and beamform transmissions to the beamformee. the process of forming the steering matrix is shown in this diagram.

in ieee 802.11ac the single user beamformee capability is not mandatory. therefore, a multi-antenna transmitter may have to use a different scheme to transmit packets to a receiver which cannot act as a beamformee. one such scheme is spatial expansion. spatial expansion allows space-time streams to be transmitted on a greater number of transmit antennas. using spatial expansion can provide a small transmit diversity gain in channels with flat fading when compared to directly mapping space-time streams to transmit antennas [ 2 ].

this example demonstrates the benefits of transmit beamforming for a 4x2 mimo configuration between a transmitter and receiver, with two space-time streams. first, the example demonstrates the operation of a receiver which is not capable of being a beamformee by measuring the signal quality of a transmission made using spatial expansion. to show the benefits of transmit beamforming the example measures the signal quality of a transmission over the same channel realization using transmit beamforming and compares the performance of the two schemes. the stages are shown in the diagram below.

waveform configuration

this examples simulates a 4x2 mimo configuration with 2 space-time streams.

numtxants = 4;  % number of transmit antennas
numsts = 2;     % number of space-time streams
numrxants = 2;  % number of receive antennas

the format specific configuration of a vht waveform is described using a vht format configuration object. configure the waveform with a 20 mhz bandwidth and the mimo configuration specified above.

cfgvht = wlanvhtconfig;
cfgvht.channelbandwidth = 'cbw20';
cfgvht.apeplength = 4000;
cfgvht.numtransmitantennas = numtxants;
cfgvht.numspacetimestreams = numsts;
cfgvht.mcs = 4; % 16-qam, rate 3/4

channel configuration

this example uses a tgac channel model with delay profile model-b. the channel realization is controlled with a seed to allow repeatability.

tgacchannel = wlantgacchannel;
tgacchannel.delayprofile = 'model-b';
tgacchannel.channelbandwidth = cfgvht.channelbandwidth;
tgacchannel.samplerate = wlansamplerate(cfgvht);
tgacchannel.numreceiveantennas = numrxants;
tgacchannel.numtransmitantennas = numtxants;
tgacchannel.transmitreceivedistance = 100; % meters
tgacchannel.randomstream = 'mt19937ar with seed';
tgacchannel.seed = 70; % seed to allow repeatability

noise is added to the time domain waveform at the output of the channel with a power, noisepower.

noisepower = -37; % dbw

setup other objects and variables for simulation.

% indices for extracting fields
ind = wlanfieldindices(cfgvht);
% awgn channel to add noise with a specified noise power. the random
% process controlling noise generation is seeded to allow repeatability.
awgnchannel = comm.awgnchannel;
awgnchannel.randomstream = 'mt19937ar with seed';
awgnchannel.seed = 5;
awgnchannel.noisemethod = 'variance';
awgnchannel.variance = 10^(noisepower/10);
% calculate the expected noise variance after ofdm demodulation
noisevar = vhtbeamformingnoisevariance(noisepower,cfgvht);
% number of spatial streams
nss = numsts/(cfgvht.stbc 1);
% get the number of occupied subcarriers in vht fields
ofdminfo = wlanvhtofdminfo('vht-data',cfgvht);
nst = ofdminfo.numtones;
% generate a random psdu which will be transmitted
rng(0); % set random state for repeatability
psdu = randi([0 1],cfgvht.psdulength*8,1);

transmission with spatial expansion

first perform a transmission using spatial expansion. this type of transmission may be made by a multi-antenna transmitter to a receiver which is not capable of being a beamformee. the spatialmapping property of the format configuration object allows different spatial mapping schemes to be selected. this example uses the example spatial expansion matrix provided in section 19.3.11.1.1.2 of [ 1 ]. therefore, configure a 'custom' spatial mapping. use the custom spatial mapping matrix by assigning the spatialmappingmatrix of the format configuration object. this matrix describes the mapping of each subcarrier for each space-time stream to all transmit antennas. therefore the size of the spatial mapping matrix used is nst-by-nsts-by-nt. nst is the number of occupied subcarriers, nsts is the number of space-time streams, and nt is the number of transmit antennas. the spatial mapping matrix duplicates some of the space-time streams to form the desired number of transmit streams.

% configure a spatial expansion transmission
vhtse = cfgvht;
vhtse.spatialmapping = 'custom'; % use custom spatial expansion matrix
vhtse.spatialmappingmatrix = helperspatialexpansionmatrix(vhtse);
% generate waveform
tx = wlanwaveformgenerator(psdu,vhtse);
% pass waveform through a fading channel and add noise. trailing zeros
% are added to allow for channel filter delay.
rx = tgacchannel([tx; zeros(15,numtxants)]);
% allow same channel realization to be used subsequently
reset(tgacchannel); 
rx = awgnchannel(rx);
% allow same noise realization to be used subsequently
reset(awgnchannel);
% estimate symbol timing
toff = wlansymboltimingestimate(rx(ind.lstf(1):ind.lsig(2),:),vhtse.channelbandwidth);
% channel estimation
vhtltf = rx(toff (ind.vhtltf(1):ind.vhtltf(2)),:);
vhtltfdemod = wlanvhtltfdemodulate(vhtltf,vhtse);
chanestse = wlanvhtltfchannelestimate(vhtltfdemod,vhtse);

demodulate and equalize the data field to recover ofdm symbols for each spatial stream.

vhtdata = rx(toff (ind.vhtdata(1):ind.vhtdata(2)),:);
[~,~,symse] = wlanvhtdatarecover(vhtdata,chanestse,noisevar,vhtse,...
    'pilotphasetracking','none');

plot the constellation of each spatial stream.

refsym = wlanreferencesymbols(cfgvht); % reference constellation
seconst = vhtbeamformingplotconstellation(symse,refsym, ...
    'spatial expansion transmission equalized symbols');

the variance in the constellation is approximately the same for each spatial stream as the snrs are approximately the same. this is because the average power in the channel is on average approximately the same per space-time stream:

disp('mean received channel power per space-time stream with spatial expansion: ')
mean received channel power per space-time stream with spatial expansion: 
for i = 1:numsts
    fprintf('  space-time stream %d: %2.2f w\n',i, ...
        sum(mean(chanestse(:,i,:).*conj(chanestse(:,i,:)),1),3))
end
  space-time stream 1: 0.73 w
  space-time stream 2: 0.50 w

transmission with beamforming

when the receiver is capable of being a beamformee, a beamformed transmission can create a higher snr compared to spatial expansion. this example demonstrates the advantage of having channel state information available to create and use a steering matrix.

calculate a beamforming steering matrix, by passing an ndp through the channel. use 'direct' spatial mapping for the ndp transmission with the number of space-time streams is configured to match the number of transmit antennas. this uses the vht-ltf to sound channels between each of the transmit antennas and receive antennas. use the calculated beamforming matrix to beamform a transmission through the channel. the same channel realization is used for sounding and data transmission and there is no feedback compression between beamformee and beamformer, therefore the beamforming is regarded as perfect in this example.

% configure a sounding packet
vhtsound = cfgvht;
vhtsound.apeplength = 0; % ndp so no data
vhtsound.numspacetimestreams = numtxants;
vhtsound.spatialmapping = 'direct'; % each txant carries a sts
% generate sounding waveform
soundingpsdu = [];
tx = wlanwaveformgenerator(soundingpsdu,vhtsound);
% pass sounding waveform through the channel and add noise. trailing zeros
% are added to allow for channel filter delay.
rx = tgacchannel([tx; zeros(15,numtxants)]);
% allow same channel realization to be used subsequently
reset(tgacchannel); 
rx = awgnchannel(rx);
% allow same noise realization to be used subsequently
reset(awgnchannel);
% estimate symbol timing
toff = wlansymboltimingestimate(rx(ind.lstf(1):ind.lsig(2),:),vhtsound.channelbandwidth);

perform channel estimation using the sounding packet to estimate the actual channel response between each transmit and receive antenna.

% channel estimation
vhtlltfind = wlanfieldindices(vhtsound,'vht-ltf');
vhtltf = rx(toff (vhtlltfind(1):vhtlltfind(2)),:);
vhtltfdemod = wlanvhtltfdemodulate(vhtltf,vhtsound);
chanestsound = wlanvhtltfchannelestimate(vhtltfdemod,vhtsound);

the channel estimated using the function includes cyclic shifts applied at the transmitter to each space-time stream. remove the cyclic shifts applied at the transmitter from the channel estimate to calculate a beamforming steering matrix.

chanestsound = vhtbeamformingremovecsd(chanestsound, ...
    vhtsound.channelbandwidth,vhtsound.numspacetimestreams);

this example calculates the beamforming steering matrix using singular value decomposition (svd). the svd of the channel matrix results in two unitary matrices, u and v, and a diagonal matrix of singular values s. the first numsts columns of v per subcarrier are used as the beamforming steering matrix. the svd is computed using the function.

chanestperm = permute(chanestsound,[3 2 1]); % permute to nr-by-nt-by-nst
[u,s,v] = pagesvd(chanestperm,'econ');
steeringmatrix = permute(v(:,1:numsts,:),[3 2 1]); % permute to nst-by-nsts-by-nt

apply the beamforming steering matrix calculated above as a custom spatial mapping matrix and use it to send data through the same channel.

% configure a transmission with beamforming
vhtbf = cfgvht;
vhtbf.spatialmapping = 'custom';
vhtbf.spatialmappingmatrix = steeringmatrix; 
% generate beamformed data transmission
tx = wlanwaveformgenerator(psdu,vhtbf);
% pass through the channel and add noise. trailing zeros
% are added to allow for channel filter delay.
rx = tgacchannel([tx; zeros(15,numtxants)]);
rx = awgnchannel(rx);
% estimate symbol timing
toff = wlansymboltimingestimate(rx(ind.lstf(1):ind.lsig(2),:),vhtbf.channelbandwidth);
% channel estimation
vhtltf = rx(toff (ind.vhtltf(1):ind.vhtltf(2)),:);
vhtltfdemod = wlanvhtltfdemodulate(vhtltf,vhtbf);
chanestbf = wlanvhtltfchannelestimate(vhtltfdemod,vhtbf);

demodulate and equalize the received data field to recover ofdm symbols for each spatial stream.

vhtdata = rx(toff (ind.vhtdata(1):ind.vhtdata(2)),:);
[~,~,symbf] = wlanvhtdatarecover(vhtdata,chanestbf,noisevar,vhtbf,...
    'pilotphasetracking','none','ldpcdecodingmethod','norm-min-sum');

plot the equalized constellation for each spatial stream. the higher-order spatial stream has a larger variance. this is due to the ordered singular values of the channels used in svd beamforming.

bfconst = vhtbeamformingplotconstellation(symbf,refsym, ...
    'beamformed transmission equalized symbols');

this ordering is also visible in the average power of the received space-time streams. the power of the received first space-time stream is larger than the second space-time stream. this is because the received signal strength is a function of the singular values of the channel which svd orders in a decreasing fashion.

disp('mean received channel power per space-time stream with svd transmit beamforming: ')
mean received channel power per space-time stream with svd transmit beamforming: 
for i = 1:numsts
    fprintf('  space-time stream %d: %2.2f w\n',i, ...
        sum(mean(chanestbf(:,i,:).*conj(chanestbf(:,i,:)),1),3))
end
  space-time stream 1: 2.08 w
  space-time stream 2: 0.45 w

comparison and conclusion

plot the equalized constellation from the spatial expansion and beamformed transmissions for all spatial streams. note the improved constellation using svd-based transmit beamforming.

str = sprintf('%dx%d',numtxants,numrxants);
compconst = vhtbeamformingplotconstellation([symse(:) symbf(:)],refsym, ...
    'beamformed transmission equalized symbols', ...
    {[str ' spatial expansion'],[str ' transmit beamforming']});

measure the improvement using the rms and maximum error vector magnitude (evm). evm is a measure of demodulated signal quality.

evm = comm.evm;
evm.averagingdimensions = [1 2]; % average over all subcarriers and symbols
evm.maximumevmoutputport = true;
evm.referencesignalsource  = 'estimated from reference constellation';
evm.referenceconstellation = refsym;
[rmsevmse,maxevmse] = evm(symse); % evm using spatial expansion
[rmsevmbf,maxevmbf] = evm(symbf); % evm using beamforming
for i = 1:nss
    fprintf(['spatial stream %d evm:\n' ...
        '  spatial expansion:    %2.1f%% rms, %2.1f%% max\n' ...
        '  transmit beamforming: %2.1f%% rms, %2.1f%% max\n'], ...
        i,rmsevmse(i),maxevmse(i),rmsevmbf(i),maxevmbf(i));
end
spatial stream 1 evm:
  spatial expansion:    9.2% rms, 44.8% max
  transmit beamforming: 2.0% rms, 8.6% max
spatial stream 2 evm:
  spatial expansion:    9.2% rms, 52.3% max
  transmit beamforming: 4.1% rms, 12.7% max

this example demonstrates that if a receiver is capable of being a beamformee, the snr can potentially be improved when a transmission is beamformed compared to a spatial expansion transmission. the increase in received power when using beamforming can lead to more reliable demodulation or potentially even a higher order modulation and coding scheme to be used for the transmission.

in a realistic operational simulation the performance of beamforming would be degraded due to the delay between channel state information calculation and feedback by the beamformee and feedback quantization. for more information, see [ 2 ].

references

  1. ieee std 802.11™-2020 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.

  2. perahia, eldad, and robert stacey. next generation wireless lans: 802.11n and 802.11ac. cambridge university press, 2013.

网站地图