Commit dc7170cb authored by Florian Kaltenberger's avatar Florian Kaltenberger

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5154 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 996ecbe5
%% this script generates the signals for the CORRIDOR channel sounding campaing
%addpath('../../../openair1/SIMULATION/LTE_PHY/')
addpath('../../../openair1/SIMULATION/LTE_PHY/')
%addpath('../../../openair1/PHY/LTE_ESTIMATION/')
%addpath('../../../openair1/PHY/LTE_REFSIG/')
addpath('../../../openair1/PHY/LTE_REFSIG/')
%addpath('../../../targets/ARCH/EXMIMO/USERSPACE/OCTAVE')
rng(42); %make sure seed random numbers are alwyas the same
rand('seed',42); %make sure seed random numbers are alwyas the same
% load the LTE sync sequence
primary_synch;
......@@ -84,5 +84,5 @@ hold off
plot(linspace(-sample_rate/2,sample_rate/2,length(s)),20*log10(abs(fftshift(fft(s,[],2)))))
%% save for later use (channel estimation and transmission with the SMBV)
save('ofdm_pilots_sync_30MHz.mat','-v7','s','f1','f2','f3','num_carriers','num_zeros','prefix_length','num_symbols_frame','preamble_length');
save('ofdm_pilots_sync_30MHz.mat','-v7','s1','s2','s3','f1','f2','f3','num_carriers','num_zeros','prefix_length','num_symbols_frame','preamble_length');
mat2wv(s(1,:), 'ofdm_pilots_sync_30MHz.wv', sample_rate, 1);
......@@ -4,6 +4,8 @@
% card4 - card5: 10MHz, 2 channels each, s2, freq 2605 MHz
% card6: 5MHz, 4 channels, s3, freq 771.5 MHz
%load('ofdm_pilots_sync_30MHz.mat');
addpath('../../../targets/ARCH/EXMIMO/USERSPACE/OCTAVE')
limeparms;
......@@ -86,9 +88,9 @@ for card=6:min(6,num_cards-1)
end
amp = pow2(14)-1;
s1p = 2*floor(amp*(s1./max([real(s1) imag(s1)])));
s2p = 2*floor(amp*(s2./max([real(s2) imag(s2)])));
s3p = 2*floor(amp*(s3./max([real(s3) imag(s3)])));
s1p = 2*floor(amp*(s1./max([real(s1(:)); imag(s1(:))])));
s2p = 2*floor(amp*(s2./max([real(s2(:)); imag(s2(:))])));
s3p = 2*floor(amp*(s3./max([real(s3(:)); imag(s3(:))])));
for card=min(6,num_cards-1):-1:6
oarf_send_frame(card,s3p.',16);
......
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