main content

802.11ah waveform generation -凯发k8网页登录

this example shows how to generate ieee® 802.11ah™ s1g waveforms and highlights some of the key features of the standard.

introduction

802.11ah is intended for extended range and low power applications in the unlicensed sub 1 ghz band, including machine to machine communication and the internet of things. 802.11ah uses narrower contiguous channel bandwidths than 802.11n™ and 802.11ac™ to facilitate long range, low power communication at a lower data rate. valid channel bandwidths are 1, 2, 4, 8, and 16 mhz.

since 802.11ah uses the same underlying physical layer technologies as 802.11n and 802.11ac, the processing chains are very similar. with the exception of 1 mhz transmissions, in general data is modulated using the same process as in 802.11ac with a 1/10 clock rate.

in this example a number of 802.11ah s1g [ 1 ] waveforms are generated to highlight some of the key modes and features of the 802.11ah standard.

802.11ah modes and phy features

the 802.11ah standard defines three modes:

  • the 1 mhz mode (s1g_1m) is intended for low data rate applications. this mode features an extended preamble and a new modulation and coding scheme, mcs10, to improve robustness. mcs10 is bpsk 1/2 rate with 2 times repetition. when mcs10 is used the short training field (stf) is boosted by 3 db to allow for packet detection [ 2 ]. in this mode the whole ppdu is beamformed.

  • the >= 2 mhz long preamble mode (s1g_long) is used for single or multi-user transmissions with a 2, 4, 8, or 16 mhz channel bandwidth. the ppdu is similar to a 802.11ac vht ppdu, consisting of an omni-directional portion and beam-changeable portion.

  • the >= 2 mhz short preamble mode (s1g_short) is used for single-user transmissions with a 2, 4, 8, or 16 mhz channel bandwidth. in this mode the whole ppdu is beamformed.

the 802.11ah standard is intended to operate outdoors as well as indoors. traveling pilots have been introduced to compensate for doppler spread caused by reflections due to vehicular motion. in previous 802.11 standards the pilot locations are fixed to the same subcarrier for the duration of a packet. tracking the varying channel conditions due to a high doppler environment is not effective with fixed pilot locations. traveling pilots change the subcarriers that carry the pilots over time which improves the ability to track changing channel conditions. in this example a waveform is generated for each of the three modes introduced above with configurations for mcs10 and traveling pilot highlighted.

s1g 1mhz mode

an s1g 1 mhz ppdu consists of five fields, all of which can be beamformed:

  1. stf - the short training field, which is used for coarse synchronization

  2. ltf1 - the first long training field, which is used for fine synchronization and initial channel estimation

  3. sig - the signaling field, which the receiver decodes to determine transmission parameters

  4. ltf2-n - the subsequent long training fields, which is used for mimo channel estimation

  5. data - the data field, which carries the user data payload

examples of waveform generation for mcs0 and mcs10 1 mhz transmissions are shown. when mcs10 is used a 3 db power boost is applied to the short training field. this power boost will be visualized.

the function returns an s1g configuration object. create an s1g configuration object for 1 mhz bandwidth, 1 transmit antenna, 1 space-time stream, bpsk rate 1/2 (mcs0), and a 256 byte apep length.

cfg1mhz = wlans1gconfig;
cfg1mhz.channelbandwidth = 'cbw1';
cfg1mhz.numtransmitantennas = 1;
cfg1mhz.numspacetimestreams = 1;
cfg1mhz.mcs = 0;
cfg1mhz.apeplength = 256;

create a psdu of random bits using the required length for the specified format configuration.

psdu = randi([0 1],cfg1mhz.psdulength*8,1);

generate an s1g waveform using the configured s1g format object and psdu as inputs to the waveform generator, wlanwaveformgenerator. the waveform generator modulates psdu bits according to a format configuration. the waveform generator also performs ofdm windowing. in this example windowing is disabled for clearer visualization.

% generate waveform with windowing disabled
txmcs0 = wlanwaveformgenerator(psdu,cfg1mhz,'windowtransitiontime',0);

change the mcs of cfg1mhz to 10 and generate a second waveform to demonstrate the stf power boost.

cfg1mhz.mcs = 10;
txmcs10 = wlanwaveformgenerator(psdu,cfg1mhz,'windowtransitiontime',0);

the power is plotted for the first 320 microseconds of both waveforms to capture the duration of the stf and first ltf in the 1 mhz transmission. note the power boost of the stf when mcs10 is used. the power boost is required to obtain sufficient packet detection sensitivity to support mcs10 [ 2 ].

t = 320; % duration to plot in microseconds
sr = wlansamplerate(cfg1mhz); % sample rate hz
tick = (1/sr)*1e6; % microseconds per sample
hf = figure;
hp(1) = plot(0:tick:t-tick,20*log10(abs(txmcs10(1:t*sr*1e-6,:))),'bx-');
hold on;
hp(2) = plot(0:tick:t-tick,20*log10(abs(txmcs0(1:t*sr*1e-6,:))),'ro-');
xlim([0 t-1]);
ylim([-20 15]);
s1gwavgenplotfieldoverlay(cfg1mhz,hf);
grid on;
legend(hp,'1 mhz mcs10','1 mhz mcs0','location','southwest');
title('power of 1 mhz ppdu');
xlabel('time (us)');
ylabel('power (dbw)');

s1g >=2 mhz long preamble mode

the 802.11ah long preamble supports single and multi-user transmissions. the long preamble ppdu consists of two portions; the omni-directional portion and the beam-changeable portion.

the omni-directional portion is transmitted to all users without beamforming. it consists of three fields:

  1. stf - the short training field, which is used for coarse synchronization

  2. ltf1 - the first long training field, which is used for fine synchronization and initial channel estimation

  3. sig-a - the signaling a field, which the receiver decodes to determine transmission parameters relevant to all users

the beam-changeable portion can be beamformed to each user. it consists of four fields:

  1. d-stf - the beamformed short training field, which is used by the receiver for automatic gain control

  2. d-ltf - the beamformed long training fields, which is used for mimo channel estimation

  3. sig-b - the signaling b field. in a multi-user transmission the sig-b signals the mcs for each user. in a single-user transmission the mcs is signaled in the sig-a field of the omni-directional portion of the preamble. therefore in a single-user transmission the sig-b symbol transmitted is an exact repetition of the first d-ltf. this repetition allows for improved channel estimation.

  4. data - the data field, which carries the user data payload

to visualize repetition of the first d-ltf an s1g 2 mhz long preamble format configuration object is created using the function and configured for one space-time stream and one transmit antenna.

cfgsu = wlans1gconfig;
cfgsu.channelbandwidth = 'cbw2';
cfgsu.preamble = 'long';
cfgsu.numusers = 1;
cfgsu.numspacetimestreams = 1;
cfgsu.numtransmitantennas = 1;
cfgsu.mcs = 1;
cfgsu.apeplength = 150;

the >=2 mhz long preamble waveform with a single space-time stream is generated using the cfgsu object.

% generate a psdu containing random bits
psdu = randi([0 1],cfgsu.psdulength*8,1);
% generate a ppdu waveform
txsu = wlanwaveformgenerator(psdu,cfgsu);

the d-ltf and sig-b fields are plotted. note the repetition of the d-ltf in the sig-b symbol.

s1gwavgenplotsigb(cfgsu,txsu);

as a comparison a 2 mhz long preamble multi-user waveform will be generated and visualized. first, a format configuration object is created for two users. the user positions, number of space times streams, mcs and apep length are configured per user using vectors to parameterize the relevant properties of the cfgmu object.

cfgmu = wlans1gconfig;
cfgmu.channelbandwidth = 'cbw2';
cfgmu.preamble = 'long';
cfgmu.numusers = 2;
cfgmu.userpositions = [0 1];
cfgmu.numspacetimestreams = [1 1];
cfgmu.numtransmitantennas = sum(cfgmu.numspacetimestreams);
cfgmu.mcs = [1 2];
cfgmu.apeplength = [150 250];

a random psdu is created for each user and a multi-user waveform is generated. the psdu length for each user, cfgmu.psdulength, is calculated based on transmission properties by the cfgmu object.

% generate cell array containing the psdus for all users
psdu = cell(cfgmu.numusers,1);
for i = 1:cfgmu.numusers
    psdu{i} = randi([0 1],cfgmu.psdulength(i),1);
end
% generate waveform
txmu = wlanwaveformgenerator(psdu,cfgmu);

the two d-ltf fields and sig-b fields are plotted for the first space-time stream. note the sig-b symbol is no longer a repetition of d-ltf1 as it carries the mcs per user.

s1gwavgenplotsigb(cfgmu,txmu);

s1g >=2 mhz short preamble mode

an s1g >=2 mhz short preamble waveform consists of five fields, all of which can be beamformed:

  1. stf - the short training field, which is used for coarse synchronization

  2. ltf1 - the first long training field, which is used for fine synchronization and initial channel estimation

  3. sig - the signaling field, which the receiver decodes to determine transmission parameters

  4. ltf2-n - the subsequent long training fields, which is used for mimo channel estimation

  5. data - the data field, which carries the user data payload

in this example s1g 2 mhz short preamble waveforms with and without traveling pilots will be generated.

traveling pilots are an optional feature for all three s1g modes to allow for outdoor links where doppler spread is potentially introduced due to moving vehicles. the traveling pilots are boosted 1.5 times compared to fixed pilots to improve channel estimation performance in this environment [ 3 ].

two >= 2 mhz short preamble waveforms are generated; one with fixed pilots and one with traveling pilots. first a s1g 2 mhz short preamble format configuration with fixed pilot locations is created using the wlans1gconfig object.

cfgfix = wlans1gconfig;
cfgfix.channelbandwidth = 'cbw2';
cfgfix.preamble = 'short';
cfgfix.numtransmitantennas = 1;
cfgfix.numspacetimestreams = 1;
cfgfix.mcs = 0; % bpsk so same power on all subcarriers for analysis
cfgfix.apeplength = 100;
cfgfix.travelingpilots = false; % fixed pilot subcarriers

generate a fixed pilot waveform using the cfgfix object and random psdu bits. the psdu bits are created using the required length for the specified format configuration.

% generate a psdu containing random bits
psdu = randi([0 1],cfgfix.psdulength*8,1);
% generate a ppdu waveform
txfix = wlanwaveformgenerator(psdu,cfgfix);

extract the data field from the time domain waveform using the known duration of the preamble. plot the magnitude of the ofdm symbols and subcarriers. the location of nulls, data carrying subcarriers, and pilot carrying subcarriers are highlighted. the pilot locations remain unchanged for the duration of the packet.

s1gwavgenplotgrid(txfix,cfgfix, ...
    'demodulated ofdm symbols with fixed pilots highlighted')

now a waveform is generated using the same configuration but with traveling pilots. this could be accomplished by changing the travelingpilots property of the existing configuration object and regenerating the waveform, but in this example a separate object is created and used.

% copy the format configuration object and enable traveling pilots
cfgtravel = cfgfix;
cfgtravel.travelingpilots = true;
% generate waveform with traveling pilots
txtravel = wlanwaveformgenerator(psdu,cfgtravel);

the magnitude of the ofdm symbols and subcarriers is plotted again. the pilot locations now change per ofdm symbol. the magnitude of pilot subcarriers is 1.5 times that of data carrying subcarriers.

s1gwavgenplotgrid(txtravel,cfgtravel, ...
    'demodulated ofdm symbols with traveling pilots highlighted')

conclusion

this example has demonstrated how to generate waveforms for different 802.11ah s1g modes and highlighted some of the key features of the standard.

appendix

this example uses the following helper functions:

selected bibliography

  1. ieee p802.11ah™/d5.0 draft 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 2: sub 1 ghz license exempt operation.

  2. sameer vermani et al. "preamble format for 1 mhz", ieee 802.11-11/1482r4, 2012-01-16.

  3. ron porat et al. "traveling pilots", ieee 8902.11-12/1322r0, 2012-11-12.

网站地图