Commit e6770e03 authored by Arvanita's avatar Arvanita

new version of channel sounding

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5374 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent e9470ecf
...@@ -22,7 +22,7 @@ switch n_carriers ...@@ -22,7 +22,7 @@ switch n_carriers
pss_t = upsample(primary_synch0_time,4); pss_t = upsample(primary_synch0_time,4);
%filename = 'E:\EMOS\corridor\trials1\eNB_data_20140331_UHF_run1.EMOS'; %filename = 'E:\EMOS\corridor\trials1\eNB_data_20140331_UHF_run1.EMOS';
filename = 'D:\trials1 train extracted\eNB_data_20140331_UHF_run1.EMOS'; filename = 'E:\EMOS\corridor\trials1\eNB_data_20140331_UHF_run1.EMOS';
nframes = 100; % frames in one block nframes = 100; % frames in one block
threshold = 3e+4 ; % maybe should change that !!!! threshold = 3e+4 ; % maybe should change that !!!!
...@@ -32,10 +32,11 @@ switch n_carriers ...@@ -32,10 +32,11 @@ switch n_carriers
pss_t = upsample(primary_synch0_time,4*4); % this assumes we are doing the sync on the first carrier, which is 10MHz pss_t = upsample(primary_synch0_time,4*4); % this assumes we are doing the sync on the first carrier, which is 10MHz
%filename = 'E:\EMOS\corridor\trials1\eNB_data_20140331_UHF_run1.EMOS'; %filename = 'E:\EMOS\corridor\trials1\eNB_data_20140331_UHF_run1.EMOS';
filename = 'D:\trials1 train extracted\eNB_data_20140331_2.6GHz_run1.EMOS'; %filename = 'E:\EMOS\corridor\trials1\eNB_data_20140331_2.6GHz_run1.EMOS';
filename = 'E:\EMOS\corridor\trials2\eNB_data_20140519_2.6GHz_run2.EMOS';
nframes = 50; % frames in one block nframes = 50; % frames in one block
threshold = 1e+4 ; % maybe should change that !!!! threshold = 3e+4 ; % maybe should change that !!!!
end end
destdir = 'E:\EMOS\corridor\trials1 train'; destdir = 'E:\EMOS\corridor\trials1 train';
...@@ -126,7 +127,7 @@ while ~feof(fid) ...@@ -126,7 +127,7 @@ while ~feof(fid)
% [mm,where] = max(m./meanCorr) % [mm,where] = max(m./meanCorr)
idx(m < threshold) = []; idx(m < threshold) = [];
if size(idx,2) <= 1 if size(idx,2) <= 2
flag1 = 1 ; flag1 = 1 ;
flag2 = 0 ; flag2 = 0 ;
...@@ -241,7 +242,7 @@ while ~feof(fid) ...@@ -241,7 +242,7 @@ while ~feof(fid)
% timing drift. We try to keep the peak of the impulse response at % timing drift. We try to keep the peak of the impulse response at
% sample prefix_length/8. % sample prefix_length/8.
[m,idx] = max(fft(ifft(PDP_all),p(carrier).num_carriers)); [m,idx] = max(fft(ifft(PDP_all),p(carrier).num_carriers));
offset = idx - p(carrier).prefix_length/8; offset = idx - p(carrier).prefix_length/8
if offset > p(carrier).prefix_length if offset > p(carrier).prefix_length
offset = offset - p(carrier).num_carriers; offset = offset - p(carrier).num_carriers;
end end
......
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