Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
4baf1879
Commit
4baf1879
authored
Sep 08, 2022
by
Sagar Parsawar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PRS documentation and plot_prs_Ttracer_dumps.m script
parent
35802ac0
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
221 additions
and
0 deletions
+221
-0
doc/RUN_NR_PRS.md
doc/RUN_NR_PRS.md
+169
-0
doc/images/PRS_CFR_FR2_64PRB_8rsc.PNG
doc/images/PRS_CFR_FR2_64PRB_8rsc.PNG
+0
-0
doc/images/PRS_CIR_FR2_64PRB_8rsc.PNG
doc/images/PRS_CIR_FR2_64PRB_8rsc.PNG
+0
-0
openair1/PHY/NR_UE_ESTIMATION/plot_prs_Ttracer_dumps.m
openair1/PHY/NR_UE_ESTIMATION/plot_prs_Ttracer_dumps.m
+52
-0
No files found.
doc/RUN_NR_PRS.md
0 → 100644
View file @
4baf1879
This diff is collapsed.
Click to expand it.
doc/images/PRS_CFR_FR2_64PRB_8rsc.PNG
0 → 100644
View file @
4baf1879
129 KB
doc/images/PRS_CIR_FR2_64PRB_8rsc.PNG
0 → 100644
View file @
4baf1879
36 KB
openair1/PHY/NR_UE_ESTIMATION/plot_prs_Ttracer_dumps.m
0 → 100644
View file @
4baf1879
clc
;
clear
all
;
dir
=
input
(
'Enter the directory path to T tracer dumps: '
);
fft_size
=
input
(
'Enter the OFDM FFT size used for file parsing: '
);
num_resources
=
input
(
'Enter number of PRS respurces: '
);
num_gnb
=
input
(
'Enter number of active gNBs: '
);
num_prs_symb
=
1
;
start_resource
=
0
;
buff_offset
=
start_resource
*
2
*
fft_size
;
%% Channel Impulse Response(CIR)
figure
,
hold
on
;
for
i
=
0
:
num_gnb
-
1
for
j
=
0
:
num_resources
-
1
file
=
[
dir
'/chT_gnb'
,
num2str
(
i
),
'_'
,
num2str
(
j
),
'.raw'
];
fid
=
fopen
(
file
,
'r'
);
if
(
fid
>
0
)
x
=
fread
(
fid
,
Inf
,
'int16'
);
else
disp
([
'Failed to open the file '
,
file
,
'..!!'
])
return
;
end
fclose
(
fid
);
y
=
x
(
buff_offset
+
1
:
2
:
num_prs_symb
*
2
*
fft_size
)
+
1
j
*
x
(
buff_offset
+
2
:
2
:
num_prs_symb
*
2
*
fft_size
);
plot
(
abs
(
fftshift
(
y
)));
end
end
xlabel
(
'FFT Index'
);
ylabel
(
'ABS'
);
title
(
'CHANNEL IMPULSE RESPONSE'
);
hold
off
;
%% Channel Frequncy Response(CFR)
figure
,
hold
on
;
for
i
=
0
:
num_gnb
-
1
for
j
=
0
:
num_resources
-
1
file
=
[
dir
'/chF_gnb'
,
num2str
(
i
),
'_'
,
num2str
(
j
),
'.raw'
];
fid
=
fopen
(
file
,
'r'
);
if
(
fid
>
0
)
x
=
fread
(
fid
,
Inf
,
'int16'
);
else
disp
([
'Failed to open the file '
,
file
,
'..!!'
])
return
;
end
fclose
(
fid
);
y
=
x
(
buff_offset
+
1
:
2
:
num_prs_symb
*
2
*
fft_size
)
+
1
j
*
x
(
buff_offset
+
2
:
2
:
num_prs_symb
*
2
*
fft_size
);
plot
(
abs
(
y
));
end
end
xlabel
(
'FFT Index'
);
ylabel
(
'ABS'
);
title
(
'CHANNEL FREQUENCY RESPONSE'
);
hold
off
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment