主要内容

wlanNonHTDataBitRecover

从非HT数据字段恢复PSDU

描述

example

PSDU= wlanNonHTDataBitRecover(sym,noyevarest,cfg)恢复PSDU,物理层服务数据单元(PSDU)位的列矢量,从sym, the demodulated and equalized orthogonal frequency-division multiplexing (OFDM) symbols comprising the non-HT Data field of a non-high-throughput (non-HT) waveform. The function recovers the PSDU by using noise variance estimatenoyevarest和非HT传输参数cfg.

PSDU= wlanNonHTDataBitRecover(sym,noyevarest,CSI,cfg)enhances the demappinng of OFDM subcarriers by using channel state informationCSI.

example

[PSDU,scramInit] = wlanNonHTDataBitRecover(___,“ ofdmsymboloffset”,symOffset)恢复initial scrambler statescramInit对于先前语法的输入参数的任何组合。

例子

全部收缩

配置并生成非HT时间域波形。

cfg = wlannonhtconfig('MCS',4);bit = randi([0 1],8*cfg.psdulength,1,'int8');waveform = wlanWaveformGenerator(bits,cfg);

Transmit the waveform through an additive white Gaussian noise (AWGN) channel with a signal-to-noise ratio (SNR) of 30.

snr = 30; rxWaveform = awgn(waveform,snr);

从接收的波形中提取非HT数据字段。

field ='NonHT-Data';ind = wlanfieldindices(CFG,field);rx = rxwaveform(ind(1):ind(2),:);

Recover the frequency-domain signal by OFDM demodulating the time-domain data signal.

sym = wlanNonHTOFDMDemodulate(rx,field,cfg);

Extract the data subcarriers from the demodulated signal.

info = wlanNonHTOFDMInfo(field,cfg); sym = sym(info.DataIndices,:,:);

恢复PSDU并确认它与传输的PSDU匹配。

NoiseVarest = 10^(-snr/10);psdu = wlannonhtdatabitrecover(Sym,NoiseVarest,CFG);quequal(位,psdu)
ans =logical1

Configure and generate a non-HT Data signal with a channel bandwidth of 160 MHz and dynamic bandwidth operation.

bandwidth ='cbw160';cfg = wlannonhtconfig('ChannelBandwidth',带宽,“ psdulength”,1,...“ signalChannelBandWidth”,true,'BandwidthOperation','动态的');bit = randi([0 1],8*cfg.psdulength,1,'int8');[range,〜] = scramblerrange(cfg);scraminit = randi(range);y = wlannonhtdata(位,cfg,scraminit);

Transmit the waveform through an AWGN channel with an SNR of 50.

SNR = 50;NoiseVarest = 10^(-snr/10);rx = awgn(y,snr);

Recover the frequency-domain signal by OFDM demodulating the non-HT Data signal, specifying an OFDM symbol sampling offset.

field ='NonHT-Data';Symoffset = 0.5;sym = wlannonhtofdmdemeDemeDemulate(rx,field,bandwidth,'OFDMSymbolOffset',symOffset);

提取数据子载波。

info = wlanNonHTOFDMInfo(field,bandwidth); sym = sym(info.DataIndices,:);

Recover the first 20 MHz subchannel of the PSDU, enhancing the demapping of the OFDM subcarriers by specifying channel state information. Confirm that the received and transmitted PSDUs match.

CSI =一个(48,1);[psdu,scraminit] = wlannonhtdatabitrecover(sym(1:48,:),noingsvarest,csi,cfg);quequal(位,psdu)
ans =logical1

Recover and display bandwidth signaling by interpreting the scrambler state.

[带宽,dyn] = wlaninterpretscramblerstate(scraminit)
带宽='CBW160'
dyn =logical1

输入参数

全部收缩

解调和均衡的OFDM符号comprising the non-HT Data field, specified as a complex-valued matrix of size 48-by-Nsym, 在哪里Nsym是OFDM符号的数量。

Data Types:双倍的
Complex Number Support:Yes

噪声差异估计, specified as a nonnegative scalar.

Data Types:双倍的

非HT传输参数,指定为wlanNonHTConfig目的。

通道状态信息,指定为长度为48的实价列向量。

Data Types:双倍的

OFDM symbol sampling offset, as a fraction of the cyclic prefix length, specified as a scalar in the interval [0, 1].

您指定的值指示了OFDM解调相对于循环前缀开头的起始位置。

例子:0.45

Data Types:双倍的

Output Arguments

全部收缩

Recovered PSDU bits, returned as a binary-valued column vector of length 8 ×L, 在哪里Lis the PSDU length in bytes. To specifyL,设置psdulength属性cfginput.

Data Types:int8

初始乱扰状态,在间隔[1,127]或长度7的相应二进制值列向量中作为整数返回。

第17.3.5.5节[1]of specifies the scrambling and descrambling process applied to the transmitted data. The header and data fields that follow the scrambler initialization field (including data padding bits) are scrambled by XORing each bit with a length-127 periodic sequence generated by the polynomials(x)=x7+x4+ 1. The octets of the PSDU are placed into a bit stream, and, within each octet, bit 0 (LSB) is first and bit 7 (MSB) is last. This figure demonstrates the sequence generation and XOR operation.

Conversion from integer to bits uses left-MSB orientation. For example, initializing the scrambler with decimal1,位映射到这些元素。

Element X7 X6 X5 X4 X3 X2 X1
Bit Value 0 0 0 0 0 0 1

要生成相当于小数的位流,请使用int2bit功能。例如,小数点1:

int2bit(1,7)'ans = 0 0 0 0 0 0 0 1

例子:[1; 0; 1; 1; 1; 0; 1]conveys the scrambler initialization state of 93 as a binary-valued column vector.

Data Types:双倍的

参考

[1]IEEE Std 802.11™-2020 (Revision of IEEE Std 802.11-2016). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications.” IEEE Standard for Information technology — Telecommunications and information exchange between systems. Local and metropolitan area networks — Specific requirements.

Extended Capabilities

C/C ++代码生成
使用MATLAB®CODER™生成C和C ++代码。

版本嘘ory

在R2020b中引入