📄 global_parameter.txt
字号:
% packet length should be integer times of 48 data subcarrier.
% 6 is the ofdm data symbol number in one packet
data_sym_num = 6;
PacketLength=48*data_sym_num;
% modulation type: 4 is QPSK, 16 is 16QAM, 256 and so on
M_type=4;
% 52 = 48 data subcarriers 4 pilot subcarriers
NumSubc = 52;
NumDataSubc = 48;
NumPilotSubc = 4;
% 48 data subcarriers position
DataSubcPatt = [1:5 7:19 21:26 27:32 34:46 48:52]';
% 4 pilot subcarriers position
PilotSubcPatt = [6 20 33 47]';
% used subcarriers
UsedSubcPatt = [39:64 2:27];
PilotScramble = [1 1 1 1 -1 -1 -1 1 -1 -1 -1 -1 1 1 -1 1 -1 -1 1 1 -1 ...
1 1 -1 1 1 1 1 1 1 -1 1 1 1 -1 1 1 -1 -1 1 1 1 -1 1 -1 -1 -1 1 -1 1 ...
-1 -1 1 -1 -1 1 1 1 1 1 -1 -1 1 1 -1 -1 1 -1 1 -1 1 1 -1 -1 -1 1 1 ...
-1 -1 -1 -1 1 -1 -1 1 -1 1 1 1 1 -1 1 -1 1 -1 1 -1 -1 -1 -1 -1 1 ...
-1 1 1 -1 1 -1 1 1 1 -1 -1 1 -1 -1 -1 1 1 1 -1 -1 -1 -1 -1 -1 -1];
% 802.11a.page-22.equation-24
PilotSubcSymbols=[1;1;1;-1];
% short preamble (% 802.11a.page-12.equation-6)
ShortTrainingSymbols= sqrt(13/6)*[0 0 1 j 0 0 0 -1-j 0 0 0 1 j...
0 0 0 -1-j 0 0 0 -1-j 0 0 0 1 j 0 0 0 0 0 0 -1-j 0 0 0 -1-j 0 0 0 ...
1 j 0 0 0 1 j 0 0 0 1 j 0 0 0 1 j 0 0];
% long preamble (% 802.11a.page-13.equation-8)
LongTrainingSymbols = [1 1 -1 -1 1 1 -1 1 -1 1 1 1 1 1 1 ...
-1 -1 1 1 -1 1 -1 1 1 1 1 1 -1 -1 1 1 -1 1 -1 1 ...
-1 -1 -1 -1 -1 1 1 -1 -1 1 -1 1 -1 1 1 1 1];
% window
trs_win = [0.5 ones(1,159) 0.5]; % length 161
data_win = [0.5 ones(1,79) 0.5].'; % length 81
% set the sim parameter you want
Packet_num=1;
SNR = 10;
% channel_type=1: AWGN channel
% channel_type=2: Multipath channel for drlu email
% channel_type=3: simple Multipath channel
channel_type = 1;
% channel_estimate=1: do perfect channel estimation
% channel_estimate=0: don't have channel estimation
channel_estimate=1;
% sync_perfect=1: do perfect sync;
% sync_perfect=0: do the real sync;
sync_perfect=1;
fs = 80*10e6; % 80MHz
fc = 10*10e6; % 10MHz
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -