Commit 0761d5c2 authored by Florian Kaltenberger's avatar Florian Kaltenberger

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5731 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent cfd30ec3
...@@ -13,13 +13,13 @@ num_useful_carriers = num_carriers - num_zeros -1; ...@@ -13,13 +13,13 @@ num_useful_carriers = num_carriers - num_zeros -1;
sig = zeros(1,(num_carriers+prefix_length)*num_symbols_frame); sig = zeros(1,(num_carriers+prefix_length)*num_symbols_frame);
sig_f = zeros(num_symbols_frame,num_useful_carriers); sig_f = zeros(num_symbols_frame,num_useful_carriers);
for k=1:preamble_length for k=1:preamble_length
QAM4_preamble = QAM_MOD(4,floor(4*abs(rand(1,num_useful_carriers)))); QAM4_preamble = QAM_MOD(4,floor(4*abs(rand(1,num_useful_carriers/4))));
sig((k-1)*(num_carriers+prefix_length)+1:k*(num_carriers+prefix_length)) = OFDM_TX(num_carriers,num_zeros,prefix_length,QAM4_preamble); sig((k-1)*(num_carriers+prefix_length)+1:k*(num_carriers+prefix_length)) = OFDM_TX(num_carriers,num_zeros,prefix_length,QAM4_preamble);
sig_f(k,:) = QAM4_preamble; sig_f(k,:) = QAM4_preamble;
end end
for k=preamble_length+1:num_symbols_frame for k=preamble_length+1:num_symbols_frame
QAM_data = QAM_MOD(256,floor(4*abs(rand(1,num_useful_carriers)))); QAM_data = QAM_MOD(256,floor(256*abs(rand(1,num_useful_carriers/256))));
sig((k-1)*(num_carriers+prefix_length)+1:k*(num_carriers+prefix_length)) = OFDM_TX(num_carriers,num_zeros,prefix_length,QAM_data); sig((k-1)*(num_carriers+prefix_length)+1:k*(num_carriers+prefix_length)) = OFDM_TX(num_carriers,num_zeros,prefix_length,QAM_data);
sig_f(k,:) = QAM_data; sig_f(k,:) = QAM_data;
end end
...@@ -40,7 +40,7 @@ oarf_config_exmimo(card, freq_rx,freq_tx,tdd_config,syncmode,rxgain,txgain,eNB_f ...@@ -40,7 +40,7 @@ oarf_config_exmimo(card, freq_rx,freq_tx,tdd_config,syncmode,rxgain,txgain,eNB_f
amp = pow2(14)-1; amp = pow2(14)-1;
n_bit = 16; n_bit = 16;
length = pow2(2-resampling_factor(1)); length = 307200/pow2(resampling_factor(1));
s = zeros(length,4); s = zeros(length,4);
...@@ -111,7 +111,8 @@ case 6 ...@@ -111,7 +111,8 @@ case 6
otherwise otherwise
error('unknown case') error('unknown case')
endswitch
end %switch
s = s*2; s = s*2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment