wlanHESIGBDecode not available in wifi6 under wifi toolbox.
조회 수: 2 (최근 30일)
이전 댓글 표시
% Define RU allocation: 1 user, 26-tone RU
ruAlloc = [1]; % 1 means 26-tone RU in a 20 MHz channel
% Create configuration with correct RU assignment
cfgHEMU = wlanHEMUConfig(ruAlloc, 'ChannelBandwidth', 'CBW20');
% PHY settings
cfgHEMU.SIGBMCS = 0;
cfgHEMU.SIGAMCS = 0;
cfgHEMU.HELTFType = 4;
cfgHEMU.NumTransmitAntennas = 1;
cfgHEMU.User{1}.MCS = 0;
cfgHEMU.User{1}.NumSpaceTimeStreams = 1;
% Generate waveform
bits = randi([0 1], 100*8, 1);
txWaveform = wlanWaveformGenerator(bits, cfgHEMU);
txWaveform = txWaveform / max(abs(txWaveform)); % Normalize
% Channel and noise
fs = wlanSampleRate(cfgHEMU);
snr = 30;
chan = wlanTGaxChannel('SampleRate', fs, 'ChannelBandwidth', 'CBW20', 'DelayProfile', 'Model-B');
rx = chan(txWaveform);
rx = awgn(rx, snr, 'measured');
% Field indices
ind = wlanFieldIndices(cfgHEMU);
% Channel estimation
ltf = rx(ind.HELTF(1):ind.HELTF(2));
ltfDemod = wlanHEDemodulate(ltf, 'HE-LTF', cfgHEMU);
chanEst = wlanHELTFChannelEstimate(ltfDemod, cfgHEMU);
% HE-SIG-B decode
sigbRx = rx(ind.HESIGB(1):ind.HESIGB(2));
sigbDemod = wlanHEDemodulate(sigbRx, 'HE-SIG-B', cfgHEMU);
[sigbBits, sigbCRCFail] = wlanHESIGBDecode(sigbDemod, chanEst, cfgHEMU); % This function is not available in wlan toolbox version %24.3, throws error as unrecognized function.
% Display result
if sigbCRCFail
disp(" SIG-B Decode Failed");
else
disp(" SIG-B Decode Successful!");
disp("First 10 decoded SIGB bits:");
disp(sigbBits(1:10)');
end
댓글 수: 5
Abhiram
2025년 4월 23일
편집: Abhiram
2025년 4월 23일
To understand how to configure users for wlanHEMU, you can refer to the 'wlanHEMUConfig.m' file located at "<matlabroot>\toolbox\wlan\wlan\wlanHEMUConfig.m".
The reason why you got the number of users as 2 when 'ruAlloc = [217]' is explained by the following:
To configure a full band MU-MIMO transmission with HE-SIG-B compression the following values of AllocationIndex can be used:
- 20 MHz: AllocationIndex = 191 + NumUsers
- 40 MHz: AllocationIndex = 199 + NumUsers
- 80 MHz: AllocationIndex = 207 + NumUsers
- 160 MHz: AllocationIndex = 215 + NumUsers
답변 (1개)
Umeshraja
2025년 6월 9일
I understand you're looking to configure multiple users using wlanHEMUConfig and were inquiring about the availability of wlanHESIGBDecode in the WLAN Toolbox. According to the latest R2025a documentation, there is no documented function named wlanHESIGBDecode.
Wifi 6 (802.11ax) introduces the concept of resource units (RU) to enable multi-user OFDMA. The AllocationIndex property in wlanHEMUConfig defines the RU allocation index or a set of RU allocation indices. The allocation indices define the number of RUs, RU sizes, and number of users assigned to each RU
Please refer to the table in the following documentation. This table lists the allocation indices and corresponding RU assignments for 20 MHz subchannels and RUs with at most 242 tones. The table shows the number of tones per RU and the number of users assigned for each allocation index.
The following code snippet demonstrates how Resource Units (RUs) are allocated:
cfg1 = wlanHEMUConfig(1)
% Display the allocation.
showAllocation(cfg1)
Please refer to the following Standard to know more on RU allocation
Hope this helps!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!