wlanHESIGBDecode not available in wifi6 under wifi toolbox.

7 次查看(过去 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;
Unrecognized property 'SIGAMCS' for class 'wlanHEMUConfig'.
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
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
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)
cfg1 =
wlanHEMUConfig with properties: RU: {[1×1 wlanHEMURU] [1×1 wlanHEMURU] [1×1 wlanHEMURU] [1×1 wlanHEMURU] [1×1 wlanHEMURU] [1×1 wlanHEMURU] [1×1 wlanHEMURU] [1×1 wlanHEMURU]} User: {1×8 cell} NumTransmitAntennas: 1 STBC: 0 GuardInterval: 3.2000 HELTFType: 4 SIGBMCS: 0 SIGBDCM: 0 UplinkIndication: 0 BSSColor: 0 SpatialReuse: 0 TXOPDuration: 127 HighDoppler: 0 Read-only properties: ChannelBandwidth: 'CBW20' AllocationIndex: 1
% Display the allocation.
showAllocation(cfg1)
Please refer to the following Standard to know more on RU allocation
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 WLAN Toolbox 的更多信息

产品


版本

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by