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
0eeb1742
Commit
0eeb1742
authored
May 23, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add wideband SNR based on SRS in MAC stats
parent
9e2086c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+13
-2
openair2/LAYER2/NR_MAC_gNB/main.c
openair2/LAYER2/NR_MAC_gNB/main.c
+3
-2
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+1
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
0eeb1742
...
...
@@ -907,8 +907,19 @@ void handle_nr_srs_measurements(const module_id_t module_id,
}
#endif
int
ul_prbblack_SNR_threshold
=
RC
.
nrmac
[
module_id
]
->
ul_prbblack_SNR_threshold
;
uint16_t
*
ulprbbl
=
RC
.
nrmac
[
module_id
]
->
ulprbbl
;
const
int
UE_id
=
find_nr_UE_id
(
module_id
,
rnti
);
if
(
UE_id
<
0
)
{
LOG_W
(
NR_MAC
,
"Could not find UE for RNTI 0x%04x
\n
"
,
rnti
);
return
;
}
gNB_MAC_INST
*
nr_mac
=
RC
.
nrmac
[
module_id
];
NR_UE_info_t
*
UE_info
=
&
nr_mac
->
UE_info
;
NR_mac_stats_t
*
stats
=
&
UE_info
->
mac_stats
[
UE_id
];
stats
->
srs_wide_band_snr
=
(
wide_band_snr
>>
1
)
-
64
;
int
ul_prbblack_SNR_threshold
=
nr_mac
->
ul_prbblack_SNR_threshold
;
uint16_t
*
ulprbbl
=
nr_mac
->
ulprbbl
;
memset
(
ulprbbl
,
0
,
reported_symbol_list
[
0
].
num_rbs
*
sizeof
(
uint16_t
));
for
(
int
rb
=
0
;
rb
<
reported_symbol_list
[
0
].
num_rbs
;
rb
++
)
{
...
...
openair2/LAYER2/NR_MAC_gNB/main.c
View file @
0eeb1742
...
...
@@ -84,7 +84,7 @@ void dump_mac_stats(gNB_MAC_INST *gNB, char *output, int strlen, bool reset_rsrp
const
NR_UE_sched_ctrl_t
*
sched_ctrl
=
&
UE_info
->
UE_sched_ctrl
[
UE_id
];
NR_mac_stats_t
*
stats
=
&
UE_info
->
mac_stats
[
UE_id
];
const
int
avg_rsrp
=
stats
->
num_rsrp_meas
>
0
?
stats
->
cumul_rsrp
/
stats
->
num_rsrp_meas
:
0
;
stroff
+=
sprintf
(
output
+
stroff
,
"UE ID %d RNTI %04x (%d/%d) PH %d dB PCMAX %d dBm, average RSRP %d (%d meas)
\n
"
,
stroff
+=
sprintf
(
output
+
stroff
,
"UE ID %d RNTI %04x (%d/%d) PH %d dB PCMAX %d dBm, average RSRP %d (%d meas)
, UL-SNR %d dB
\n
"
,
UE_id
,
UE_info
->
rnti
[
UE_id
],
num
++
,
...
...
@@ -92,7 +92,8 @@ void dump_mac_stats(gNB_MAC_INST *gNB, char *output, int strlen, bool reset_rsrp
sched_ctrl
->
ph
,
sched_ctrl
->
pcmax
,
avg_rsrp
,
stats
->
num_rsrp_meas
);
stats
->
num_rsrp_meas
,
stats
->
srs_wide_band_snr
);
stroff
+=
sprintf
(
output
+
stroff
,
"UE %d: CQI %d, RI %d, PMI (%d,%d)
\n
"
,
UE_id
,
UE_info
->
UE_sched_ctrl
[
UE_id
].
CSI_report
.
cri_ri_li_pmi_cqi_report
.
wb_cqi_1tb
,
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
0eeb1742
...
...
@@ -690,6 +690,7 @@ typedef struct {
uint32_t
pucch0_DTX
;
int
cumul_rsrp
;
uint8_t
num_rsrp_meas
;
int8_t
srs_wide_band_snr
;
}
NR_mac_stats_t
;
...
...
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