802.11n link in simulink -凯发k8网页登录
this example shows how to simulate an ieee® 802.11n™ ht link in simulink® with wlan toolbox™.
introduction
an 802.11n ht [ 1 ] link with a fading channel is simulated in this model. multiple packets are transmitted through a 2-by-2 tgn mimo channel, demodulated and the psdus recovered. the psdus are compared to those transmitted to determine the packet error rate. packet detection, timing synchronization, carrier frequency offset correction and pilot phase tracking are performed by the receiver.
the matlab function block allows matlab® functions to be used in a simulink model. in this example an 802.11n link is modeled in simulink by using matlab function blocks to call wlan toolbox functions. for an equivalent 802.11n simulation in matlab see the example 802.11n packet error rate simulation for 2x2 tgn channel.
structure of the example
the model has four main parts:
transmitter: generates a random psdu and creates an 802.11n ht packet.
channel: models a tgn 2x2 mimo channel with awgn.
receiver: recovers the transmitted psdu by performing packet detection, time and frequency synchronization, mimo channel estimation and psdu demodulation and decoding.
analysis: compares the transmitted and recovered psdus to determine the packet error rate, and displays the equalized symbols.
the following sections describe the transmitter and receiver in more detail.
transmitter
the transmitter block creates a random psdu and encodes the bits to create a single packet waveform. the function is called within the packet generator block to generate a waveform for a packet. an idle period is added after each packet to create periodic bursts.
receiver
the receiver has two components: packet detection and packet recovery.
the function is called within the packet detector block. if a packet is detected the packet recovery subsystem is enabled to process the detected packet.
the packet recovery subsystem processing consists of the following steps:
coarse carrier frequency offset is estimated and corrected.
fine timing synchronization is established.
fine carrier frequency offset is estimated and corrected.
the ht-ltf is extracted from the synchronized received waveform. the ht-ltf is ofdm demodulated and channel estimation is performed.
the ht data field is extracted from the synchronized received waveform.
noise estimation is performed using the demodulated data field pilots.
the psdu is recovered using the extracted field, the channel and noise power estimates.
results and displays
when the simulation is run, the packet error rate is displayed. this is updated after each packet is processed. the equalized data symbols are also displayed for each packet processed. by default, 200 packets are simulated.
exploring the example
try changing the signal to noise ratio (snr) in the awgn channel block. decreasing the snr increases the packet error rate and the noise visible in the equalized symbol constellation. link parameters such as the modulation and coding scheme (mcs), number of transmit and receive antennas and space-time streams can be changed in the model parameters block.
selected bibliography
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.