wlanHESIGBDecode not available in wifi6 under wifi toolbox.
1 view (last 30 days)
Show older comments
% 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 Comments
Abhiram
on 23 Apr 2025
Edited: Abhiram
on 23 Apr 2025
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
Answers (1)
Umeshraja
on 9 Jun 2025
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 Comments
See Also
Categories
Find more on WLAN Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!