Generate HT-SIG waveform
Generate HT-SIG Waveform
Generate an HT-SIG waveform for a single transmit antenna.
Create an HT configuration object. Specify a 40 MHz channel bandwidth.
cfg = wlanHTConfig; cfg.ChannelBandwidth = 'CBW40'
cfg = wlanHTConfig with properties: ChannelBandwidth: 'CBW40' NumTransmitAntennas: 1 NumSpaceTimeStreams: 1 SpatialMapping: 'Direct' MCS: 0 GuardInterval: 'Long' ChannelCoding: 'BCC' PSDULength: 1024 AggregatedMPDU: 0 RecommendSmoothing: 1
Generate the HT-SIG waveform. Determine the size of the waveform.
y = wlanHTSIG(cfg); size(y)
ans = 1×2 320 1
The function returns a waveform having a complex output of 320 samples corresponding to two 160-sample OFDM symbols.
Display MCS Information from HT-SIG
Generate an HT-SIG waveform and display the MCS information. Change the MCS and display the updated information.
wlanHTConfig object having two spatial streams and two transmit antennas. Specify an MCS value of 8, corresponding to BPSK modulation and a coding rate of 1/2.
cfg = wlanHTConfig('NumSpaceTimeStreams',2,'NumTransmitAntennas',2,'MCS',8);
Generate the information bits from the HT-SIG waveform.
[~,sigBits] = wlanHTSIG(cfg);
Extract the MCS field from
sigBits and convert it to its decimal equivalent. The MCS information is contained in bits 1-7.
mcsBits = sigBits(1:7); bi2de(mcsBits')
ans = int8 8
The MCS matches the specified value.
Change the MCS to 13, which corresponds to 64-QAM modulation with a 2/3 coding rate. Generate the HT-SIG waveform.
cfg.MCS = 13; [~,sigBits] = wlanHTSIG(cfg);
Verify that the MCS bits are the binary equivalent of 13.
mcsBits = sigBits(1:7); bi2de(mcsBits')
ans = int8 13
cfg — Transmission parameters
Transmission parameters, specified as a
osf — Oversampling factor
1 (default) | scalar greater than or equal to 1
Oversampling factor, specified as a scalar greater than or equal to 1. The oversampled cyclic prefix length must be an integer number of samples.
y — HT-SIG waveform
HT-SIG waveform, returned as an NS-by-NT matrix. NS is the number of time-domain samples, and NT is the number of transmit antennas.
Complex Number Support: Yes
bits — HT-SIG information bits
HT-SIG information bits, returned as a 48-by-1 vector.
The high throughput signal (HT-SIG) field is located between the L-SIG field and HT-STF and is part of the HT-mixed format preamble. It is composed of two symbols, HT-SIG1 and HT-SIG2.
HT-SIG carries information used to decode the HT packet, including the MCS, packet length, FEC coding type, guard interval, number of extension spatial streams, and whether there is payload aggregation. The HT-SIG symbols are also used for auto-detection between HT-mixed format and legacy OFDM packets.
For a detailed description of the HT-SIG field, see section 188.8.131.52.3 of IEEE® Std 802.11™-2020.
As described in IEEE Std 802.11-2012, Section 20.1.4, high throughput mixed (HT-mixed) format packets contain a preamble compatible with IEEE Std 802.11-2012, Section 18 and Section 19 receivers. Non-HT (Section 18 and Section19) STAs can decode the non-HT fields (L-STF, L-LTF, and L-SIG). The remaining preamble fields (HT-SIG, HT-STF, and HT-LTF) are for HT transmission, so the Section 18 and Section 19 STAs cannot decode them. The HT portion of the packet is described in IEEE Std 802.11-2012, Section 184.108.40.206. Support for the HT-mixed format is mandatory.
An oversampled signal is a signal sampled at a frequency that is higher than the Nyquist rate. WLAN signals maximize occupied bandwidth by using small guardbands, which can pose problems for anti-imaging and anti-aliasing filters. Oversampling increases guardband width relative to the total signal bandwidth, thereby increasing the number of samples in the signal.
This function performs oversampling by using a larger IFFT and zero pad when generating an OFDM waveform. This diagram shows the oversampling process for an OFDM waveform with NFFT subcarriers comprising Ng guardband subcarriers on either side of Nst occupied bandwidth subcarriers.
 IEEE Std 802.11™-2012 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.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
1 IEEE Std 802.11-2012 Adapted and reprinted with permission from IEEE. Copyright IEEE 2012. All rights reserved.